Ejemplo n.º 1
0
 public static void Init()
 {
     // Get existing open window or if none, make a new one:
     Window              = (Rme_Tools_PrefabRepository)GetWindow(typeof(Rme_Tools_PrefabRepository));
     Window.maxSize      = new Vector2(3000, 3000);
     Window.titleContent = new GUIContent("RPGPrefabs");
     Window.minSize      = new Vector2(500.1f, 100.1f);
     Window.position     = new Rect(100, 100, 900.1f, 800.1f);
 }
Ejemplo n.º 2
0
 void OnEnable()
 {
     Window  = this;
     showAll = true;
 }
Ejemplo n.º 3
0
        private void OnGUIx()
        {
            GUI.skin = Resources.Load("RPGMakerAssets/EditorSkinRPGMaker") as GUISkin;
            if (Window.position.width > 600)
            {
                GUILayout.BeginHorizontal();
            }
            else
            {
                GUILayout.BeginVertical();
            }

            if (GUILayout.Button(new GUIContent("RPGAIO", RPGMakerGUI.RPGMakerIcon), "rpgToolBarButton"))
            {
                Rme_Main.Init();
            }
            if (GUILayout.Button(new GUIContent("Prefab Window", PrefabBrowserIcon), "rpgToolBarButton"))
            {
                Rme_Tools_PrefabRepository.Init();
            }
            if (GUILayout.Button(new GUIContent("Save Data", SaveIcon), "rpgToolBarButton"))
            {
                EditorGameDataSaveLoad.SaveGameData();
            }
            if (GUILayout.Button(new GUIContent("Reload Data", LoadIcon), "rpgToolBarButton"))
            {
                EditorGameDataSaveLoad.LoadGameDataFromEditor();
            }
            if (GUILayout.Button(new GUIContent("Combat", CombatIcon), "rpgToolBarButton"))
            {
                CombatNodeWindow.Init();
            }
            if (GUILayout.Button(new GUIContent("Dialog", DialogIcon), "rpgToolBarButton"))
            {
                DialogNodeWindow.Init();
            }
            if (GUILayout.Button(new GUIContent("Events", EventIcon), "rpgToolBarButton"))
            {
                EventNodeWindow.Init();
            }
            if (GUILayout.Button(new GUIContent("Achievements", AchievementIcon), "rpgToolBarButton"))
            {
                AchievementNodeWindow.Init();
            }
            if (GUILayout.Button(new GUIContent("Map", MapIcon), "rpgToolBarButton"))
            {
                WorldMapNodeWindow.Init();
            }

            if (GUILayout.Button(new GUIContent("New Scene", NewSceneIcon), "rpgToolBarButton"))
            {
                AddScene();
            }
            if (GUILayout.Button(new GUIContent("Event Trigger", EventTriggerIcon), "rpgToolBarButton"))
            {
                EventTrigger();
            }
            if (GUILayout.Button(new GUIContent("Level Switch", LevelSwitchIcon), "rpgToolBarButton"))
            {
                LevelSwitch();
            }
            if (GUILayout.Button(new GUIContent("Popup Text", PopupTextIcon), "rpgToolBarButton"))
            {
                PopupText();
            }


            GUILayout.EndHorizontal();
        }