mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-10-14 04:49:41 -07:00
tweaks / improvements to watch windows & lister ui - display controls, appearance, remove redundant visual info
This commit is contained in:
1 parent
e7153e8910
commit
737ceb1313
6 files changed
+149
-43
No files matched your search
@@ -1526,7 +1526,16 @@ ui_scroll_list_begin(UI_ScrollListParams *params, UI_ScrollPt *scroll_pt, Vec2S6
|
||||
UI_Box *scrollable_container_box = &ui_nil_box;
|
||||
UI_Parent(container_box) UI_ChildLayoutAxis(Axis2_Y) UI_FixedWidth(params->dim_px.x-ui_scroll_list_scroll_bar_dim_px) UI_FixedHeight(params->dim_px.y)
|
||||
{
|
||||
scrollable_container_box = ui_build_box_from_stringf(UI_BoxFlag_Clip|UI_BoxFlag_AllowOverflowY|UI_BoxFlag_Scroll, "###sp");
|
||||
UI_BoxFlags fade_flags = 0;
|
||||
if(scroll_pt->idx > params->item_range.min)
|
||||
{
|
||||
fade_flags |= UI_BoxFlag_DrawFadeTop;
|
||||
}
|
||||
if(scroll_pt->idx + num_possible_visible_rows < params->item_range.max)
|
||||
{
|
||||
fade_flags |= UI_BoxFlag_DrawFadeBottom;
|
||||
}
|
||||
scrollable_container_box = ui_build_box_from_stringf(fade_flags|UI_BoxFlag_Clip|UI_BoxFlag_AllowOverflowY|UI_BoxFlag_Scroll, "###sp");
|
||||
scrollable_container_box->view_off.y = scrollable_container_box->view_off_target.y = params->row_height_px*mod_f32(scroll_pt->off, 1.f) + params->row_height_px*(scroll_pt->off < 0) - params->row_height_px*(scroll_pt->off == -1.f && scroll_pt->idx == 1);
|
||||
}
|
||||
|
||||
|
||||
+16
-12
@@ -336,20 +336,24 @@ typedef U64 UI_BoxFlags;
|
||||
# define UI_BoxFlag_DrawActiveEffects (UI_BoxFlags)(1ull<<39)
|
||||
# define UI_BoxFlag_DrawOverlay (UI_BoxFlags)(1ull<<40)
|
||||
# define UI_BoxFlag_DrawBucket (UI_BoxFlags)(1ull<<41)
|
||||
# define UI_BoxFlag_Clip (UI_BoxFlags)(1ull<<42)
|
||||
# define UI_BoxFlag_AnimatePosX (UI_BoxFlags)(1ull<<43)
|
||||
# define UI_BoxFlag_AnimatePosY (UI_BoxFlags)(1ull<<44)
|
||||
# define UI_BoxFlag_DisableTextTrunc (UI_BoxFlags)(1ull<<45)
|
||||
# define UI_BoxFlag_DisableIDString (UI_BoxFlags)(1ull<<46)
|
||||
# define UI_BoxFlag_DisableFocusBorder (UI_BoxFlags)(1ull<<47)
|
||||
# define UI_BoxFlag_DisableFocusOverlay (UI_BoxFlags)(1ull<<48)
|
||||
# define UI_BoxFlag_HasDisplayString (UI_BoxFlags)(1ull<<49)
|
||||
# define UI_BoxFlag_HasFuzzyMatchRanges (UI_BoxFlags)(1ull<<50)
|
||||
# define UI_BoxFlag_RoundChildrenByParent (UI_BoxFlags)(1ull<<51)
|
||||
# define UI_BoxFlag_SquishAnchored (UI_BoxFlags)(1ull<<52)
|
||||
# define UI_BoxFlag_DrawFadeTop (UI_BoxFlags)(1ull<<42)
|
||||
# define UI_BoxFlag_DrawFadeBottom (UI_BoxFlags)(1ull<<43)
|
||||
# define UI_BoxFlag_DrawFadeLeft (UI_BoxFlags)(1ull<<44)
|
||||
# define UI_BoxFlag_DrawFadeRight (UI_BoxFlags)(1ull<<45)
|
||||
# define UI_BoxFlag_Clip (UI_BoxFlags)(1ull<<46)
|
||||
# define UI_BoxFlag_AnimatePosX (UI_BoxFlags)(1ull<<47)
|
||||
# define UI_BoxFlag_AnimatePosY (UI_BoxFlags)(1ull<<48)
|
||||
# define UI_BoxFlag_DisableTextTrunc (UI_BoxFlags)(1ull<<49)
|
||||
# define UI_BoxFlag_DisableIDString (UI_BoxFlags)(1ull<<50)
|
||||
# define UI_BoxFlag_DisableFocusBorder (UI_BoxFlags)(1ull<<51)
|
||||
# define UI_BoxFlag_DisableFocusOverlay (UI_BoxFlags)(1ull<<52)
|
||||
# define UI_BoxFlag_HasDisplayString (UI_BoxFlags)(1ull<<53)
|
||||
# define UI_BoxFlag_HasFuzzyMatchRanges (UI_BoxFlags)(1ull<<54)
|
||||
# define UI_BoxFlag_RoundChildrenByParent (UI_BoxFlags)(1ull<<55)
|
||||
# define UI_BoxFlag_SquishAnchored (UI_BoxFlags)(1ull<<56)
|
||||
|
||||
//- rjf: debug
|
||||
# define UI_BoxFlag_Debug (UI_BoxFlags)(1ull<<53)
|
||||
# define UI_BoxFlag_Debug (UI_BoxFlags)(1ull<<63)
|
||||
|
||||
//- rjf: bundles
|
||||
# define UI_BoxFlag_Clickable (UI_BoxFlag_MouseClickable|UI_BoxFlag_KeyboardClickable)
|
||||
|
||||
Reference in new issue
Block a user