public void ShowOverlay(Overlay which, Action <int> onResolve) { if (isActive) { throw new ArgumentException("there's already an overlay active"); } this.transform.SetAsLastSibling(); value = null; isActive = true; ContentViewSwitcher.SwitchTo((int)which); StartCoroutine(WaitForResolve(onResolve)); }
public void StartServerActivation() { string label = StartServerButton.Text; if (label.Equals(UIInfoLayer.StartServerLabel)) { ToggleUIElements(); ContentViewSwitcher.SwitchTo(1); ServerStart.StartServer(); } else if (label.Equals(StartServerButton.Text.Value = UIInfoLayer.ServerStatusLabel)) { ContentViewSwitcher.SwitchTo(1); } }
public void EnterServerSelect() { ViewSwitcher.SwitchTo("ServerSelect"); // TODO how to clear ServerSelectList selection? // this doesn't work... Servers.SelectedItem = null; Servers.SelectedIndex = -1; }
public void SectionSelected(ItemSelectionActionData eventData) { ContentViewSwitcher.SwitchTo(eventData.ItemView.Text + "View"); }
public void EnterInputConnectionDetails() { ViewSwitcher.SwitchTo("InputConnectionDetails"); }
public void NewClicked() { ContentViewSwitcher.SwitchTo("NewMapRegion"); }
public void Back() { ViewSwitcherHistory.Pop(); ContentViewSwitcher.SwitchTo(ViewSwitcherHistory.Peek()); }
public void Play() { // switch to level select ContentViewSwitcher.SwitchTo(2); }
void OnEnable() { SetValue(() => hasTeam, Player.Instance.team.Any()); ContentViewSwitcher.SwitchTo(0); }
public void StartGame() { ContentViewSwitcher.SwitchTo(1); }
public void Play() { ContentViewSwitcher.SwitchTo(1); }
public void Wiki() { ContentViewSwitcher.SwitchTo(1); }