Checkboxerino

This commit is contained in:
2025-01-01 02:50:34 +01:00
parent 47558576af
commit 95fa97816a
3 changed files with 21 additions and 6 deletions

View File

@@ -151,7 +151,9 @@ generate_member_ui :: (type: *Type_Info_Struct, builder: *String_Builder, path:
generate_member_ui(info_struct, builder, new_path);
}
}
//case .BOOL; #through;
case .BOOL; {
print_to_builder(builder, "\tui_checkbox_field(tprint(\"%\"), *e.%);\n", new_path, new_path);
}
case .STRING; {
print_to_builder(builder, "\tui_textfield(tprint(\"%\"), *e.%);\n", new_path, new_path);
//ui_textfield :: (label: string, text: *string, identifier: s64 = 0, loc := #caller_location) {