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

        CurCB += CallBackFun;
    }
示例#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;
     }
 }
示例#3
0
 // Constructor
 public TextAreaWindow(string nTitle, string nText, StringCallBack nYes, CallBack nNo = null) : base(nTitle, nText, nYes, nNo)
 {
     func = GUILayout.TextArea;
 }
示例#4
0
 private static extern bool WechatLogin(StringCallBack cb);