Beispiel #1
0
 public static void PopupTaskWindow()
 {
     instance = GetWindow <GKToyMakerDialogueCom>(GKToyDialogueMaker._GetDialogueLocalization("Dialogue fragment"), true);
     _styleCenrer.alignment = TextAnchor.MiddleCenter;
     _styleRight.alignment  = TextAnchor.MiddleRight;
     instance.minSize       = new Vector2(300, 260);
     instance.maxSize       = new Vector2(300, 260);
     instance._data         = null;
 }
Beispiel #2
0
 void OnEnable()
 {
     if (null == instance)
     {
         instance       = GetWindow <GKToyMakerDialogueCom>(GKToyDialogueMaker._GetDialogueLocalization("Dialogue fragment"), true);
         wantsMouseMove = true;
         minSize        = new Vector2(300, 250);
         maxSize        = new Vector2(300, 250);
     }
 }
Beispiel #3
0
        static public new void SelectCom(GKToyNode node)
        {
            switch (node.doubleClickType)
            {
            // Dialogue.
            case 2:
                GKToyMakerDialogueCom.PopupTaskWindow();
                GKToyMakerDialogueCom.InitSubData((GKToyDialogue)node);
                break;

            default:
                break;
            }
        }
Beispiel #4
0
 void OnDestroy()
 {
     instance = null;
 }