Example #1
0
        private static void InitializeToolTray()
        {
            ToolTrayHeight  = ToolBoxHeight - TabPadding * 2 - TabHeight - ToolTrayPadding - ToolBorderLineWidth;
            ToolTrayWidth   = ToolBoxWidth - ToolTrayPadding * 2 + ToolBorderLineWidth;
            ToolTrayOffsetY = ToolBoxPadding + TabPadding * 2 + TabHeight + ToolBorderLineWidth;
            ToolTrayOffsetX = ToolBoxOffsetX + ToolTrayPadding;
            ToolTray        = new ToolTrayEntity(new Rectangle(ToolTrayOffsetX, ToolTrayOffsetY, ToolTrayWidth, ToolTrayHeight), false, false);

            //Tray.ToolList[GridBoxType.Enemy] = enemyToolList;
            //Tray.ToolList[GridBoxType.Landscape] = terrainToolList;
            //Tray.ToolList[GridBoxType.Obstruction] = obstructionToolList;
        }
Example #2
0
        private static void InitializeToolTray()
        {
            ToolTrayHeight = ToolBoxHeight - TabPadding * 2 - TabHeight - ToolTrayPadding - ToolBorderLineWidth;
            ToolTrayWidth = ToolBoxWidth - ToolTrayPadding * 2 + ToolBorderLineWidth;
            ToolTrayOffsetY = ToolBoxPadding + TabPadding * 2 + TabHeight + ToolBorderLineWidth;
            ToolTrayOffsetX = ToolBoxOffsetX + ToolTrayPadding;
            ToolTray = new ToolTrayEntity(new Rectangle(ToolTrayOffsetX, ToolTrayOffsetY, ToolTrayWidth, ToolTrayHeight), false, false);

            //Tray.ToolList[GridBoxType.Enemy] = enemyToolList;
            //Tray.ToolList[GridBoxType.Landscape] = terrainToolList;
            //Tray.ToolList[GridBoxType.Obstruction] = obstructionToolList;
        }