Beispiel #1
0
 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);
     });
 }
Beispiel #2
0
        protected override void PopOut()
        {
            base.PopOut();

            if (currentDialog?.State == Visibility.Visible)
            {
                currentDialog.Hide();
                return;
            }

            this.FadeOut(PopupDialog.EXIT_DURATION, Easing.InSine);
        }
Beispiel #3
0
        public void Push(PopupDialog dialog)
        {
            if (dialog == currentDialog)
            {
                return;
            }

            currentDialog?.Hide();
            currentDialog = dialog;

            dialogContainer.Add(currentDialog);

            currentDialog.Show();
            currentDialog.StateChanged += onDialogOnStateChanged;
            State = Visibility.Visible;
        }
Beispiel #4
0
        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();
        }
Beispiel #5
0
 public void _on_Button_pressed()
 {
     popup.Hide();
     //GetTree().RemoveChild(this);
 }
Beispiel #6
0
 public void keep_settings()
 {
     popup.Hide();
     GetTree().Quit();
 }
Beispiel #7
0
    private void _closeNetworkFail()
    {
        PopupDialog popupdialogNetork = (PopupDialog)GetNode("CanvasLayer/NetworkErrorMessage");

        popupdialogNetork.Hide();
    }