Example #1
0
        public override void Close()
        {
            Instance = null;
            ClientCommand command = new ClientCommand(ClientCommand.CommandType.CloseBank);

            RpgClientConnection.Instance.AddClientCommand(command);
            base.Close();
        }
Example #2
0
        public BankPanel(GameState state)
            : base(((int)MessagePanel.Instance.GetBodySize().X / 2) - 200, ((int)Renderer.GetResoultion().Y / 2) - 325, 400, 450, BarMode.Close, state)
        {
            if (Instance != null)
            {
                Instance.Close();
            }
            Instance   = this;
            _gameState = state;

            this.SetPanelLabel("Bank");
            this.DisableHorizontalScroll();

            _bankData = null;
        }