Esempio n. 1
0
        public WallMenuTool(HullDataManager hullData)
        {
            _toolbar = new Toolbar("Templates/BuildToolbar.json");
            _toolbar.Enabled = false;

            _toolbar.BindButtonToTool(
                0,
                new WallBuildTool(hullData)
                );

            _toolbar.BindButtonToTool(
                1,
                new WallDeleteTool(hullData)
                );
        }
Esempio n. 2
0
        public DoodadUI(HullDataManager hullData)
        {
            _hullData = hullData;

            var buttonGen = new ButtonGenerator("ToolbarButton64.json");
            buttonGen.X = 50;
            buttonGen.Y = 50;
            buttonGen.TextureName = "DeckNavArrowUp";
            _deckUpButton = buttonGen.GenerateButton();
            buttonGen.Y = 50 + 64;
            buttonGen.TextureName = "DeckNavArrowDown";
            _deckDownButton = buttonGen.GenerateButton();
            _deckUpButton.OnLeftClickDispatcher += AddVisibleLevel;
            _deckDownButton.OnLeftClickDispatcher += RemoveVisibleLevel;

            _toolBar = new Toolbar("Templates/DoodadToolbar.json");

            _toolBar.BindButtonToTool(0, new WallMenuTool(
                                             hullData)
                );

            /*_toolBar.BindButtonToTool(1, new LadderBuildTool(
                                             geometryInfo,
                                             VisibleDecks
                                             ));*/
        }