private void OnSpawnTilesButtonClicked(BaseButton.ButtonEventArgs args)
        {
            var window = new TileSpawnWindow();

            window.AddToScreen();
            window.OpenToLeft();
        }
Beispiel #2
0
        private void button_tile_Clicked(Button sender)
        {
            UiManager.DisposeAllComponents <TileSpawnWindow>(); //Remove old ones.

            var tileSpawnPanel = new TileSpawnWindow(new Vector2i(350, 410));

            UiManager.AddComponent(tileSpawnPanel);
            tileSpawnPanel.DoLayout();

            // hide me
            Visible = !Visible;
            UiManager.RemoveFocus(this);
        }