void OnLoadedGUI_ServerList(jGuiWindow win) // "ServerList"라는 jGuiWindow 로딩이 완료되면 호출됨. { base.Set_jGuiWindow(win); // 반드시 호출. m_guiServerList = (jGuiScrollView)m_jGuiWindow.FindCtrl("ServerList_ScrollView"); if (m_guiServerList == null) { throw new System.Exception("ServerList(jGuiScrollView ) is not found"); } }
void OnLoadedGUI_ConfigWindow(jGuiWindow win) // "ConfigWindow"라는 jGuiWindow 로딩이 완료되면 호출됨. { base.Set_jGuiWindow(win); // 반드시 호출. m_ConfigWindow_ScrollView = (jGuiScrollView)m_jGuiWindow.FindCtrl("ConfigWindow_ScrollView"); if (m_ConfigWindow_ScrollView == null) { Debug.LogError("ConfigWindow_ScrollView is not found"); } }
void refreshLog(List <string> logList) { string logs = ""; foreach (var log in logList) { logs += log; logs += "\n"; } m_lbl_LogLabel.SetText(logs); jGuiScrollView sv = (jGuiScrollView)m_lbl_LogLabel.GetParent(); sv.SetEndScroll(true); }
//#-------------------------------------------------------------------------- // jGui Event Handler //#-------------------------------------------------------------------------- void OnLoadedGUI_CommandWindow(jGuiWindow win) // "CommandWindow"라는 jGuiWindow 로딩이 완료되면 호출됨. { base.Set_jGuiWindow(win); m_scroll_CmdList = (jGuiScrollView)m_jGuiWindow.FindCtrl("CmdList"); if (m_scroll_CmdList == null) { throw new System.Exception("CmdList(jGuiScrollView) not found"); } m_txt_CommandLine = (jGuiTextField)m_jGuiWindow.FindCtrl("CommandLine"); if (m_txt_CommandLine == null) { throw new System.Exception("CommandLine(jGuiTextField) not found"); } //load_PlayerCmdFile(); { string[] cmdList; jGuiToolbar tb = (jGuiToolbar)m_jGuiWindow.FindCtrl("PlayerList"); if (tb == null) { throw new System.Exception("PlayerList == null"); } if (m_CMD == null) { throw new System.Exception("m_CMD == null"); } foreach (jxE e in tb.m_jxE) { string fileText = m_CMD.m_PlayerCmdFile[e.GetOrder()].text_file.text; cmdList = fileText.Split('\n'); e.SetUserData("PlayerCmd", cmdList); } int toolbarIndex = tb.GetToolBarIndex(); m_CMD.Get_jPlayerPrefs().Get("PlayerList_TookBarIndex", ref toolbarIndex); tb.SetToolBarIndex(toolbarIndex); jxE eChild = tb.m_jxE.GetChild(tb.GetToolBarIndex()); cmdList = (string[])eChild.GetUserData("PlayerCmd"); SetPlayerCmdList(cmdList, tb.GetToolBarIndex()); } this.SetWindowText(m_CMD.m_ServerName + " - " + m_CMD.m_ServerIP + ":" + m_CMD.m_ServerPort); }