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"); } }