private void addServer(String name, String host, ushort port) { // hide popup addServerPopup.Hide(); // add dummy addServer(name, "", "", -1, -1); // do server list ping SingletonHandler.instance.gameClient.serverListPing(host, port, response => { removeServer(name); // todo favicon + motd addServer(name, "motd1", "motd2", response.players.online, response.players.max); }); }
protected override void PopOut() { base.PopOut(); if (currentDialog?.State == Visibility.Visible) { currentDialog.Hide(); return; } this.FadeOut(PopupDialog.EXIT_DURATION, Easing.InSine); }
public void Push(PopupDialog dialog) { if (dialog == currentDialog) { return; } currentDialog?.Hide(); currentDialog = dialog; dialogContainer.Add(currentDialog); currentDialog.Show(); currentDialog.StateChanged += onDialogOnStateChanged; State = Visibility.Visible; }
public void Push(PopupDialog dialog) { if (dialog == currentDialog) { return; } currentDialog?.Hide(); currentDialog = dialog; dialogContainer.Add(currentDialog); currentDialog.Show(); currentDialog.State.ValueChanged += state => onDialogOnStateChanged(dialog, state.NewValue); Show(); }
public void _on_Button_pressed() { popup.Hide(); //GetTree().RemoveChild(this); }
public void keep_settings() { popup.Hide(); GetTree().Quit(); }
private void _closeNetworkFail() { PopupDialog popupdialogNetork = (PopupDialog)GetNode("CanvasLayer/NetworkErrorMessage"); popupdialogNetork.Hide(); }