예제 #1
0
        private void DrawInspector()
        {
            // Draw Local Switch Button


            if (GUILayout.Button(new GUIContent(EEUtils.labels["LocalSwitches"])))
            {
                LocalSwitchWindow.Open();
                LocalSwitchWindow.instance.Setup(gameEvent);
            }

            //Draw Pages
            reordlistEventPages.DoLayoutList();
            EEPageEditor pageEditor = GetPageEditor();

            if (pageEditor)
            {
                pageEditor.DrawInspectorGUI();
            }
            else
            {
                EditorGUILayout.HelpBox(EEUtils.labels["CreatePage"], MessageType.Info);
            }
        }
 public static void Open()
 {
     instance = (LocalSwitchWindow)GetWindow(typeof(LocalSwitchWindow));
     instance.titleContent = new GUIContent(EEUtils.labels["LocalSwitches"]);
 }