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

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

            this.FadeOut(PopupDialog.EXIT_DURATION, Easing.InSine);
        }
示例#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;
        }
示例#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();
        }
示例#5
0
 public void _on_Button_pressed()
 {
     popup.Hide();
     //GetTree().RemoveChild(this);
 }
示例#6
0
 public void keep_settings()
 {
     popup.Hide();
     GetTree().Quit();
 }
示例#7
0
    private void _closeNetworkFail()
    {
        PopupDialog popupdialogNetork = (PopupDialog)GetNode("CanvasLayer/NetworkErrorMessage");

        popupdialogNetork.Hide();
    }