mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-30 17:43:20 -08:00
more eval type operators for metadata decorations; fix target environment string list evaluation / edits
This commit is contained in:
1 parent
ddf0703b02
commit
ff35db0e16
14 files changed
+192
-101
No files matched your search
@@ -3232,8 +3232,8 @@ rd_cell(RD_CellParams *params, String8 string)
|
||||
{
|
||||
B32 is_toggled = !!params->toggled_out[0];
|
||||
F32 toggle_t = ui_anim(ui_key_from_stringf(key, "toggled"), (F32)is_toggled, .initial = (F32)is_toggled);
|
||||
F32 height_px = ui_top_font_size() * 1.75f;
|
||||
F32 padding_px = (ui_top_px_height() - height_px) / 2.f;
|
||||
F32 height_px = ceil_f32(ui_top_font_size() * 1.75f);
|
||||
F32 padding_px = ceil_f32((ui_top_px_height() - height_px) / 2.f);
|
||||
UI_PrefWidth(ui_children_sum(1.f))
|
||||
UI_HeightFill
|
||||
UI_Column UI_Padding(ui_px(padding_px, 1.f))
|
||||
@@ -3255,7 +3255,7 @@ rd_cell(RD_CellParams *params, String8 string)
|
||||
UI_PrefWidth(ui_px(height_px, 1.f))
|
||||
{
|
||||
F32 extratoggler_padding_px = floor_f32(ui_top_font_size()*0.35f);
|
||||
F32 toggler_size_px = height_px - extratoggler_padding_px*2.f;
|
||||
F32 toggler_size_px = ceil_f32(height_px - extratoggler_padding_px*2.f) - 1.f;
|
||||
UI_Column UI_Padding(ui_px(extratoggler_padding_px, 1.f))
|
||||
UI_Row UI_Padding(ui_px(extratoggler_padding_px, 1.f))
|
||||
UI_PrefWidth(ui_px(toggler_size_px, 1.f))
|
||||
@@ -3281,8 +3281,8 @@ rd_cell(RD_CellParams *params, String8 string)
|
||||
if(params->flags & RD_CellFlag_Slider && !is_focus_active)
|
||||
UI_Parent(box)
|
||||
{
|
||||
F32 height_px = ui_top_font_size() * 1.75f;
|
||||
F32 padding_px = (ui_top_px_height() - height_px) / 2.f;
|
||||
F32 height_px = ceil_f32(ui_top_font_size() * 1.75f);
|
||||
F32 padding_px = ceil_f32((ui_top_px_height() - height_px) / 2.f);
|
||||
UI_PrefWidth(ui_children_sum(1.f))
|
||||
UI_HeightFill
|
||||
UI_Column UI_Padding(ui_px(padding_px, 1.f))
|
||||
@@ -3292,7 +3292,7 @@ rd_cell(RD_CellParams *params, String8 string)
|
||||
UI_CornerRadius(floor_f32(height_px/2.f - 1.f))
|
||||
{
|
||||
F32 extratoggler_padding_px = floor_f32(ui_top_font_size()*0.35f);
|
||||
F32 toggler_size_px = height_px - extratoggler_padding_px*2.f;
|
||||
F32 toggler_size_px = ceil_f32(height_px - extratoggler_padding_px*2.f) - 1.f;
|
||||
ui_set_next_hover_cursor(OS_Cursor_LeftRight);
|
||||
UI_Box *slider_box = ui_build_box_from_stringf(UI_BoxFlag_DrawHotEffects|UI_BoxFlag_DrawBorder|UI_BoxFlag_DrawBackground|UI_BoxFlag_Clickable, "slider");
|
||||
UI_Parent(slider_box) UI_TagF("pop")
|
||||
|
||||
Reference in new issue
Block a user