revisit hash_table, add interning
This commit is contained in:
24
src/ui/ui.c
24
src/ui/ui.c
@@ -588,7 +588,7 @@ fn void ui_demo_update(app_frame_t *frame) {
|
||||
ui_set_rect(item_box, r2f32_cut_left(&ui->top->rect, ui_max));
|
||||
|
||||
static f32 scroller_value;
|
||||
ui_set_text_align(ui_text_align_center)
|
||||
ui_set_text_align(ui_text_align_left)
|
||||
ui_set_top(item_box) {
|
||||
for (i32 i = 0; i < lengthof(tweak_table); i += 1) {
|
||||
mt_tweak_t *tweak = tweak_table + i;
|
||||
@@ -610,29 +610,7 @@ fn void ui_demo_update(app_frame_t *frame) {
|
||||
}
|
||||
} else_is_invalid;
|
||||
}
|
||||
ui_serial_subtype(&primary_color_global, type(v4f32_t), s8_lit("primary_color_global"));
|
||||
ui_serial_subtype(&secondary_color_global, type(v4f32_t), s8_lit("secondary_color_global"));
|
||||
ui_serial_subtype(&accent1_color_global, type(v4f32_t), s8_lit("accent1_color_global"));
|
||||
ui_serial_subtype(&accent2_color_global, type(v4f32_t), s8_lit("accent2_color_global"));
|
||||
ui_serial_subtype(&white_color_global, type(v4f32_t), s8_lit("white_color_global"));
|
||||
ui_serial_subtype(&black_color_global, type(v4f32_t), s8_lit("black_color_global"));
|
||||
ui_serial_type(&ui_test_event, type(app_event_t));
|
||||
ui_expander("app_event_t") {
|
||||
for (int i = 0; i < 2; i += 1) {
|
||||
ui_label("kind: app_event_kind_t##a%d", i);
|
||||
ui_label("ctrl: b8##ds%d", i);
|
||||
ui_label("shift: b8##f%d", i);
|
||||
ui_expander("pos: v3f32_t##gg%d", i) {
|
||||
ui_label("x: f64 = value##hgt%d", i);
|
||||
ui_label("y: f64 = value##r%d", i);
|
||||
ui_label("z: f64 = value##yr%d", i);
|
||||
}
|
||||
ui_expander("mouse_pos: v2f32_t##i2%d", i) {
|
||||
ui_label("x: f64 = value##i3%d", i);
|
||||
ui_label("y: f64 = value##i4%d", i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// @todo: fix scroller to match mouse
|
||||
|
||||
Reference in New Issue
Block a user