예제 #1
0
파일: ChoiceNode.cs 프로젝트: despin89/repo
        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();
        }
예제 #2
0
 public static void ShowWindow(EncounterInfo item)
 {
     Instance = GetWindow(typeof(AllowersWindow), false, "AllowersWindow") as AllowersWindow;
     Instance._encounterInfo = item;
 }