public TilesetPropertiesWindow(TilesetWindow parent) { _parent = parent; _overlay = new Texture2D(OverlaySize, OverlaySize, TextureFormat.ARGB32, false); _highlight1 = new Texture2D(OverlaySize, OverlaySize, TextureFormat.ARGB32, false); _highlight2 = new Texture2D(OverlaySize, OverlaySize, TextureFormat.ARGB32, false); var colorO = new Color32(255, 255, 0, 127); var colorsO = Util.InitilizeArray(OverlaySize, colorO); _overlay.SetPixels32(colorsO); _overlay.Apply(); var colorH1 = new Color32(255, 0, 255, 127); var colorsH1 = Util.InitilizeArray(OverlaySize, colorH1); _highlight1.SetPixels32(colorsH1); _highlight1.Apply(); var colorH2 = new Color32(0, 255, 255, 127); var colorsH2 = Util.InitilizeArray(OverlaySize, colorH2); _highlight2.SetPixels32(colorsH2); _highlight2.Apply(); }
public TilesetPropertiesWindow (TilesetWindow parent) { _parent = parent; _overlay = new Texture2D(OverlaySize, OverlaySize, TextureFormat.ARGB32, false); _highlight1 = new Texture2D(OverlaySize, OverlaySize, TextureFormat.ARGB32, false); _highlight2 = new Texture2D(OverlaySize, OverlaySize, TextureFormat.ARGB32, false); var colorO = new Color32(255, 255, 0, 127); var colorsO = Util.InitilizeArray(OverlaySize, colorO); _overlay.SetPixels32(colorsO); _overlay.Apply(); var colorH1 = new Color32(255, 0, 255, 127); var colorsH1 = Util.InitilizeArray(OverlaySize, colorH1); _highlight1.SetPixels32(colorsH1); _highlight1.Apply(); var colorH2 = new Color32(0, 255, 255, 127); var colorsH2 = Util.InitilizeArray(OverlaySize, colorH2); _highlight2.SetPixels32(colorsH2); _highlight2.Apply(); }
public TilesetListWindow (TilesetWindow parent) { _parent = parent; LoadTilesets(); EditorApplication.projectWindowChanged += LoadTilesets; }
public TilesetListWindow(TilesetWindow parent) { _parent = parent; LoadTilesets(); EditorApplication.projectWindowChanged += LoadTilesets; }
public static void Init() { if (currWindow == null) { currWindow = (TilesetWindow)EditorWindow.GetWindow(typeof(TilesetWindow)); currWindow.titleContent.text = "Tileset"; // currWindow.minSize = new Vector2(256,512); } else { currWindow.Show(); } }
public TilesetAddWindow (TilesetWindow parent) { _parent = parent; }
public TilesetAddWindow(TilesetWindow parent) { _parent = parent; }