Ejemplo n.º 1
0
            public override void ButtonPressed(ButtonEventArgs args)
            {
                var manager = IoCManager.Resolve <IAdminMenuManager>();
                var window  = new TileSpawnWindow(IoCManager.Resolve <ITileDefinitionManager>(),
                                                  IoCManager.Resolve <IPlacementManager>(),
                                                  IoCManager.Resolve <IResourceCache>());

                manager.OpenCommand(window);
            }
Ejemplo n.º 2
0
        private static void SpawnTilesButtonOnOnPressed(BaseButton.ButtonEventArgs obj)
        {
            var manager = IoCManager.Resolve <IAdminMenuManager>();
            var window  = new TileSpawnWindow(IoCManager.Resolve <ITileDefinitionManager>(),
                                              IoCManager.Resolve <IPlacementManager>(),
                                              IoCManager.Resolve <IResourceCache>());

            manager.OpenCommand(window);
        }
Ejemplo n.º 3
0
        private void ToggleTilesWindow()
        {
            if(_tilesSpawnWindow == null)
                _tilesSpawnWindow = new TileSpawnWindow(_tileDefinitionManager, _placementManager, _resourceCache);

            if (_tilesSpawnWindow.IsOpen)
            {
                _tilesSpawnWindow.Close();
            }
            else
            {
                _tilesSpawnWindow = new TileSpawnWindow(_tileDefinitionManager, _placementManager, _resourceCache);
                _tilesSpawnWindow.OpenToLeft();
            }
        }
Ejemplo n.º 4
0
        private void OnSpawnTilesButtonClicked(BaseButton.ButtonEventArgs args)
        {
            var window = new TileSpawnWindow(__tileDefinitionManager, _placementManager, _resourceCache);

            window.OpenToLeft();
        }