Skip to content

Commit

Permalink
xrGame: replase std:string to xr_string
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleivg committed Nov 8, 2018
1 parent e55e462 commit a7116e8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/xrGame/ui/UIMainIngameWnd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,11 @@ void CUIMainIngameWnd::Init()
m_quick_slots_icons.push_back(new CUIStatic());
m_quick_slots_icons.back()->SetAutoDelete(true);
AttachChild(m_quick_slots_icons.back());
std::string path = "quick_slot" + std::to_string(i);
CUIXmlInit::InitStatic(uiXml, path.c_str(), 0, m_quick_slots_icons.back());
path += ":counter";
UIHelper::CreateStatic(uiXml, path.c_str(), m_quick_slots_icons.back());
string32 path;
xr_sprintf(path, "quick_slot%d", i);
CUIXmlInit::InitStatic(uiXml, path, 0, m_quick_slots_icons.back());
xr_strcat(path, ":counter");
UIHelper::CreateStatic(uiXml, path, m_quick_slots_icons.back());
}
m_QuickSlotText1 = UIHelper::CreateTextWnd(uiXml, "quick_slot0_text", this);
m_QuickSlotText2 = UIHelper::CreateTextWnd(uiXml, "quick_slot1_text", this);
Expand Down

0 comments on commit a7116e8

Please sign in to comment.