summaryrefslogtreecommitdiff
path: root/src/editor/gui.cpp
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2025-11-27 17:19:02 +0100
committernavewindre <boneyaard@gmail.com>2025-11-27 17:21:48 +0100
commite3de3ba5162f7ddd5005911124d4333e140fd984 (patch)
treeefb2d3851940ba1b70f0105611cddb17344e7e32 /src/editor/gui.cpp
parent5c8bbc3bc618068af1f7d6f2829c4346570c2ab9 (diff)
bunch o stuff
Diffstat (limited to 'src/editor/gui.cpp')
-rw-r--r--src/editor/gui.cpp39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/editor/gui.cpp b/src/editor/gui.cpp
index 71ce113..94967cc 100644
--- a/src/editor/gui.cpp
+++ b/src/editor/gui.cpp
@@ -121,48 +121,9 @@ void editor_create_tools_row( GAME_EDITOR* e ) {
editor_update_active_tool_label( e );
}
-void editor_update_view_settings( GAME_EDITOR* e ) {
- GAME_EDITOR::EDITOR_GUI* egui = &e->gui;
-
- sprintf( egui->gridlabel->name, "grid size: %1.2f", e->grid );
-}
-
-void editor_grid_increment_cb( void* ) {
- if( editor->grid < 16.f ) editor->grid *= 2.f;
- editor_update_view_settings( editor );
-
- if( editor->propgrid )
- editor_update_properties_column( editor );
-}
-
-void editor_grid_decrement_cb( void* ) {
- if( editor->grid > 0.25f ) editor->grid *= 0.5f;
- editor_update_view_settings( editor );
-
- if( editor->propgrid )
- editor_update_properties_column( editor );
-}
-
-void editor_grid_propgrid_cb( void* ) {
- editor_update_properties_column( editor );
-}
-
void editor_create_view_settings_row( GAME_EDITOR* e ) {
I32 x = 320, y = 426;
- gui_label( x, y, "view settings:" ); x += 95;
- editor->gui.gridlabel = gui_label( x, y, "grid size: %1.2f", e->grid );
- x += 95;
- gui_button( x, y, 20, 20, "+", editor_grid_increment_cb );
- gui_button( x + 25, y, 20, 20, "-", editor_grid_decrement_cb );
- x += 55;
- GUI_CHECKBOX* check = gui_checkbox( x, y, "properties grid", &e->propgrid );
- check->cb = editor_grid_propgrid_cb;
- x += 120;
- gui_checkbox( x, y, "wireframe", &e->wireframe );
-
- x = 320;
- y = 440;
gui_button( x, y, 100, 20, "compile bsp", pfn( void* b ) {
if( editor->map->bsp )
bsp_free( editor->map->bsp );