Beispiel #1
0
 private void CreateLoadButton()
 {
     _loadButtonPanel = _selectMixPanel.AddUIComponent <ButtonPanel>();
     _loadButtonPanel.Setup("Load Button", 340.0f, 30.0f);
     _loadButtonPanel.SetAnchor(UIAnchorStyle.Left | UIAnchorStyle.CenterVertical);
     _loadButtonPanel.SetText(Translation.Instance.GetTranslation(TranslationID.BUTTON_LOAD));
     _loadButtonPanel.AlignRight();
     _loadButtonPanel.EventButtonClicked += OnLoadClicked;
 }
Beispiel #2
0
 private void CreateSaveButton()
 {
     _saveButtonPanel = _saveMixPanel.AddUIComponent <ButtonPanel>();
     _saveButtonPanel.Setup("Save Button", 340.0f, 30.0f);
     _saveButtonPanel.SetAnchor(UIAnchorStyle.Left | UIAnchorStyle.CenterVertical);
     _saveButtonPanel.SetText(Translation.Instance.GetTranslation(TranslationID.BUTTON_SAVE));
     _saveButtonPanel.AlignRight();
     _saveButtonPanel.DisableButton();
     _saveButtonPanel.EventButtonClicked += OnSaveClicked;
 }
Beispiel #3
0
 private void CreateSubscribeButton()
 {
     _subscribeButtonPanel = _selectMixPanel.AddUIComponent <ButtonPanel>();
     _subscribeButtonPanel.Setup("Download Button", 340.0f, 30.0f);
     _subscribeButtonPanel.SetAnchor(UIAnchorStyle.Left | UIAnchorStyle.CenterVertical);
     _subscribeButtonPanel.SetText(Translation.Instance.GetTranslation(TranslationID.BUTTON_SUBSCRIBE), Translation.Instance.GetTranslation(TranslationID.TOOLTIP_BUTTON_SUBSCRIBE));
     _subscribeButtonPanel.AlignRight();
     _subscribeButtonPanel.EventButtonClicked += OnSubscribeClicked;
     _subscribeButtonPanel.isVisible           = false;
 }