vg_lines_drawall();
}
+static struct ui_enum_opt dropdown_options[] = {
+ { 0, "Zero" },
+ { 3, "Three" },
+ { -1, "Minus One" }
+};
+static i32 dropdown_value = 8;
+static i32 checkbox_value = 0;
+
VG_STATIC void vg_gui(void){
if( !skaterift_loaded ) return;
vg_ui.wants_mouse = 1;
ui_rect panel;
- if( vgi_window( window, "Test window", k_vgi_window_standard, panel ) ){
-
- }
- else{
- /* window close */
- }
+ ui_panel( window, panel );
+ ui_enum( panel, "Select enum:", dropdown_options, 3, &dropdown_value );
+ ui_checkbox( panel, "Toggly:", &checkbox_value );
#if 0
ui_fill( window, ui_colour( k_ui_bg+1 ) );
ui_rect quit_button;
ui_split( title, k_ui_axis_v, title[2]-title[3], 2, title, quit_button );
- if( ui_button_text( quit_button, "x", 1 ) ){
+ if( ui_button_text( quit_button, "x", 1 ) == 1 ){
ui_start_modal( g_an_buffer, UI_MODAL_GOOD );
}