Esempio n. 1
0
    internal void Set(string desStr, string defStr, StringCallBack CallBackFun)
    {
        des.text    = desStr + ":";
        input.value = defStr;

        CurCB += CallBackFun;
    }
Esempio n. 2
0
 public void AddChatMessage(string message)
 {
     if (this.textBoxMessage.InvokeRequired)
     {
         StringCallBack d = new StringCallBack(AddChatMessage);
         this.Invoke(d, new object[] { message });
     }
     else
     {
         if (textBoxChat.Text != "")
             textBoxChat.Text += "\r\n";
         textBoxChat.Text += message;
     }
 }
Esempio n. 3
0
 // Constructor
 public TextAreaWindow(string nTitle, string nText, StringCallBack nYes, CallBack nNo = null) : base(nTitle, nText, nYes, nNo)
 {
     func = GUILayout.TextArea;
 }
Esempio n. 4
0
 private static extern bool WechatLogin(StringCallBack cb);