summaryrefslogtreecommitdiff
path: root/src/editor/editor_gui_internal.h
blob: ff20a98beabee8633c31927fcf156e438ac39570 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#pragma once

#include "editor.h"
#include "../util.h"

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;
extern I32 editor_menu_hover_real_y;

extern GUI_EDITOR_VIEWTYPE_SEGMENT* gui_editor_viewtype_segment( I32 x, I32 y, I32 w, I32 h, const char* name );
extern GUI_EDITOR_TOOLBAR* gui_editor_toolbar( I32 x, I32 y, I32 w, I32 h, const char* name );
extern GUI_EDITOR_INFOBOX* gui_editor_infobox( I32 x, I32 y, I32 w, I32 h, U8 type, const char* name );

extern void editor_apply_view_mode( GAME_EDITOR* e );
extern void editor_toolbar_close_menu();
extern void editor_create_header_controls( GAME_EDITOR* e );
extern void editor_raise_header_toolbar( GAME_EDITOR* e );

extern void editor_set_bounds( GUI_BASE* node, I32 x, I32 y, I32 w, I32 h );
extern void editor_resize_base_view( GUI_EDITORWINDOW* wnd );
extern void editor_layout_start_menu( GAME_EDITOR* e );
extern void editor_layout_map_view( GAME_EDITOR* e );

extern void editor_create_properties_column( GAME_EDITOR* e );
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 editor_settool( U8 t );