internal void Set(string desStr, string defStr, StringCallBack CallBackFun) { des.text = desStr + ":"; input.value = defStr; CurCB += CallBackFun; }
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; } }
// Constructor public TextAreaWindow(string nTitle, string nText, StringCallBack nYes, CallBack nNo = null) : base(nTitle, nText, nYes, nNo) { func = GUILayout.TextArea; }
private static extern bool WechatLogin(StringCallBack cb);