Beispiel #1
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);
 }
Beispiel #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);
 }
Beispiel #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);
     }
 }