- Migrate from set_global/get_global to ctx_set/ctx_get - Replace if-else chains with match() expressions - Update inline pointer handling patterns - Improve GfxWorld and asset parsing structures - Clean up redundant code across 60+ definition files Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
75 lines
1.6 KiB
Plaintext
75 lines
1.6 KiB
Plaintext
type listboxdef [display="List Box Def"]
|
|
{
|
|
const PTR_INLINE = -1;
|
|
|
|
i32 mouse_pos;
|
|
ui("mouse_pos", "Mouse Pos");
|
|
|
|
i32 start_pos;
|
|
ui("start_pos", "Start Pos");
|
|
|
|
i32 end_pos;
|
|
ui("end_pos", "End Pos");
|
|
|
|
i32 draw_padding;
|
|
ui("draw_padding", "Draw Padding");
|
|
|
|
f32 element_width;
|
|
ui("element_width", "Element Width");
|
|
|
|
f32 element_height;
|
|
ui("element_height", "Element Height");
|
|
|
|
i32 element_style;
|
|
ui("element_style", "Element Style");
|
|
|
|
i32 num_columns;
|
|
ui("num_columns", "Num Columns");
|
|
|
|
// columnInfo_s columnInfo[16] - 256 bytes
|
|
array[16] columns: columninfo;
|
|
|
|
i32 double_click_ptr;
|
|
ui("double_click_ptr", "Double Click Ptr");
|
|
|
|
i32 not_selectable;
|
|
ui("not_selectable", "Not Selectable");
|
|
|
|
i32 no_scroll_bars;
|
|
ui("no_scroll_bars", "No Scroll Bars");
|
|
|
|
i32 use_paging;
|
|
ui("use_paging", "Use Paging");
|
|
|
|
f32 select_border_x;
|
|
ui("select_border_x", "Select Border X");
|
|
|
|
f32 select_border_y;
|
|
ui("select_border_y", "Select Border Y");
|
|
|
|
f32 select_border_w;
|
|
ui("select_border_w", "Select Border W");
|
|
|
|
f32 select_border_h;
|
|
ui("select_border_h", "Select Border H");
|
|
|
|
f32 disable_color_r;
|
|
ui("disable_color_r", "Disable R");
|
|
|
|
f32 disable_color_g;
|
|
ui("disable_color_g", "Disable G");
|
|
|
|
f32 disable_color_b;
|
|
ui("disable_color_b", "Disable B");
|
|
|
|
f32 disable_color_a;
|
|
ui("disable_color_a", "Disable A");
|
|
|
|
i32 select_icon_ptr;
|
|
ui("select_icon_ptr", "Select Icon Ptr");
|
|
|
|
// Inline data
|
|
inline cstring double_click when double_click_ptr [ui="Double Click"];
|
|
inline material select_icon when select_icon_ptr [ui="Select Icon"];
|
|
}
|