Exemple #1
0
    //[ContextMenu("SetDraggablePanel")]
    //void SetDraggablePanel()
    //{
    //    TraceUtil.Log(DraggablePanel.shouldMove);
    //    DraggablePanel.SetDragAmount(0, 1, false);
    //}


    void OpenPrivateChatWindowHandle(object obj)
    {
        TalkerInfo talkerInfo = (TalkerInfo)obj;

        //TraceUtil.Log("[OpenPrivateChatWindowHandle talkerInfo]" + talkerInfo.ActorID + " , " + talkerInfo.Name);
        PrivateChatWindowMgr.OpenPrivateWindow(talkerInfo.ActorID, talkerInfo.Name);
    }
Exemple #2
0
    void OpenPrivateChatWindowHandle(object obj)
    {
        TalkerInfo talkerInfo = (TalkerInfo)obj;

        //TraceUtil.Log("[OpenPrivateChatWindowHandle talkerInfo]" + talkerInfo.ActorID + " , " + talkerInfo.Name);
        //PrivateChatWindowMgr.OpenPrivateWindow(talkerInfo.ActorID, talkerInfo.Name);
        UpdateTitleNames();
        SwitchingPrivateWindow(talkerInfo.ActorID, talkerInfo.Name);
    }
Exemple #3
0
    void ClickChatTargetCallBack(object talkerInfo, Transform boxTrans)
    {
        TalkerInfo info = (TalkerInfo)talkerInfo;

        TalkerBoxControl.transform.position = boxTrans.position;
        TalkerBoxControl.gameObject.SetActive(true);

        TalkerBoxControl.SetTargetTalkerInfo(info);
        //this.sTalkTargetName = name;
        //Label_ToChatTarger.text = "@" + sTalkTargetName + ":";
    }
Exemple #4
0
 void Update()
 {
     if (Application.platform == RuntimePlatform.WindowsEditor)
     {
         if (Input.GetKeyDown(KeyCode.F1))
         {
             TalkerInfo talkerInfo = new TalkerInfo();
             talkerInfo.Name    = "饭后" + (Time.time * 100).ToString();
             talkerInfo.ActorID = 100 + (int)Time.time;
             OpenPrivateChatWindowHandle(talkerInfo);
         }
     }
 }
    public void Init()
    {
        if (talker == null)
        {
            return;
        }
        TalkerInfo info = talker.Info;

        showDalogueData(info.DefaultDialogue);
        //
        currentDialogueIndex = UnityEngine.Random.Range(0, info.DefaultDialogue.Words.Count);
        UIEffectManager.Instance.showAnimFadeIn(DialogueCloud);
        //
        if (ExtraTrans)
        {
            ExtraTrans.gameObject.SetActive(false);
        }
    }
    public void BtnTapped()
    {
        if (talker == null)
        {
            return;
        }
        TalkerInfo info = talker.Info;

        if (!info.DefaultDialogue.Words[currentDialogueIndex].IsValid)
        {
            return;
        }

        if (!ExtraTrans)
        {
            return;
        }
        UIEffectManager.Instance.showAnimFadeIn(ExtraTrans);
        //
    }
Exemple #7
0
 void ClickChatTargetCallBack(object talkerInfo, Transform boxTrans)
 {
     TalkerInfo info = (TalkerInfo)talkerInfo;
 }
Exemple #8
0
 public DialogueWords(TalkerInfo talkerInfo, string words, TalkerType talkertype = 0)
 {
     this.talkerInfo = talkerInfo;
     this.words      = words;
     this.talkerType = talkertype;
 }