public SpriteEditorWindow() { m_EventSystem = new EventSystem(); m_UndoSystem = new UndoSystem(); m_AssetDatabase = new AssetDatabaseSystem(); m_GUIUtility = new GUIUtilitySystem(); }
protected SpriteFrameModuleBase(string name, ISpriteEditor sw, IEventSystem es, IUndoSystem us, IAssetDatabase ad) { spriteEditor = sw; eventSystem = es; undoSystem = us; assetDatabase = ad; m_ModuleName = name; }
public SpriteOutlineModule(ISpriteEditor sem, IEventSystem es, IUndoSystem us, IAssetDatabase ad, IGUIUtility gu, IShapeEditorFactory sef, ITexture2D outlineTexture) { this.spriteEditorWindow = sem; this.undoSystem = us; this.eventSystem = es; this.assetDatabase = ad; this.guiUtility = gu; this.shapeEditorFactory = sef; this.m_OutlineTexture = outlineTexture; this.m_ShapeSelectionUI = new ShapeEditorRectSelectionTool(gu); this.m_ShapeSelectionUI.RectSelect += new Action <Rect, ShapeEditor.SelectionType>(this.RectSelect); this.m_ShapeSelectionUI.ClearSelection += new Action(this.ClearSelection); }
public SpriteOutlineModule(ISpriteEditor sem, IEventSystem es, IUndoSystem us, IAssetDatabase ad, IGUIUtility gu, IShapeEditorFactory sef, ITexture2D outlineTexture) { spriteEditorWindow = sem; undoSystem = us; eventSystem = es; assetDatabase = ad; guiUtility = gu; shapeEditorFactory = sef; m_OutlineTexture = outlineTexture; m_ShapeSelectionUI = new ShapeEditorRectSelectionTool(gu); m_ShapeSelectionUI.RectSelect += RectSelect; m_ShapeSelectionUI.ClearSelection += ClearSelection; }
private void OnEnable() { this.m_EventSystem = new EventSystem(); this.m_UndoSystem = new UndoSystem(); this.m_AssetDatabase = new AssetDatabaseSystem(); this.m_GUIUtility = new GUIUtilitySystem(); base.minSize = new Vector2(360f, 200f); base.titleContent = SpriteEditorWindow.SpriteEditorWindowStyles.spriteEditorWindowTitle; SpriteEditorWindow.s_Instance = this; this.m_UndoSystem.RegisterUndoCallback(new Undo.UndoRedoCallback(this.UndoRedoPerformed)); EditorApplication.modifierKeysChanged = (EditorApplication.CallbackFunction)Delegate.Combine(EditorApplication.modifierKeysChanged, new EditorApplication.CallbackFunction(this.ModifierKeysChanged)); this.ResetWindow(); this.RefreshPropertiesCache(); this.RefreshRects(); this.InitModules(); }
public SpritePhysicsShapeModule(ISpriteEditor sem, IEventSystem ege, IUndoSystem us, IAssetDatabase ad, IGUIUtility gu, IShapeEditorFactory sef, ITexture2D outlineTexture) : base(sem, ege, us, ad, gu, sef, outlineTexture) { spriteEditorWindow = sem; }
public SpritePolygonModeModule(ISpriteEditor sw, IEventSystem es, IUndoSystem us, IAssetDatabase ad) : base("Sprite Polygon Mode Editor", sw, es, us, ad) { }
protected SpriteFrameModuleBase(string name, ISpriteEditor sw, IEventSystem es, IUndoSystem us, IAssetDatabase ad) { this.spriteEditor = sw; this.eventSystem = es; this.undoSystem = us; this.assetDatabase = ad; this.moduleName = name; }