diff options
author | volzhs <volzhs@gmail.com> | 2015-06-28 22:28:02 +0900 |
---|---|---|
committer | volzhs <volzhs@gmail.com> | 2015-06-28 22:28:02 +0900 |
commit | 584dd4db878d0a9ebf44dc529dad35bf8dd4796b (patch) | |
tree | c601222ba20cacc80fba7ff43b5de425db13519c /modules/gridmap/grid_map_editor_plugin.h | |
parent | 81a1f32f0c1e4f64bb102c6aa46bcbb4e18bcd55 (diff) | |
parent | 2b64f73b0459190d20b2f6de39275ee7979317c4 (diff) |
Merge branch 'master' of https://github.com/okamstudio/godot
Diffstat (limited to 'modules/gridmap/grid_map_editor_plugin.h')
-rw-r--r-- | modules/gridmap/grid_map_editor_plugin.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/modules/gridmap/grid_map_editor_plugin.h b/modules/gridmap/grid_map_editor_plugin.h index 716ef66f0d..26fe8f20dc 100644 --- a/modules/gridmap/grid_map_editor_plugin.h +++ b/modules/gridmap/grid_map_editor_plugin.h @@ -40,10 +40,8 @@ class SpatialEditorPlugin; class GridMapEditor : public VBoxContainer { - OBJ_TYPE(GridMapEditor, VBoxContainer ); - enum { GRID_CURSOR_SIZE=50 @@ -66,6 +64,10 @@ class GridMapEditor : public VBoxContainer { CLIP_BELOW }; + enum DisplayMode { + DISPLAY_THUMBNAIL, + DISPLAY_LIST + }; UndoRedo *undo_redo; InputAction input_action; @@ -73,6 +75,8 @@ class GridMapEditor : public VBoxContainer { MenuButton * options; SpinBox *floor; OptionButton *edit_mode; + ToolButton *mode_thumbnail; + ToolButton *mode_list; HBoxContainer *spatial_editor_hb; struct SetItem { @@ -132,6 +136,7 @@ class GridMapEditor : public VBoxContainer { Vector3 cursor_origin; Vector3 last_mouseover; + int display_mode; int selected_pallete; int selected_area; int cursor_rot; @@ -183,9 +188,10 @@ class GridMapEditor : public VBoxContainer { void _configure(); void _menu_option(int); void update_pallete(); - Tree *theme_pallete; + void _set_display_mode(int p_mode); + ItemList *theme_pallete; Tree *area_list; - void _item_selected_cbk(); + void _item_selected_cbk(int idx); void _update_cursor_transform(); void _update_cursor_instance(); void _update_clip(); |