Exemple #1
0
        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();
        }
Exemple #2
0
 public static void ShowWindow(EncounterInfo item)
 {
     Instance = GetWindow(typeof(TextsWindow), false, "Texts") as TextsWindow;
     Instance._encounterInfo = item;
 }