Best I can do to simplify the check(fmt::format)crap is to make a little macro to do the format part.

This commit is contained in:
Zed A. Shaw 2026-03-05 12:39:22 -05:00
parent 6710469ee1
commit f0b04107ab
28 changed files with 108 additions and 108 deletions

View file

@ -69,7 +69,7 @@ namespace arena {
$status.set<Rectangle>(button, {});
$status.set<Clickable>(button, {
[this, name](auto, auto){
dbc::log(fmt::format("STATUS: {}", name));
dbc::log($F("STATUS: {}", name));
}
});
if(name == "main_status") {
@ -84,7 +84,7 @@ namespace arena {
auto region = $overlay.entity(name);
$overlay.set<Clickable>(region, {
[this, name](auto, auto){
dbc::log(fmt::format("OVERLAY: {}", name));
dbc::log($F("OVERLAY: {}", name));
}
});