Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit c385ddf

Browse files
committed
Usage example
1 parent f890192 commit c385ddf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Menus/MetagameGUI.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,9 @@ int MetagameGUI::Create(Controller *pController)
546546
m_pGoldSlider = dynamic_cast<GUISlider *>(m_pGUIController->GetControl("GoldSlider"));
547547
m_pLengthLabel = dynamic_cast<GUILabel *>(m_pGUIController->GetControl("LengthLabel"));
548548
m_pLengthSlider = dynamic_cast<GUISlider *>(m_pGUIController->GetControl("LengthSlider"));
549-
549+
m_pLengthSlider->SetMinimum(1);
550+
m_pLengthSlider->SetMaximum(20);
551+
m_pLengthSlider->SetValue(10);
550552
m_pErrorLabel = dynamic_cast<GUILabel *>(m_pGUIController->GetControl("StartErrorLabel"));
551553
m_apPlayerControlButton[Players::PlayerOne] = dynamic_cast<GUIButton *>(m_pGUIController->GetControl("P1ControlButton"));
552554
m_apPlayerControlButton[Players::PlayerTwo] = dynamic_cast<GUIButton *>(m_pGUIController->GetControl("P2ControlButton"));

0 commit comments

Comments
 (0)