@@ -64,14 +64,14 @@ void CUIGameCTA::Init(int stage)
6464{
6565 if (stage==0 )
6666 {
67- m_round_result_caption = UIHelper::CreateTextWnd (*m_msgs_xml , " mp_round_result" , m_window );
68- m_pressbuy_caption = UIHelper::CreateTextWnd (*m_msgs_xml , " mp_pressbuy" , m_window );
69- m_pressjump_caption = UIHelper::CreateTextWnd (*m_msgs_xml , " mp_pressjump" , m_window );
70- m_spectator_caption = UIHelper::CreateTextWnd (*m_msgs_xml , " mp_spectator" , m_window );
71- m_spectrmode_caption = UIHelper::CreateTextWnd (*m_msgs_xml , " mp_spetatormode" , m_window );
72- m_warm_up_caption = UIHelper::CreateTextWnd (*m_msgs_xml , " mp_warm_up" , m_window );
73- m_time_caption = UIHelper::CreateTextWnd (*m_msgs_xml , " mp_timelimit" , m_window );
74- m_demo_play_caption = UIHelper::CreateTextWnd (*m_msgs_xml , " mp_demo_play" , m_window );
67+ m_round_result_caption = UIHelper::CreateTextWnd (*MsgConfig , " mp_round_result" , Window );
68+ m_pressbuy_caption = UIHelper::CreateTextWnd (*MsgConfig , " mp_pressbuy" , Window );
69+ m_pressjump_caption = UIHelper::CreateTextWnd (*MsgConfig , " mp_pressjump" , Window );
70+ m_spectator_caption = UIHelper::CreateTextWnd (*MsgConfig , " mp_spectator" , Window );
71+ m_spectrmode_caption = UIHelper::CreateTextWnd (*MsgConfig , " mp_spetatormode" , Window );
72+ m_warm_up_caption = UIHelper::CreateTextWnd (*MsgConfig , " mp_warm_up" , Window );
73+ m_time_caption = UIHelper::CreateTextWnd (*MsgConfig , " mp_timelimit" , Window );
74+ m_demo_play_caption = UIHelper::CreateTextWnd (*MsgConfig , " mp_demo_play" , Window );
7575
7676 teamPanels = xr_new<UITeamPanels>();
7777 teamPanels->Init (TEAM_PANELS_XML_NAME, " team_panels_wnd" );
@@ -80,7 +80,7 @@ void CUIGameCTA::Init(int stage)
8080 CUIXml uiXml;
8181 uiXml.Load (CONFIG_PATH, UI_PATH, CTA_GAME_WND_XML);
8282
83- CUIXmlInit::InitWindow (uiXml, " global" , 0 , m_window );
83+ CUIXmlInit::InitWindow (uiXml, " global" , 0 , Window );
8484
8585 m_pMoneyIndicator = xr_new<CUIMoneyIndicator>();
8686 m_pMoneyIndicator->SetAutoDelete (true );
@@ -114,12 +114,12 @@ void CUIGameCTA::Init(int stage)
114114 if (stage==2 )
115115 {
116116 inherited::Init (stage);
117- m_window ->AttachChild (m_pMoneyIndicator);
118- m_window ->AttachChild (m_pRankIndicator);
119- m_window ->AttachChild (m_pReinforcementInidcator);
120- m_window ->AttachChild (m_pFragLimitIndicator);
121- m_window ->AttachChild (m_team1_score);
122- m_window ->AttachChild (m_team2_score);
117+ Window ->AttachChild (m_pMoneyIndicator);
118+ Window ->AttachChild (m_pRankIndicator);
119+ Window ->AttachChild (m_pReinforcementInidcator);
120+ Window ->AttachChild (m_pFragLimitIndicator);
121+ Window ->AttachChild (m_team1_score);
122+ Window ->AttachChild (m_team2_score);
123123 }
124124}
125125
0 commit comments