public override void Start() { if (ClientController.activePlayer != player) { promptClosed = false; PromptUI.Show(state.GetPlayer(player).name + "\nTurn " + turn, state.GetPlayer(player).color, () => promptClosed = true); ClientController.CameraController.Translate(WorldGraphics.GetTilePosition(focusTile) - ClientController.CameraController.transform.position); } ClientController.ChangeActivePlayer(player); ClientController.SetState(state); }
public MainUI() { InitializeComponent(); Shown += (s, a) => { //Location = new Point(150,150); Location = new Point(2150, 150); }; m_menu_file_exit.Click += (s, a) => { Close(); }; m_menu_tests_bluetooth_ui.Click += (s, a) => { new BluetoothUI() { ShowRadioSelector = false }.ShowDialog(this); }; m_menu_tests_chart.Click += (s, a) => { new ChartUI().Show(this); }; m_menu_tests_checked_groupbox.Click += (s, a) => { new CheckedGroupBoxUI().Show(this); }; m_menu_tests_checked_listbox.Click += (s, a) => { new CheckedListBoxUI().Show(this); }; m_menu_tests_colourwheel.Click += (s, a) => { new FormColourWheel().Show(this); }; m_menu_tests_combo_box.Click += (s, a) => { new ComboBoxUI().Show(this); }; m_menu_tests_diagramcontrol.Click += (s, a) => { new DiagramControlUI().Show(this); }; m_menu_tests_dgv.Click += (s, a) => { new DgvUI().Show(this); }; m_menu_tests_dock_panel.Click += (s, a) => { new DockPanelUI().Show(this); }; m_menu_tests_graphcontrol.Click += (s, a) => { new GraphControlUI().Show(this); }; m_menu_tests_helpui.Click += (s, a) => { new HelpUI().Show(this); }; m_menu_tests_hintballoon.Click += (s, a) => { new FormHintBalloon().Show(this); }; m_menu_tests_listbox.Click += (s, a) => { new ListBoxUI().Show(this); }; m_menu_tests_log_ui.Click += (s, a) => { new LogUI().Show(this); }; m_menu_tests_message_box.Click += (s, a) => { using (var dlg = new MsgBox("This is a MsgBox", "Title", MessageBoxButtons.AbortRetryIgnore, MessageBoxIcon.Information)) { dlg.Panel.BackColor = SystemColors.ControlLight; dlg.TextBox.BorderStyle = BorderStyle.None; dlg.NeutralBtnText = "NewTroll"; dlg.NeutralBtn.DialogResult = DialogResult.None; dlg.ShowDialog(); } }; m_menu_tests_midi.Click += (s, a) => { new MidiUI().Show(this); }; m_menu_tests_prompt_ui.Click += (s, a) => { var combo = new PromptUI { Title = "Input Mode", PromptText = "Select the input mode", Mode = PromptUI.EMode.OptionSelect, Options = Enum <PromptUI.EInputType> .Values, }; combo.ShowDialog(this); var value = new PromptUI { Title = "Value Input", PromptText = "Type in something", InputType = (PromptUI.EInputType)combo.Value, }; value.ShowDialog(this); }; m_menu_tests_scintilla.Click += (s, a) => { new ScintillaUI().Show(this); }; m_menu_tests_subclassed_controls.Click += (s, a) => { new SubclassedControlsUI().Show(this); }; m_menu_tests_toolform.Click += (s, a) => { new ToolFormUI(this).Show(this); }; m_menu_tests_toolstrip_positions.Click += (s, a) => { new ToolStripPositionsUI().Show(this); }; m_menu_tests_treegrid.Click += (s, a) => { new TreeGridUI().Show(this); }; m_menu_tests_rtb.Click += (s, a) => { new RichTextBoxUI().Show(this); }; m_menu_tests_view3d.Click += (s, a) => { new FormView3d().Show(this); }; m_menu_tests_view3d_editor.Click += (s, a) => { new LdrEditorUI().Show(this); }; m_menu_tests_vt100.Click += (s, a) => { new VT100UI().Show(this); }; m_menu_tests_web_browser.Click += (s, a) => { new WebBrowserUI().Show(this); }; }