fix single-line string value stringification; expand commands for tabs

This commit is contained in:
Ryan Fleury
2025-05-01 07:50:46 -07:00
parent f73ef86a54
commit 91be06dea9
4 changed files with 30 additions and 9 deletions
File diff suppressed because one or more lines are too long
+4 -1
View File
@@ -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.")
+9
View File
@@ -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))