override public void WindowGUI(int windowID)
        {
            GUIStyle s = new GUIStyle(GUI.skin.label);

            s.normal.textColor = Color.yellow;
            GUILayout.BeginVertical(sBorderY);
            base.preWindowGUI(windowID);
            base.WindowGUI(windowID);
            GUILayout.Label("If", s, GUILayout.ExpandWidth(false));
            condition.WindowGUI(windowID);
            s.normal.textColor = Color.yellow;
            GUILayout.Label("Then", s, GUILayout.ExpandWidth(false));
            base.postWindowGUI(windowID);

            GUILayout.BeginHorizontal();
            GUILayout.Space(50);
            GUILayout.BeginVertical(sBorderG);
            actionsThen.actionsWindowGui(windowID);
            GUILayout.EndVertical();
            GUILayout.EndHorizontal();
            GUILayout.BeginHorizontal();
            GUILayout.Space(50);
            GUILayout.BeginVertical();
            GUILayout.Label("Else", s, GUILayout.ExpandWidth(false));
            GUILayout.EndVertical();
            GUILayout.EndHorizontal();
            GUILayout.BeginHorizontal();
            GUILayout.Space(50);
            GUILayout.BeginVertical(sBorderR);
            actionsElse.actionsWindowGui(windowID);
            GUILayout.EndVertical();
            GUILayout.EndHorizontal();
            GUILayout.EndVertical();
        }
Esempio n. 2
0
 override public void WindowGUI(int windowID)
 {
     base.preWindowGUI(windowID);
     base.WindowGUI(windowID);
     GUILayout.Label("Wait for");
     condition.WindowGUI(windowID);
     base.postWindowGUI(windowID);
 }