コード例 #1
0
    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();
    }
コード例 #3
0
    public TilesetListWindow (TilesetWindow parent)
    {
        _parent = parent;
        LoadTilesets();

        EditorApplication.projectWindowChanged += LoadTilesets;
    }
コード例 #4
0
    public TilesetListWindow(TilesetWindow parent)
    {
        _parent = parent;
        LoadTilesets();

        EditorApplication.projectWindowChanged += LoadTilesets;
    }
コード例 #5
0
 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();
     }
 }
コード例 #6
0
 public TilesetAddWindow (TilesetWindow parent)
 {
     _parent = parent;
 }
コード例 #7
0
 public TilesetAddWindow(TilesetWindow parent)
 {
     _parent = parent;
 }