mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-02 03:58:11 +00:00
fix single-line string value stringification; expand commands for tabs
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -364,7 +364,9 @@ RD_VocabTable:
|
||||
{
|
||||
theme_color,
|
||||
```
|
||||
@collection_commands(add_theme_color, fork_loaded_theme_colors, save_theme_colors) x:
|
||||
@collection_commands(add_theme_color, fork_loaded_theme_colors, save_theme_colors)
|
||||
@row_commands(remove_cfg)
|
||||
x:
|
||||
{
|
||||
@display_name('Tags') tags: string,
|
||||
@display_name('Value') value: @color @hex u32,
|
||||
@@ -403,6 +405,7 @@ RD_VocabTable:
|
||||
{
|
||||
tab,
|
||||
```
|
||||
@expand_commands(duplicate_tab, close_tab)
|
||||
x:
|
||||
{
|
||||
@default(11) @display_name('Tab Font Size') @description("Controls the tab's font size.")
|
||||
|
||||
@@ -5044,6 +5044,15 @@ rd_view_ui(Rng2F32 rect)
|
||||
}
|
||||
RD_RegsScope(.cfg = cfg->id, .ctrl_entity = entity->handle)
|
||||
{
|
||||
if(cfg != &rd_nil_cfg)
|
||||
{
|
||||
RD_PanelTree panels = rd_panel_tree_from_cfg(scratch.arena, cfg);
|
||||
RD_PanelNode *parent_panel_node = rd_panel_node_from_tree_cfg(panels.root, cfg->parent);
|
||||
if(parent_panel_node != &rd_nil_panel_node)
|
||||
{
|
||||
rd_regs()->tab = rd_regs()->view = cfg->id;
|
||||
}
|
||||
}
|
||||
if(!(cmd_kind_info->query.flags & RD_QueryFlag_Required) ||
|
||||
(cmd_kind_info->query.slot == RD_RegSlot_Cfg && cfg != &rd_nil_cfg) ||
|
||||
(cmd_kind_info->query.slot == RD_RegSlot_CtrlEntity && entity != &ctrl_entity_nil))
|
||||
|
||||
Reference in New Issue
Block a user