mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-30 17:43:20 -08:00
cell description rendering
This commit is contained in:
1 parent
9453f62cf4
commit
cbe1365244
7 files changed
+75
-14
No files matched your search
@@ -3215,11 +3215,24 @@ rd_cell(RD_CellParams *params, String8 string)
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////
|
||||
//- rjf: build left-hand-side container box
|
||||
//
|
||||
UI_Box *lhs_box = &ui_nil_box;
|
||||
UI_Parent(box) UI_WidthFill UI_ChildLayoutAxis(Axis2_Y)
|
||||
{
|
||||
lhs_box = ui_build_box_from_stringf(0, "lhs_box");
|
||||
UI_Parent(lhs_box)
|
||||
{
|
||||
ui_spacer(ui_em(3.f, 0.f));
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////
|
||||
//- rjf: build scrollable container box
|
||||
//
|
||||
UI_Box *scrollable_box = &ui_nil_box;
|
||||
UI_Parent(box) UI_WidthFill
|
||||
UI_Parent(lhs_box) UI_WidthFill UI_HeightFill
|
||||
{
|
||||
scrollable_box = ui_build_box_from_stringf(is_focus_active*(UI_BoxFlag_AllowOverflowX), "scroll_box_%p", params->edit_buffer);
|
||||
}
|
||||
@@ -3654,6 +3667,22 @@ rd_cell(RD_CellParams *params, String8 string)
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////
|
||||
//- rjf: build description
|
||||
//
|
||||
if(params->description.size != 0) UI_Parent(lhs_box) UI_HeightFill RD_Font(RD_FontSlot_Main) UI_FontSize(ui_top_font_size()*0.85f)
|
||||
{
|
||||
UI_Row
|
||||
{
|
||||
ui_spacer(ui_em(0.5f, 1.f));
|
||||
ui_label(params->description);
|
||||
}
|
||||
}
|
||||
UI_Parent(lhs_box)
|
||||
{
|
||||
ui_spacer(ui_em(3.f, 0.f));
|
||||
}
|
||||
|
||||
//////////////////////////////
|
||||
//- rjf: click+drag
|
||||
//
|
||||
|
||||
Reference in new issue
Block a user