Exemplo n.º 1
0
 public void HandleInput()
 {
     m_gameSelectBox.HandleInput();
     if (m_newButton.IsClicked())
     {
         NewGameClickEvent();
     }
     if (m_playButton.IsClicked())
     {
         LoadGameClickEvent(m_gameSelectBox.GetSelectedItem());
     }
 }
Exemplo n.º 2
0
 public void HandleInput()
 {
     m_textBoxGameName.HandleInput();
     m_worldSelectBox.HandleInput();
     if (m_createButton.IsClicked())
     {
         if (m_textBoxGameName.GetText().Length > 0)
         {
             string worldName = m_worldSelectBox.GetSelectedItem();
             if (worldName == "Create new world")
             {
                 worldName = m_textBoxGameName.GetText();
             }
             CreateGameCliked(m_textBoxGameName.GetText(), worldName);
         }
     }
 }