diff options
| author | aura <nw@moneybot.cc> | 2026-03-10 01:35:50 +0100 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-03-10 01:35:50 +0100 |
| commit | 8329d42d3e592f4cd42cdfa586e2325ddc76c898 (patch) | |
| tree | dec7e2a733bfc6b6384936c1f3ed067a42b59bb9 /src/editor/editor_gui_internal.h | |
| parent | 8ae8c85e9d3806cdb726e07f37e1b49484c5c48e (diff) | |
perf profiler, simplify 2d render, string struct, many small things
Diffstat (limited to 'src/editor/editor_gui_internal.h')
| -rw-r--r-- | src/editor/editor_gui_internal.h | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/src/editor/editor_gui_internal.h b/src/editor/editor_gui_internal.h index ff9b140..ff20a98 100644 --- a/src/editor/editor_gui_internal.h +++ b/src/editor/editor_gui_internal.h @@ -3,31 +3,31 @@ #include "editor.h" #include "../util.h" -constexpr I32 EDITOR_LAYOUT_MARGIN = 10; -constexpr I32 EDITOR_LAYOUT_TITLE_OFFSET = 15; -constexpr I32 EDITOR_LAYOUT_MENU_Y = 1; -constexpr I32 EDITOR_LAYOUT_MENU_H = 22; -constexpr I32 EDITOR_LAYOUT_NAV_Y = EDITOR_LAYOUT_MENU_Y + EDITOR_LAYOUT_MENU_H + 4; -constexpr I32 EDITOR_LAYOUT_CONTENT_Y = EDITOR_LAYOUT_NAV_Y + 28; -constexpr I32 EDITOR_LAYOUT_COLUMN_GAP = 10; -constexpr I32 EDITOR_LAYOUT_VIEW_TOOL_GAP = 17; -constexpr I32 EDITOR_LAYOUT_TOOL_BTN_TOP_GAP = 3; -constexpr I32 EDITOR_LAYOUT_TOOL_PANEL_GAP = 5; -constexpr I32 EDITOR_LAYOUT_LEFT_BOX_GAP = 10; -constexpr I32 EDITOR_LAYOUT_STATUS_H = 22; -constexpr I32 EDITOR_LAYOUT_STATUS_GAP = 6; -constexpr I32 EDITOR_LAYOUT_TOOL_PANEL_W = 300; -constexpr I32 EDITOR_LAYOUT_TOOL_PANEL_H = 150; -constexpr I32 EDITOR_LAYOUT_PROPS_DEFAULT_W = 300; -constexpr I32 EDITOR_LAYOUT_PROPS_DEFAULT_H = 300; -constexpr I32 EDITOR_LAYOUT_VIEW_DEFAULT_H = 370; -constexpr I32 EDITOR_LAYOUT_PROPS_MIN_W = 200; -constexpr I32 EDITOR_LAYOUT_PROPS_MIN_H = 120; -constexpr I32 EDITOR_LAYOUT_ASSETS_MIN_H = 120; -constexpr I32 EDITOR_LAYOUT_VIEW_MIN_H = 140; -constexpr I32 EDITOR_LAYOUT_RIGHT_MIN_W = 260; - -constexpr I32 EDITOR_TOOLBAR_DROPDOWN_W = 120; +const I32 EDITOR_LAYOUT_MARGIN = 10; +const I32 EDITOR_LAYOUT_TITLE_OFFSET = 15; +const I32 EDITOR_LAYOUT_MENU_Y = 1; +const I32 EDITOR_LAYOUT_MENU_H = 22; +const I32 EDITOR_LAYOUT_NAV_Y = EDITOR_LAYOUT_MENU_Y + EDITOR_LAYOUT_MENU_H + 4; +const I32 EDITOR_LAYOUT_CONTENT_Y = EDITOR_LAYOUT_NAV_Y + 28; +const I32 EDITOR_LAYOUT_COLUMN_GAP = 10; +const I32 EDITOR_LAYOUT_VIEW_TOOL_GAP = 17; +const I32 EDITOR_LAYOUT_TOOL_BTN_TOP_GAP = 3; +const I32 EDITOR_LAYOUT_TOOL_PANEL_GAP = 5; +const I32 EDITOR_LAYOUT_LEFT_BOX_GAP = 10; +const I32 EDITOR_LAYOUT_STATUS_H = 22; +const I32 EDITOR_LAYOUT_STATUS_GAP = 6; +const I32 EDITOR_LAYOUT_TOOL_PANEL_W = 300; +const I32 EDITOR_LAYOUT_TOOL_PANEL_H = 150; +const I32 EDITOR_LAYOUT_PROPS_DEFAULT_W = 300; +const I32 EDITOR_LAYOUT_PROPS_DEFAULT_H = 300; +const I32 EDITOR_LAYOUT_VIEW_DEFAULT_H = 370; +const I32 EDITOR_LAYOUT_PROPS_MIN_W = 200; +const I32 EDITOR_LAYOUT_PROPS_MIN_H = 120; +const I32 EDITOR_LAYOUT_ASSETS_MIN_H = 120; +const I32 EDITOR_LAYOUT_VIEW_MIN_H = 140; +const I32 EDITOR_LAYOUT_RIGHT_MIN_W = 260; + +const I32 EDITOR_TOOLBAR_DROPDOWN_W = 120; extern U8 editor_menu_hover_mask_active; extern I32 editor_menu_hover_real_x; @@ -52,4 +52,4 @@ extern void editor_create_auxiliary_panels( GAME_EDITOR* e ); extern void editor_update_toolview( GAME_EDITOR* e ); extern void editor_create_toolview_column( GAME_EDITOR* e ); extern void editor_create_game_view_column( GAME_EDITOR* e ); -extern void settool( U8 t ); +extern void editor_settool( U8 t ); |
