Beispiel #1
0
    void OnShowModal_ConfigWindow(jGuiWindow win)     // "ConfigWindow"라는 모달윈도우가 보여질때.
    {
        jGuiControl c;

        if (m_CMD.m_PlayerCmdFile.Length >= 4)
        {
            c = m_ConfigWindow_ScrollView.FindCtrl("Player1");
            c.SetText(m_CMD.m_PlayerCmdFile[0].USER_ID);
            c = m_ConfigWindow_ScrollView.FindCtrl("Player2");
            c.SetText(m_CMD.m_PlayerCmdFile[1].USER_ID);
            c = m_ConfigWindow_ScrollView.FindCtrl("Player3");
            c.SetText(m_CMD.m_PlayerCmdFile[2].USER_ID);
            c = m_ConfigWindow_ScrollView.FindCtrl("Player4");
            c.SetText(m_CMD.m_PlayerCmdFile[3].USER_ID);
        }
        jGuiToggle tg;

        tg = (jGuiToggle)m_ConfigWindow_ScrollView.FindCtrl("AddLogCount");
        tg.SetToggleValue(m_CMD.m_isAddLogCount);
        tg = (jGuiToggle)m_ConfigWindow_ScrollView.FindCtrl("AutoPlay");
        tg.SetToggleValue(m_CMD.m_isAutoPlay);

        c = m_ConfigWindow_ScrollView.FindCtrl("MaxLogLine");
        c.SetText(m_CMD.m_MaxLogLine.ToString());

        c = m_ConfigWindow_ScrollView.FindCtrl("Version");
        c.SetText(m_CMD.m_MSG.Version.ToString());

        c = m_ConfigWindow_ScrollView.FindCtrl("ServerListURL");
        c.SetText(m_CMD.GetLoadedServerListURL());
    }