Skip to content

Commit

Permalink
CUIVote: return UI elements from CS (#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Feb 11, 2024
1 parent 212cacc commit 5007c37
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/xrGame/ui/UIVote.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ CUIVote::CUIVote() : CUIDialogWnd(CUIVote::GetDebugType())

CUIXmlInit::InitWindow(xml_doc, "vote", 0, this);
std::ignore = UIHelper::CreateStatic(xml_doc, "vote:background", this);
std::ignore = UIHelper::CreateStatic(xml_doc, "vote:msg_back", this, false);
msg = UIHelper::CreateStatic(xml_doc, "vote:msg", this);

string256 path;
Expand All @@ -27,8 +28,8 @@ CUIVote::CUIVote() : CUIDialogWnd(CUIVote::GetDebugType())
xr_sprintf(path, "vote:list_cap_%d", i + 1);
std::ignore = UIHelper::CreateStatic(xml_doc, path, this);

//xr_sprintf(path, "vote:list_back_%d", i + 1);
//std::ignore = UIHelper::CreateFrameWindow(xml_doc, path, this);
xr_sprintf(path, "vote:list_back_%d", i + 1);
std::ignore = UIHelper::CreateFrameWindow(xml_doc, path, this, false);

xr_sprintf(path, "vote:list_%d", i + 1);
list[i] = UIHelper::CreateListBox(xml_doc, path, this);
Expand Down

0 comments on commit 5007c37

Please sign in to comment.