Ejemplo n.º 1
0
 // SERVER - SetUp state /////////////////////////
 public void SetConditionalButtonLayout(string buttonText, string infoText, UIHelper.BaseAction buttonCallback)
 {
     SetPresetLayout(Layout.ConditionalButton);
     this.infoText.Text = infoText;
     button2.Text       = buttonText;
     button2.InsertCallback(buttonCallback);
 }
Ejemplo n.º 2
0
 // CLIENT - Playing state /////////////////////////
 public void SetTwoButtonsLayout(string leftButtonText, UIHelper.BaseAction leftButtonCallback, string rightButtonText, UIHelper.BaseAction rightButtonCallback)
 {
     SetPresetLayout(Layout.TwoButtons);
     button1.Text = leftButtonText;
     button1.InsertCallback(leftButtonCallback);
     button2.Text = rightButtonText;
     button2.InsertCallback(rightButtonCallback);
 }
Ejemplo n.º 3
0
 // Generic button
 void SetButton(ButtonHelper button, UIHelper.BaseAction callback, string buttonText = "", Nullable <ButtonHelper.ButtonType> buttonType = null)
 {
     button.InsertCallback(callback);
     button.Text = buttonText;
     if (buttonType.HasValue)
     {
         button.SetButtonToPreMade(buttonType.Value);
     }
 }
Ejemplo n.º 4
0
 // Button2
 public void SetButton2(UIHelper.BaseAction callback, string buttonText = "", Nullable <ButtonHelper.ButtonType> buttonType = null)
 {
     SetButton(button2, callback, buttonText, buttonType);
 }
Ejemplo n.º 5
0
 // CLIENT - ToConnect state /////////////////////////
 public void SetInsertTextLayout(string placeholderText, string insertedText, string buttonText, string infoText, UIHelper.BaseAction buttonCallback)
 {
     SetPresetLayout(Layout.InsertText);
     this.infoText.Text        = infoText;
     textInput.PlaceholderText = placeholderText;
     textInput.Text            = insertedText;
     button2.Text = buttonText;
     button2.InsertCallback(buttonCallback);
 }