+
+ // Theme select
+ // TODO: remove code dupe
+ ui_global_ctx.cursor[1] += 16;
+
+ gui_text( "Tile Theme", 2 );
+ ui_global_ctx.cursor[1] += 20;
+
+ gui_new_node();
+ {
+ ui_global_ctx.cursor[2] = 25;
+ if( gui_button( 0 ) == k_button_click )
+ {
+ if( world_theme_id > 0 )
+ world_theme_id --;
+ }
+ gui_text( "<", 2 );
+ gui_end_right();
+
+ ui_global_ctx.cursor[2] = 150;
+ gui_new_node();
+ {
+ gui_fill_rect( ui_global_ctx.cursor, 0x33ffffff );
+ ui_global_ctx.cursor[0] += 45;
+ ui_global_ctx.cursor[1] += 6;
+ gui_text( world_themes[ world_theme_id ].name, 2 );
+ }
+ gui_end_right();
+
+ ui_global_ctx.cursor[2] = 25;
+ if( gui_button( 1 ) == k_button_click )
+ {
+ if( world_theme_id < vg_list_size( world_themes )-1 )
+ world_theme_id ++;
+ }
+ gui_text( ">", 2 );
+ gui_end_down();
+ }
+ gui_end_down();