public void Show() { _container.CenterOnScreen(); _container.Visible = true; _container.BringToFront(); // dword_10BDC430/*0x10bdc430*/ = (string )uiPcCreationText_SelectAPartyAlignment/*0x10bdb018*/; UpdateSelection(); }
public void Show(HelpRequest helpRequest, Action <int> callback, string buttonText) { Hide(); _mainWindow.Visible = true; HelpUi.SetContent(_scrollBox, helpRequest, out var windowTitle); _titleLabel.Text = windowTitle; _mainWindow.BringToFront(); _mainWindow.CenterOnScreen(); Globals.UiManager.Modal = _mainWindow; GameSystems.TimeEvent.PauseGameTime(); _okCallback = callback; _okButton.Text = buttonText; }
public void ShowTextEntry(UiCreateNamePacket crNamePkt) { _dialog.SetPos(crNamePkt.DialogX, crNamePkt.DialogY); UpdateInput(crNamePkt.InitialValue ?? ""); _titleLabel.Text = crNamePkt.DialogTitle ?? ""; _okButton.Text = crNamePkt.OkButtonLabel ?? ""; _cancelButton.Text = crNamePkt.CancelButtonLabel ?? ""; _callback = crNamePkt.Callback; if (crNamePkt.DialogX != 0 || crNamePkt.DialogY != 0) { _dialog.X = crNamePkt.DialogX; _dialog.Y = crNamePkt.DialogY; } else { _dialog.CenterOnScreen(); } _dialog.Visible = true; _dialog.BringToFront(); }
public void Show() { _window.CenterOnScreen(); _window.Visible = true; _window.BringToFront(); }