public override void OnGUI() { EditorStyles.textField.wordWrap = true; GUILayout.BeginVertical(new GUIStyle(GUI.skin.box) { normal = { background = Node.GetMonoTex(Color.gray) } }); this.Encounter.Texts.First().Text = EditorGUILayout.TextArea(this.Encounter.Texts.First().Text, GUILayout.Width(220), GUILayout.Height(140)); GUILayout.Space(5); if (GUILayout.Button("Edit Texts")) { TextsWindow.ShowWindow(this.Encounter); } if (GUILayout.Button("Edit Events")) { EventsWindow.ShowWindow(this.Encounter); } if (GUILayout.Button("Edit Allowers")) { AllowersWindow.ShowWindow(this.Encounter); } GUILayout.EndVertical(); }
public static void ShowWindow(EncounterInfo item) { Instance = GetWindow(typeof(AllowersWindow), false, "AllowersWindow") as AllowersWindow; Instance._encounterInfo = item; }