void jGuiButton_ServerOk(jGuiButton ctrl) { var lbl = (jGuiControl)ctrl.GetParent().FindCtrl("ServerStatus"); if (lbl.GetText().Contains("Offline")) { return; } m_jGuiStage.HideModalWindow(); int iOrder = ctrl.GetParent().m_jxE.GetOrder(); jxE eServerList = m_CMD.GetCurrServerList(); if (iOrder >= eServerList.size()) { m_CMD.LogWarning("ctrl.m_jxE.GetOrder() is overflow : " + iOrder + "eServerList.size() = " + eServerList.size()); return; } jxE server = eServerList.GetChild(iOrder); m_CMD.m_ServerIP = server.Attr("IP"); m_CMD.m_ServerName = server.Attr("NAME"); m_CMD.m_ServerPort = server.AttrVar("PORT").Get_int(); //Debug.Log("ip : " + m_CMD.m_ServerIP + " " + m_CMD.m_ServerPort + " " + m_CMD.m_ServerName); var c = GetComponent <GuiEvent_CommandWindow>(); c.Reload_PlayerCmd(); GuiEvent_CommandWindow cmdWin = GetComponent <GuiEvent_CommandWindow>(); cmdWin.SetWindowText(m_CMD.m_ServerName + " - " + m_CMD.m_ServerIP + ":" + m_CMD.m_ServerPort); }
void jGuiButton_CmdEdit(jGuiButton ctrl) { string str = ctrl.GetParent().FindCtrl("CmdRun").GetText(); m_txt_CommandLine.SetText(str); }