Пример #1
0
 void UpdateInfoBox()
 {
     if (currentlySelected != null)
     {
         RoomData data = currentlySelected.GetComponent <RoomData>();
         RoomInfoPanel.Enable();
         UsernameLabel.Text = data.Game.name;
         MapTypeLabel.Text  = "Map 1";
         GameModeLabel.Text = "Showdown";
         if (data.Game.playerCount < data.Game.maxPlayers)
         {
             OpenLabel.Text  = "Open";
             OpenLabel.Color = new Color32(0, 255, 0, 255);
             JoinButton.Enable();
             JoinButton.Click += new MouseEventHandler(JoinButton_Click);
         }
         else
         {
             OpenLabel.Text  = "Closed";
             OpenLabel.Color = new Color32(255, 0, 0, 255);
             JoinButton.Disable();
         }
     }
     else
     {
         RoomInfoPanel.Disable();
     }
 }
Пример #2
0
 void panel_Click(dfControl control, dfMouseEventArgs mouseEvent)
 {
     panel.Enable();
 }
Пример #3
0
 void DialogPanel_Dismissed(object sender, EventArgs e, ButtonState s)
 {
     registerPanel.Enable();
 }
Пример #4
0
 void DialogPanel_Dismissed(object sender, System.EventArgs e, ButtonState s)
 {
     loginPanel.Enable();
 }
Пример #5
0
 void BackButton_Click(dfControl control, dfMouseEventArgs mouseEvent)
 {
     WaitPanel.Hide();
     panel.Enable();
 }