static MainEditorPanel() { MainEditorPanel.menuLabels = new GUIContent[4] { new GUIContent("Startup & Scenes"), new GUIContent("Global Variables"), null, new GUIContent("Settings") }; MainEditorPanel.menuIdx = 0; MainEditorPanel.GC_GameScenes = new GUIContent(Ico._ellipsis_v + " Scenes"); MainEditorPanel.GC_AddScene = new GUIContent(Ico._add_c, "Add scene"); MainEditorPanel.GC_AutoloadBootstrap = new GUIContent(Ico._star, "The bootstrap scene should always load first"); MainEditorPanel.GC_RenameScene = new GUIContent(Ico._rename, "Rename scene"); MainEditorPanel.GC_RemoveScene = new GUIContent(Ico._remove, "Remove scene"); MainEditorPanel.GC_FixError = new GUIContent("Fix it now"); MainEditorPanel.STR_BootstrapError1 = "The bootstrap data could not be loaded."; MainEditorPanel.STR_BootstrapError2 = "The bootstrap scene must be present and first in the list of scenes."; MainEditorPanel.GC_StartupOrder = new GUIContent(" ", "Toggle startup scene and order of loading"); MainEditorPanel.GC_AutoLoad_OFF = new GUIContent(" ", "Toggle scene for auto-loading"); MainEditorPanel.GC_AutoLoad_ON = new GUIContent(Ico._star_o, "Toggle scene for auto-loading"); MainEditorPanel.GC_GlobalVars = new GUIContent(Ico._ellipsis_v + " Global Variables"); MainEditorPanel.GC_GlobalVarsMsg = new GUIContent("The Global Variables should now be available for editing in the Inspector."); MainEditorPanel.GC_ShowGlobalVars = new GUIContent("Show Global Variables"); MainEditorPanel.GC_Settings = new GUIContent(Ico._ellipsis_v + " Settings"); MainEditorPanel.GC_AutoLoadBootstrap = new GUIContent("Auto-load Bootstrap", "Auto-load Bootstrap when the Unity Play Button is used? This should be on if you are using the Blox Game Systems."); MainEditorPanel.GC_InstallDocs = new GUIContent("Install Offline Documentation", "The offline documentation will be installed to the 'Documentations/Blox' folder under the root of your project's path."); MainEditorPanel.GC_UseDocs = new GUIContent("Use ..."); MainEditorPanel.GC_OnlineDocs = new GUIContent("ONLINE: " + BloxEdGlobal.URL_DOCS); MainEditorPanel.GC_OfflineDocs = null; MainEditorWindow.AddChildEditor(new MainEditorPanel()); }
public static void Show_MainEditorWindow() { BloxEdGlobal.CheckAllData(); MainEditorWindow window = EditorWindow.GetWindow <MainEditorWindow>("BGS"); Texture2D image = plyEdGUI.LoadTextureResource("BloxEditor.res.icons.bgs" + (plyEdGUI.IsDarkSkin() ? "_p" : "") + ".png", typeof(MainEditorWindow).Assembly, FilterMode.Point, TextureWrapMode.Clamp); window.titleContent = new GUIContent("BGS", image); }
public static void Show_MainEditorWindow(string showEditorWithIdent, string sendStringToEditor) { MainEditorWindow.forceShow = new string[2] { showEditorWithIdent, sendStringToEditor }; MainEditorWindow.Show_MainEditorWindow(); }
public override void OnGUI(Rect r) { CharacterAttributeDefLinkAttribute characterAttributeDefLinkAttribute = (CharacterAttributeDefLinkAttribute)base.attribute; if (characterAttributeDefLinkAttribute.Header != null) { r.y += 8f; r = EditorGUI.IndentedRect(r); GUI.Label(r, characterAttributeDefLinkAttribute.Header, EditorStyles.boldLabel); r.x += EditorGUIUtility.labelWidth; r.width -= EditorGUIUtility.labelWidth; r.y -= 5f; } if (GUI.Button(r, CharacterAttributeDefLinkDecoratorDrawer.GC_Link, plyEdGUI.Styles.Link)) { MainEditorWindow.Show_MainEditorWindow("blox-main-ed", "attributes"); } }