Beispiel #1
0
 // Reloading
 private void ReloadPaletteEditor()
 {
     if (PaletteEditor != null)
     {
         PaletteEditor.Reload(PaletteSet, 8, 0, 8);
     }
 }
Beispiel #2
0
 public PaletteComponent(GUIController guiController, AGSEditor agsEditor)
     : base(guiController, agsEditor)
 {
     _palEditor = new PaletteEditor();
     RecreateDocument();
     _guiController.RegisterIcon("PaletteIcon", Resources.ResourceManager.GetIcon("iconpal.ico"));
     _guiController.ProjectTree.AddTreeRoot(this, TOP_LEVEL_COMMAND_ID, "Colours", "PaletteIcon");
 }
Beispiel #3
0
 public PaletteComponent(GUIController guiController, AGSEditor agsEditor)
     : base(guiController, agsEditor)
 {
     _palEditor = new PaletteEditor();
     RecreateDocument();
     _guiController.RegisterIcon("PaletteIcon", Resources.ResourceManager.GetIcon("iconpal.ico"));
     _guiController.ProjectTree.AddTreeRoot(this, TOP_LEVEL_COMMAND_ID, "Colours", "PaletteIcon");
 }
Beispiel #4
0
 // Forms
 private void openPalettes_Click(object sender, EventArgs e)
 {
     if (PaletteEditor == null)
     {
         LoadPaletteEditor();
     }
     PaletteEditor.Show();
 }
Beispiel #5
0
 // Editor loading
 private void LoadPaletteEditor()
 {
     if (paletteEditor == null)
     {
         paletteEditor       = new PaletteEditor(new PaletteUpdater(), PaletteSet, 8, 0, 8);
         paletteEditor.Owner = this;
     }
     else
     {
         paletteEditor.Reload(PaletteSet, 8, 0, 8);
     }
 }
Beispiel #6
0
 private void LoadSpritePaletteEditor()
 {
     if (spritePaletteEditor == null)
     {
         spritePaletteEditor              = new PaletteEditor(new Function(SpritePaletteUpdate), Model.MinecartObjectPaletteSet, 8, 0, 8);
         spritePaletteEditor.FormClosing += new FormClosingEventHandler(editor_FormClosing);
     }
     else
     {
         spritePaletteEditor.Reload(new Function(SpritePaletteUpdate), Model.MinecartObjectPaletteSet, 8, 0, 8);
     }
 }
Beispiel #7
0
 //
 private void LoadStagePaletteEditor()
 {
     if (stagePaletteEditor == null)
     {
         stagePaletteEditor              = new PaletteEditor(new Function(StagePaletteUpdate), paletteSet, 8, 0, 8);
         stagePaletteEditor.FormClosing += new FormClosingEventHandler(editor_FormClosing);
     }
     else
     {
         stagePaletteEditor.Reload(new Function(StagePaletteUpdate), paletteSet, 8, 0, 8);
     }
 }
Beispiel #8
0
 // Form loading
 private void LoadPaletteEditor()
 {
     if (paletteEditor == null)
     {
         paletteEditor              = new PaletteEditor(new PaletteUpdater(), paletteSets[palette], 8, 2, 6);
         paletteEditor.FormClosing += new FormClosingEventHandler(editor_FormClosing);
     }
     else
     {
         paletteEditor.Reload(paletteSets[palette], 8, 2, 6);
     }
 }
 // editors
 public void LoadPaletteEditor()
 {
     if (paletteEditor == null)
     {
         paletteEditor              = new PaletteEditor(new Function(PaletteUpdate), animation.PaletteSet, 8, 0, 8);
         paletteEditor.FormClosing += new FormClosingEventHandler(editor_FormClosing);
     }
     else
     {
         paletteEditor.Reload(new Function(PaletteUpdate), animation.PaletteSet, 8, 0, 8);
     }
 }
Beispiel #10
0
 private void LoadMenuPaletteEditor()
 {
     if (menuPaletteEditor == null)
     {
         menuPaletteEditor       = new PaletteEditor(new PaletteMenuUpdater(), Model.Palette_BattleMenu, 2, 0, 2);
         menuPaletteEditor.Owner = this;
     }
     else
     {
         ReloadMenuPaletteEditor();
     }
 }
Beispiel #11
0
 public void LoadPaletteMenuEditor()
 {
     if (paletteEditorMenu == null)
     {
         paletteEditorMenu              = new PaletteEditor(new Function(PaletteMenuUpdate), Model.FontPaletteMenu, 2, 0, 2);
         paletteEditorMenu.FormClosing += new FormClosingEventHandler(editor_FormClosing);
     }
     else
     {
         paletteEditorMenu.Reload(new Function(PaletteMenuUpdate), Model.FontPaletteMenu, 2, 0, 2);
     }
 }
Beispiel #12
0
 // editors
 public void LoadPaletteEditor()
 {
     if (paletteEditor == null)
     {
         paletteEditor              = new PaletteEditor(new Function(PaletteUpdate), fontPalette, 2, 1, 1);
         paletteEditor.FormClosing += new FormClosingEventHandler(editor_FormClosing);
     }
     else
     {
         paletteEditor.Reload(new Function(PaletteUpdate), fontPalette, 2, 1, 1);
     }
 }
Beispiel #13
0
 private void LoadLogoPaletteEditor()
 {
     if (logoPaletteEditor == null)
     {
         logoPaletteEditor              = new PaletteEditor(new Function(LogoPaletteUpdate), logoPalette, 1, 0, 1);
         logoPaletteEditor.FormClosing += new FormClosingEventHandler(editor_FormClosing);
     }
     else
     {
         logoPaletteEditor.Reload(new Function(LogoPaletteUpdate), logoPalette, 1, 0, 1);
     }
 }
Beispiel #14
0
 private void LoadSpritePaletteEditor()
 {
     if (spritePaletteEditor == null)
     {
         spritePaletteEditor       = new PaletteEditor(new PaletteSpritesUpdater(), Model.ObjectPaletteSet, 8, 0, 8);
         spritePaletteEditor.Owner = this;
     }
     else
     {
         ReloadSpritePaletteEditor();
     }
 }
Beispiel #15
0
 // Loading
 public void LoadPaletteEditor()
 {
     if (PaletteEditor == null)
     {
         PaletteEditor       = new PaletteEditor(new PaletteUpdater(), PaletteSet, 8, 0, 8);
         PaletteEditor.Owner = this;
     }
     else
     {
         ReloadPaletteEditor();
     }
 }
 public void LoadPaletteMenuEditor()
 {
     if (paletteEditorMenu == null)
     {
         paletteEditorMenu       = new PaletteEditor(new PaletteMenuUpdater(), Fonts.Model.Palette_Menu, 2, 0, 2);
         paletteEditorMenu.Owner = this;
     }
     else
     {
         ReloadPaletteMenuEditor();
     }
 }
Beispiel #17
0
 private void LoadNumeralPaletteEditor()
 {
     if (numeralPaletteEditor == null)
     {
         numeralPaletteEditor       = new PaletteEditor(new PaletteUpdater(), Model.Palette_Numerals, 2, 0, 2);
         numeralPaletteEditor.Owner = this;
     }
     else
     {
         ReloadNumeralPaletteEditor();
     }
 }
 private void LoadSpritePaletteEditor()
 {
     if (spritePaletteEditor == null)
     {
         spritePaletteEditor              = new PaletteEditor(new Function(SpritePaletteUpdate), spritePaletteSet, 5, 0, 5);
         spritePaletteEditor.FormClosing += new FormClosingEventHandler(editor_FormClosing);
     }
     else
     {
         spritePaletteEditor.Reload(new Function(SpritePaletteUpdate), spritePaletteSet, 5, 0, 5);
     }
 }
Beispiel #19
0
 public void LoadPaletteEditor()
 {
     if (paletteEditor == null)
     {
         paletteEditor       = new PaletteEditor(new PaletteUpdater(), animation.PaletteSet, 8, 0, 8);
         paletteEditor.Owner = this;
     }
     else
     {
         ReloadPaletteEditor();
     }
 }
Beispiel #20
0
 private void LoadMenuPaletteEditor()
 {
     if (menuPaletteEditor == null)
     {
         menuPaletteEditor              = new PaletteEditor(new Function(MenuPaletteUpdate), Model.BattleMenuPalette, 2, 0, 2);
         menuPaletteEditor.FormClosing += new FormClosingEventHandler(editor_FormClosing);
     }
     else
     {
         menuPaletteEditor.Reload(new Function(MenuPaletteUpdate), Model.BattleMenuPalette, 2, 0, 2);
     }
 }
Beispiel #21
0
 // Forms
 public void LoadPaletteEditor()
 {
     if (paletteEditor == null)
     {
         paletteEditor       = new PaletteEditor(new PaletteUpdater(), PaletteSet, 1, 0, 1);
         paletteEditor.Owner = this;
     }
     else
     {
         ReloadPaletteEditor();
     }
 }
Beispiel #22
0
 private void LoadPaletteEditor()
 {
     if (numeralPaletteEditor == null)
     {
         numeralPaletteEditor              = new PaletteEditor(new Function(PaletteUpdate), Model.NumeralPaletteSet, 2, 0, 2);
         numeralPaletteEditor.FormClosing += new FormClosingEventHandler(editor_FormClosing);
     }
     else
     {
         numeralPaletteEditor.Reload(new Function(PaletteUpdate), Model.NumeralPaletteSet, 2, 0, 2);
     }
 }
 //
 private void LoadPaletteEditor()
 {
     if (paletteEditor == null)
     {
         paletteEditor              = new PaletteEditor(new Function(PaletteUpdate), paletteSet, 8, 1, 7);
         paletteEditor.FormClosing += new FormClosingEventHandler(editor_FormClosing);
     }
     else
     {
         paletteEditor.Reload(new Function(PaletteUpdate), paletteSet, 8, 1, 7);
     }
 }
Beispiel #24
0
 // Form management
 private void LoadPaletteEditor()
 {
     if (paletteEditor == null)
     {
         paletteEditor              = new PaletteEditor(new PalettePreGameUpdater(), paletteSet, 1, 0, 1);
         paletteEditor.FormClosing += new FormClosingEventHandler(editor_FormClosing);
         paletteEditor.Owner        = this.Owner;
     }
     else
     {
         paletteEditor.Reload(paletteSet, 1, 0, 1);
     }
 }
Beispiel #25
0
 private void LoadPaletteEditor()
 {
     if (PaletteEditor == null)
     {
         PaletteEditor              = new PaletteEditor(new PaletteTitleUpdater(), PaletteSet, 8, 0, 8);
         PaletteEditor.FormClosing += new FormClosingEventHandler(editor_FormClosing);
         PaletteEditor.Owner        = this.Owner;
     }
     else
     {
         PaletteEditor.Reload(PaletteSet, 8, 0, 8);
     }
 }
 private void paletteToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (paletteEditor == null || paletteEditor.IsDisposed)
     {
         paletteEditor = new PaletteEditor();
         paletteEditor.Show();
     }
     else
     {
         paletteEditor.Show();
         paletteEditor.BringToFront();
     }
 }
Beispiel #27
0
        private void LoadLogoPaletteEditor()
        {
            var ownerForm = LazyShell.Model.Program.WorldMaps.WorldMapsForm;

            if (logoPaletteEditor == null)
            {
                logoPaletteEditor       = new PaletteEditor(new LogoPaletteUpdater(), Model.Logos_PaletteSet, 1, 0, 1);
                logoPaletteEditor.Owner = ownerForm;
            }
            else
            {
                logoPaletteEditor.Reload(Model.Logos_PaletteSet, 1, 0, 1);
            }
        }
Beispiel #28
0
    //private Palettes OldPal;
    //private bool Forest;

    /// Overrides the default GUI to show the custom inspector, param are passed in by default from the ShaderGUI editor type
    public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] properties)
    {
        //OldPal = Pal;

        PermColours = (Palette)AssetDatabase.LoadAssetAtPath("Assets/Materials/Palette/Palettes.asset", typeof(Palette));

        if (Selection.gameObjects[0].GetComponent <Renderer>())
        {
            Mat = Selection.gameObjects[0].GetComponent <Renderer>().sharedMaterial;
        }
        else if (Selection.gameObjects[0].GetComponent <Image>())
        {
            Mat = Selection.gameObjects[0].GetComponent <Image>().material;
        }

        ChangeString();
        SetPalette();

        EditorGUILayout.BeginHorizontal();
        if (GUILayout.Button(EditSelectionString))
        {
            EditSelection = !EditSelection;
        }

        // This is broken currently, don't know why atm, still working on this...
        if (GUILayout.Button("Open Editor"))
        {
            PaletteEditor Test = EditorWindow.GetWindow <PaletteEditor>();
            Test.Version = this;
        }

        //if (Selection.gameObjects[0].GetComponent<Renderer>().sharedMaterial.GetFloat("_IsInstance") == 0)
        //{
        //    if (GUILayout.Button("Make Instance"))
        //    {
        //        Selection.gameObjects[0].GetComponent<Renderer>().material = Selection.gameObjects[0].GetComponent<Renderer>().material;
        //        Selection.gameObjects[0].GetComponent<Renderer>().sharedMaterial.SetFloat("_IsInstance", 1);
        //    }
        //}
        //else
        //{
        //    if (GUILayout.Button("Revert Instance"))
        //    {
        //        var Test = new MaterialPropertyBlock();
        //        Selection.gameObjects[0].GetComponent<Renderer>().sharedMaterial.name = "ColourChanger_MAT";
        //        Selection.gameObjects[0].GetComponent<Renderer>().GetPropertyBlock(Test);
        //        Selection.gameObjects[0].GetComponent<Renderer>().sharedMaterial.SetFloat("_IsInstance", 0);
        //    }
        //}


        EditorGUILayout.EndHorizontal();

        if (EditSelection)
        {
            GUILayout.Space(10);
            EditorGUILayout.HelpBox("Here you can edit the selection. \nThis shouldn't need editing if the art has been imported right.", MessageType.None);
            GUILayout.Space(10);
            EditorGUILayout.BeginHorizontal();
            EditorGUILayout.LabelField("Sprite Colours:", GUILayout.MaxWidth(100));
            Mat.SetColor("_TexCol1", EditorGUILayout.ColorField(new Color32(212, 212, 212, 255)));
            Mat.SetColor("_TexCol2", EditorGUILayout.ColorField(new Color32(144, 144, 144, 255)));
            Mat.SetColor("_TexCol3", EditorGUILayout.ColorField(new Color32(72, 72, 72, 255)));
            Mat.SetColor("_TexCol4", EditorGUILayout.ColorField(new Color32(0, 0, 0, 255)));
            EditorGUILayout.EndHorizontal();

            GUI.color = Color.white;

            EditorGUILayout.BeginHorizontal();
            GUILayout.FlexibleSpace();
            EditorGUILayout.LabelField("Hex Codes:", GUILayout.Width(75f));
            EditorGUILayout.TextField(ConverToHexValue(new Color32(212, 212, 212, 255)), GUILayout.Width(54f));
            EditorGUILayout.TextField(ConverToHexValue(new Color32(144, 144, 144, 255)), GUILayout.Width(54f));
            EditorGUILayout.TextField(ConverToHexValue(new Color32(72, 72, 72, 255)), GUILayout.Width(54f));
            EditorGUILayout.TextField(ConverToHexValue(new Color32(0, 0, 0, 255)), GUILayout.Width(54f));
            GUILayout.FlexibleSpace();
            EditorGUILayout.EndHorizontal();
        }

        EditorGUILayout.LabelField("Select Palette to change to...", EditorStyles.boldLabel);

        Pal = (Palettes)EditorGUILayout.EnumPopup(Pal);

        //if ((Pal != OldPal) && (Selection.gameObjects[0].GetComponent<Renderer>().sharedMaterial.GetFloat("_IsInstance") == 0))
        //{
        //    Selection.gameObjects[0].GetComponent<Renderer>().material = Selection.gameObjects[0].GetComponent<Renderer>().material;
        //    Selection.gameObjects[0].GetComponent<Renderer>().sharedMaterial.SetFloat("_IsInstance", 1);
        //}

        switch (Pal)
        {
        case Palettes.Palette1:
            EditorGUILayout.BeginHorizontal();
            GUILayout.FlexibleSpace();
            GUI.color = PermColours.Pal1[0];
            GUILayout.Button(Resources.Load <Texture2D>("CarterGames/Stop"), GUIStyle.none, GUILayout.MaxWidth(50), GUILayout.MaxHeight(50));
            GUI.color = PermColours.Pal1[1];
            GUILayout.Button(Resources.Load <Texture2D>("CarterGames/Stop"), GUIStyle.none, GUILayout.MaxWidth(50), GUILayout.MaxHeight(50));
            GUI.color = PermColours.Pal1[2];
            GUILayout.Button(Resources.Load <Texture2D>("CarterGames/Stop"), GUIStyle.none, GUILayout.MaxWidth(50), GUILayout.MaxHeight(50));

            GUILayout.FlexibleSpace();
            EditorGUILayout.EndHorizontal();

            GUI.color = Color.white;

            EditorGUILayout.BeginHorizontal();
            GUILayout.FlexibleSpace();
            EditorGUILayout.TextField(ConverToHexValue(PermColours.Pal1[0]), GUILayout.Width(50f));
            EditorGUILayout.TextField(ConverToHexValue(PermColours.Pal1[1]), GUILayout.Width(50f));
            EditorGUILayout.TextField(ConverToHexValue(PermColours.Pal1[2]), GUILayout.Width(50f));
            GUILayout.FlexibleSpace();
            EditorGUILayout.EndHorizontal();

            Mat.SetColor("_PalCol1", PermColours.Pal1[0]);
            Mat.SetColor("_PalCol2", PermColours.Pal1[1]);
            Mat.SetColor("_PalCol3", PermColours.Pal1[2]);


            if (Mat.GetFloat("_PaletteSelected") != (int)Pal + 1)
            {
                Mat.SetFloat("_PaletteSelected", (int)Pal + 1);
            }

            break;

        case Palettes.Palette2:
            EditorGUILayout.BeginHorizontal();
            GUILayout.FlexibleSpace();
            GUI.color = PermColours.Pal2[0];
            GUILayout.Button(Resources.Load <Texture2D>("CarterGames/Stop"), GUIStyle.none, GUILayout.MaxWidth(50), GUILayout.MaxHeight(50));
            GUI.color = PermColours.Pal2[1];
            GUILayout.Button(Resources.Load <Texture2D>("CarterGames/Stop"), GUIStyle.none, GUILayout.MaxWidth(50), GUILayout.MaxHeight(50));
            GUI.color = PermColours.Pal2[2];
            GUILayout.Button(Resources.Load <Texture2D>("CarterGames/Stop"), GUIStyle.none, GUILayout.MaxWidth(50), GUILayout.MaxHeight(50));

            GUILayout.FlexibleSpace();
            EditorGUILayout.EndHorizontal();

            GUI.color = Color.white;

            EditorGUILayout.BeginHorizontal();
            GUILayout.FlexibleSpace();
            EditorGUILayout.TextField(ConverToHexValue(PermColours.Pal2[0]), GUILayout.Width(50f));
            EditorGUILayout.TextField(ConverToHexValue(PermColours.Pal2[1]), GUILayout.Width(50f));
            EditorGUILayout.TextField(ConverToHexValue(PermColours.Pal2[2]), GUILayout.Width(50f));
            GUILayout.FlexibleSpace();
            EditorGUILayout.EndHorizontal();

            Mat.SetColor("_PalCol1", PermColours.Pal2[0]);
            Mat.SetColor("_PalCol2", PermColours.Pal2[1]);
            Mat.SetColor("_PalCol3", PermColours.Pal2[2]);

            //if ((Mat.GetFloat("_IsInstance") > 0) && (IsTrans))
            //{
            //    Mat.SetColor("_PalCol4", Mat.GetColor("_StoreTrans2"));
            //}
            //else
            //{
            //    Mat.SetColor("_PalCol4", Color.clear);
            //}

            if (Mat.GetFloat("_PaletteSelected") != (int)Pal + 1)
            {
                Mat.SetFloat("_PaletteSelected", (int)Pal + 1);
            }

            break;

        case Palettes.Palette3:
            EditorGUILayout.BeginHorizontal();
            GUILayout.FlexibleSpace();
            GUI.color = PermColours.Pal3[0];
            GUILayout.Button(Resources.Load <Texture2D>("CarterGames/Stop"), GUIStyle.none, GUILayout.MaxWidth(50), GUILayout.MaxHeight(50));
            GUI.color = PermColours.Pal3[1];
            GUILayout.Button(Resources.Load <Texture2D>("CarterGames/Stop"), GUIStyle.none, GUILayout.MaxWidth(50), GUILayout.MaxHeight(50));
            GUI.color = PermColours.Pal3[2];
            GUILayout.Button(Resources.Load <Texture2D>("CarterGames/Stop"), GUIStyle.none, GUILayout.MaxWidth(50), GUILayout.MaxHeight(50));

            GUILayout.FlexibleSpace();
            EditorGUILayout.EndHorizontal();

            GUI.color = Color.white;

            EditorGUILayout.BeginHorizontal();
            GUILayout.FlexibleSpace();
            EditorGUILayout.TextField(ConverToHexValue(PermColours.Pal3[0]), GUILayout.Width(50f));
            EditorGUILayout.TextField(ConverToHexValue(PermColours.Pal3[1]), GUILayout.Width(50f));
            EditorGUILayout.TextField(ConverToHexValue(PermColours.Pal3[2]), GUILayout.Width(50f));
            GUILayout.FlexibleSpace();
            EditorGUILayout.EndHorizontal();


            Mat.SetColor("_PalCol1", PermColours.Pal3[0]);
            Mat.SetColor("_PalCol2", PermColours.Pal3[1]);
            Mat.SetColor("_PalCol3", PermColours.Pal3[2]);

            //if ((Mat.GetFloat("_IsInstance") > 0) && (IsTrans))
            //{
            //    Mat.SetColor("_PalCol4", Mat.GetColor("_StoreTrans3"));
            //}
            //else
            //{
            //    Mat.SetColor("_PalCol4", Color.clear);
            //}

            if (Mat.GetFloat("_PaletteSelected") != (int)Pal + 1)
            {
                Mat.SetFloat("_PaletteSelected", (int)Pal + 1);
            }

            break;

        case Palettes.Palette4:
            EditorGUILayout.BeginHorizontal();
            GUILayout.FlexibleSpace();
            GUI.color = PermColours.Pal4[0];
            GUILayout.Button(Resources.Load <Texture2D>("CarterGames/Stop"), GUIStyle.none, GUILayout.MaxWidth(50), GUILayout.MaxHeight(50));
            GUI.color = PermColours.Pal4[1];
            GUILayout.Button(Resources.Load <Texture2D>("CarterGames/Stop"), GUIStyle.none, GUILayout.MaxWidth(50), GUILayout.MaxHeight(50));
            GUI.color = PermColours.Pal4[2];
            GUILayout.Button(Resources.Load <Texture2D>("CarterGames/Stop"), GUIStyle.none, GUILayout.MaxWidth(50), GUILayout.MaxHeight(50));

            GUILayout.FlexibleSpace();
            EditorGUILayout.EndHorizontal();


            GUI.color = Color.white;

            EditorGUILayout.BeginHorizontal();
            GUILayout.FlexibleSpace();
            EditorGUILayout.TextField(ConverToHexValue(PermColours.Pal4[0]), GUILayout.Width(50f));
            EditorGUILayout.TextField(ConverToHexValue(PermColours.Pal4[1]), GUILayout.Width(50f));
            EditorGUILayout.TextField(ConverToHexValue(PermColours.Pal4[2]), GUILayout.Width(50f));
            GUILayout.FlexibleSpace();
            EditorGUILayout.EndHorizontal();

            Mat.SetColor("_PalCol1", PermColours.Pal4[0]);
            Mat.SetColor("_PalCol2", PermColours.Pal4[1]);
            Mat.SetColor("_PalCol3", PermColours.Pal4[2]);

            //if ((Mat.GetFloat("_IsInstance") > 0) && (IsTrans))
            //{
            //    Mat.SetColor("_PalCol4", Mat.GetColor("_StoreTrans4"));
            //}
            //else
            //{
            //    Mat.SetColor("_PalCol4", Color.clear);
            //}

            if (Mat.GetFloat("_PaletteSelected") != (int)Pal + 1)
            {
                Mat.SetFloat("_PaletteSelected", (int)Pal + 1);
            }

            break;

        default:
            break;
        }


        GUI.color = Color.white;

        //if (Mat.GetFloat("_IsInstance") > 0)
        //{
        //    EditorGUILayout.BeginHorizontal();
        //    EditorGUILayout.LabelField("Use 4th Colour?", GUILayout.Width(95));
        //    IsTrans = EditorGUILayout.Toggle(IsTrans);
        //    EditorGUILayout.EndHorizontal();

        //    if ((IsTrans) && (Mat.GetFloat("_UseTrans") < 1)) { Mat.SetFloat("_UseTrans", 0); }
        //    else { Mat.SetFloat("_UseTrans", 1); }
        //}



        //base.OnGUI(materialEditor, properties);
    }
Beispiel #29
0
 private void Init()
 {
     _palEditor = new PaletteEditor();
     RecreateDocument();            
 }
Beispiel #30
0
 private void Init()
 {
     _palEditor = new PaletteEditor();
     RecreateDocument();
 }