You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
Grid/Tile map editor new item palette
This commit is contained in:
@@ -55,10 +55,18 @@ class TileMapEditor : public VBoxContainer {
|
||||
TOOL_PICKING
|
||||
};
|
||||
|
||||
enum DisplayMode {
|
||||
DISPLAY_THUMBNAIL,
|
||||
DISPLAY_LIST
|
||||
};
|
||||
|
||||
Tool tool;
|
||||
Control *canvas_item_editor;
|
||||
|
||||
Tree *palette;
|
||||
int display_mode;
|
||||
ItemList *palette;
|
||||
ToolButton *button_thumbnail;
|
||||
ToolButton *button_list;
|
||||
EditorNode *editor;
|
||||
Panel *panel;
|
||||
TileMap *node;
|
||||
@@ -95,6 +103,7 @@ class TileMapEditor : public VBoxContainer {
|
||||
int get_selected_tile() const;
|
||||
void set_selected_tile(int p_tile);
|
||||
|
||||
void _set_display_mode(int p_mode);
|
||||
void _update_palette();
|
||||
void _canvas_draw();
|
||||
void _menu_option(int p_option);
|
||||
|
||||
Reference in New Issue
Block a user