static public new void SelectCom(GKToyNode node)
        {
            switch (node.doubleClickType)
            {
            // Dialogue.
            case 2:
                GKToyMakerDialogueCom.PopupTaskWindow();
                GKToyMakerDialogueCom.InitSubData((GKToyDialogue)node);
                break;

            // Dialogue condition.
            case 4:
                GKToyMakerDialogueConditionCom.PopupTaskWindow();
                GKToyMakerDialogueConditionCom.InitSubData((GKToyDialogueCondition)node);
                break;

            // Dialogue exit.
            case 5:
                GKToyMakerDialogueExitCom.PopupTaskWindow();
                GKToyMakerDialogueExitCom.InitSubData((GKToyDialogueExit)node);
                break;

            // Dialogue action.
            case 6:
                GKToyMakerDialogueActionCom.PopupTaskWindow();
                GKToyMakerDialogueActionCom.InitSubData((GKToyDialogueAction)node);
                break;

            default:
                break;
            }
        }
Esempio n. 2
0
 public static void PopupTaskWindow()
 {
     instance = GetWindow <GKToyMakerDialogueExitCom>(GKToyDialogueMaker._GetDialogueLocalization("Dialogue exit"), true);
     _styleCenrer.alignment = TextAnchor.MiddleCenter;
     _styleRight.alignment  = TextAnchor.MiddleRight;
     instance.minSize       = new Vector2(300, 80);
     instance.maxSize       = new Vector2(300, 80);
     instance._data         = null;
 }
Esempio n. 3
0
 void OnEnable()
 {
     if (null == instance)
     {
         instance       = GetWindow <GKToyMakerDialogueExitCom>("", true);
         wantsMouseMove = true;
         minSize        = new Vector2(200, 70);
         maxSize        = new Vector2(200, 70);
     }
 }
Esempio n. 4
0
 void OnDestroy()
 {
     instance = null;
 }