Tileset Editor Improvement
This commit is contained in:
parent
3d4bf5a90e
commit
e69dd47501
8 changed files with 757 additions and 517 deletions
|
|
@ -38,6 +38,7 @@
|
|||
#include "scene/gui/nine_patch_rect.h"
|
||||
#include "scene/resources/style_box.h"
|
||||
#include "scene/resources/texture.h"
|
||||
#include "scene/resources/tile_set.h"
|
||||
|
||||
/**
|
||||
@author Mariano Suligoy
|
||||
|
|
@ -55,6 +56,8 @@ class TextureRegionEditor : public Control {
|
|||
};
|
||||
|
||||
friend class TextureRegionEditorPlugin;
|
||||
friend class TileSetEditor;
|
||||
friend class TileSetEditorPlugin;
|
||||
MenuButton *snap_mode_button;
|
||||
TextureRect *icon_zoom;
|
||||
ToolButton *zoom_in;
|
||||
|
|
@ -88,12 +91,14 @@ class TextureRegionEditor : public Control {
|
|||
Sprite *node_sprite;
|
||||
Ref<StyleBoxTexture> obj_styleBox;
|
||||
Ref<AtlasTexture> atlas_tex;
|
||||
Ref<TileSet> tile_set;
|
||||
|
||||
Rect2 rect;
|
||||
Rect2 rect_prev;
|
||||
float prev_margin;
|
||||
int edited_margin;
|
||||
List<Rect2> autoslice_cache;
|
||||
int selected_tile;
|
||||
|
||||
bool drag;
|
||||
bool creating;
|
||||
|
|
@ -134,7 +139,7 @@ public:
|
|||
class TextureRegionEditorPlugin : public EditorPlugin {
|
||||
GDCLASS(TextureRegionEditorPlugin, EditorPlugin);
|
||||
|
||||
Button *region_button;
|
||||
Button *texture_region_button;
|
||||
TextureRegionEditor *region_editor;
|
||||
EditorNode *editor;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue