tweaks in ui
This commit is contained in:
@@ -21,10 +21,8 @@
|
||||
#define STBTT_memcpy memory_copy
|
||||
#define STBTT_memset memory_set
|
||||
#include "render/stb_truetype.h"
|
||||
// #include "render/backup_font.c"
|
||||
#include "render/font.c"
|
||||
#include "render/render_opengl.c"
|
||||
|
||||
#include "wasm_app.gen.c"
|
||||
|
||||
#include "ui_iter.c"
|
||||
|
||||
@@ -521,6 +521,10 @@ fn void ui_demo_update(app_frame_t *frame) {
|
||||
|
||||
static f32 scroller_value;
|
||||
defer_block(ui_push_top(item_box), ui_pop_top()) {
|
||||
for (i32 i = 0; i < lengthof(tweak_table); i += 1) {
|
||||
mt_tweak_t *tweak = tweak_table + i;
|
||||
ui_serial_subtype(tweak->ptr, tweak->type, tweak->name);
|
||||
}
|
||||
ui_serial_type(&ui_test_event, type(app_event_t));
|
||||
defer_if (ui_begin_expander("app_event_t").clicked, ui_end_expander()) {
|
||||
for (int i = 0; i < 2; i += 1) {
|
||||
|
||||
@@ -43,6 +43,7 @@ void mt_wasm_app(ma_arena_t *arena) {
|
||||
tweak->value = parser_next(par)->string;
|
||||
parser_expect(par, lex_kind_close_paren);
|
||||
SLLQ_APPEND(first_tweak, last_tweak, tweak);
|
||||
matched = true;
|
||||
}
|
||||
|
||||
if (par->at->inside_macro == false && parser_matchi(par, s8_lit("mt_tweak_f32"))) {
|
||||
@@ -58,6 +59,7 @@ void mt_wasm_app(ma_arena_t *arena) {
|
||||
tweak->max = parser_next(par)->string;
|
||||
parser_expect(par, lex_kind_close_paren);
|
||||
SLLQ_APPEND(first_tweak, last_tweak, tweak);
|
||||
matched = true;
|
||||
}
|
||||
|
||||
if (!matched) {
|
||||
|
||||
Reference in New Issue
Block a user