mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-05 13:28:40 +00:00
fix row command evaluations in row building
This commit is contained in:
@@ -1221,18 +1221,17 @@ rd_watch_row_info_from_row(Arena *arena, EV_Row *row)
|
|||||||
}
|
}
|
||||||
if(cmd_kind == RD_CmdKind_EnableCfg || cmd_kind == RD_CmdKind_DisableCfg)
|
if(cmd_kind == RD_CmdKind_EnableCfg || cmd_kind == RD_CmdKind_DisableCfg)
|
||||||
{
|
{
|
||||||
rd_watch_cell_list_push_new(arena, &info.cells, RD_WatchCellKind_Eval, row->eval,
|
rd_watch_cell_list_push_new(arena, &info.cells, RD_WatchCellKind_Eval, e_eval_wrapf(arena, row->eval, "enabled"),
|
||||||
.flags = RD_WatchCellFlag_Background,
|
.flags = RD_WatchCellFlag_Background,
|
||||||
.px = floor_f32(ui_top_font_size()*6.f),
|
.px = floor_f32(ui_top_font_size()*6.f));
|
||||||
.string = str8_lit("($expr).enabled"));
|
|
||||||
}
|
}
|
||||||
else if(cmd_kind != RD_CmdKind_Null)
|
else if(cmd_kind != RD_CmdKind_Null)
|
||||||
{
|
{
|
||||||
String8 cmd_name = rd_cmd_kind_info_table[cmd_kind].string;
|
String8 cmd_name = rd_cmd_kind_info_table[cmd_kind].string;
|
||||||
rd_watch_cell_list_push_new(arena, &info.cells, RD_WatchCellKind_Eval, row->eval,
|
rd_watch_cell_list_push_new(arena, &info.cells, RD_WatchCellKind_Eval,
|
||||||
|
e_eval_from_stringf(arena, "query:commands.%S", cmd_name),
|
||||||
.flags = RD_WatchCellFlag_ActivateWithSingleClick|RD_WatchCellFlag_Button,
|
.flags = RD_WatchCellFlag_ActivateWithSingleClick|RD_WatchCellFlag_Button,
|
||||||
.px = floor_f32(ui_top_font_size()*4.f),
|
.px = floor_f32(ui_top_font_size()*4.f));
|
||||||
.string = push_str8f(arena, "query:commands.%S", cmd_name));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1459,8 +1458,10 @@ rd_info_from_watch_row_cell(Arena *arena, EV_Row *row, EV_StringFlags string_fla
|
|||||||
//- rjf: default case: depending on cell info, generate string
|
//- rjf: default case: depending on cell info, generate string
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
|
if(0){}
|
||||||
|
|
||||||
//- rjf: cfg evaluation -> button for cfg
|
//- rjf: cfg evaluation -> button for cfg
|
||||||
if(result.cfg != &rd_nil_cfg)
|
else if(result.cfg != &rd_nil_cfg)
|
||||||
{
|
{
|
||||||
result.fstrs = rd_title_fstrs_from_cfg(arena, result.cfg);
|
result.fstrs = rd_title_fstrs_from_cfg(arena, result.cfg);
|
||||||
result.flags |= RD_WatchCellFlag_Button;
|
result.flags |= RD_WatchCellFlag_Button;
|
||||||
|
|||||||
Reference in New Issue
Block a user