Duplicate Quad, Settings, Hotkeys.

Added the option to duplicate the selected quad.
Added settings for focus, duplication, hotkeys.
Added hotkeys, can be enabled in the settings file.
This commit is contained in:
max
2019-03-31 18:09:53 +02:00
parent 7f5e22b3c1
commit 82efcbb6d0
8 changed files with 129 additions and 6 deletions

View File

@ -8,6 +8,7 @@ namespace MA_TextureAtlasserPro
public class MA_TextureAtlasserProWindow : EditorWindow
{
public static MA_TextureAtlasserProWindow thisWindow;
public MA_TextureAtlasserProSettings settings;
public MA_TextureAtlasserProAtlas textureAtlas;
public MA_TextureAtlasserProWorkView workView;
@ -56,6 +57,7 @@ namespace MA_TextureAtlasserPro
GetCurrentWindow();
}
thisWindow.settings = MA_TextureAtlasserProUtils.LoadSettings();
thisWindow.workView = new MA_TextureAtlasserProWorkView(thisWindow, "workView");
thisWindow.menuView = new MA_TextureAtlasserProMenuView(thisWindow, "menuView");
thisWindow.inspectorView = new MA_TextureAtlasserProInspectorView(thisWindow, "inspectorView");
@ -86,7 +88,7 @@ namespace MA_TextureAtlasserPro
}
//Check views
if(workView == null || menuView == null || inspectorView == null || debugView == null)
if(settings == null || workView == null || menuView == null || inspectorView == null || debugView == null)
{
CreateViews();
return;