public static byte currentSlotGroup; // Tracks which wheel menu is currently selected (relevant for the Utility Bar). public EditorUI(EditorScene scene) { this.scene = scene; // UI Components this.gridUI = new GridOverlay(null, (byte)TilemapEnum.TileWidth, (byte)TilemapEnum.TileHeight); this.utilityBar = new UtilityBar(null, (byte)TilemapEnum.TileWidth, (short)(Systems.screen.viewHeight - (byte)TilemapEnum.TileHeight)); this.scroller = new EditorScroller(null, (short)(Systems.screen.viewWidth - (byte)TilemapEnum.TileWidth), 0); this.statusText = new UIStatusText(null, (short)Systems.screen.viewHalfWidth, 5); // Tab Menu - TileTool Listings this.contextMenu = new ContextMenu(null, (short)(Systems.screen.viewWidth * 0.5f), (short)(Systems.screen.viewHeight * 0.5f)); this.contextMenu.SetMenuOption((byte)SlotGroup.Ground, Systems.mapper.atlas[(byte)AtlasGroup.Tiles], "Grass/S", "Ground"); this.contextMenu.SetMenuOption((byte)SlotGroup.Blocks, Systems.mapper.atlas[(byte)AtlasGroup.Tiles], "Brick/Brown", "Blocks"); this.contextMenu.SetMenuOption((byte)SlotGroup.ColorToggles, Systems.mapper.atlas[(byte)AtlasGroup.Tiles], "ToggleOn/BoxBR", "Toggles"); this.contextMenu.SetMenuOption((byte)SlotGroup.Platforms, Systems.mapper.atlas[(byte)AtlasGroup.Tiles], "Platform/Fixed/S", "Platforms"); this.contextMenu.SetMenuOption((byte)SlotGroup.EnemiesLand, Systems.mapper.atlas[(byte)AtlasGroup.Objects], "Shroom/Red/Left2", "Enemies"); this.contextMenu.SetMenuOption((byte)SlotGroup.EnemiesFly, Systems.mapper.atlas[(byte)AtlasGroup.Objects], "Buzz/Left2", "Flying"); this.contextMenu.SetMenuOption((byte)SlotGroup.Interactives, Systems.mapper.atlas[(byte)AtlasGroup.Tiles], "NPC/MasterNinja", "Interactives"); this.contextMenu.SetMenuOption((byte)SlotGroup.Upgrades, Systems.mapper.atlas[(byte)AtlasGroup.Tiles], "SuitCollect/WhiteWizard", "Upgrades"); this.contextMenu.SetMenuOption((byte)SlotGroup.Collectables, Systems.mapper.atlas[(byte)AtlasGroup.Tiles], "Health/Pack1", "Collectables"); this.contextMenu.SetMenuOption((byte)SlotGroup.Decor, Systems.mapper.atlas[(byte)AtlasGroup.Tiles], "Decor/Grass2", "Decor"); this.contextMenu.SetMenuOption((byte)SlotGroup.Prompts, Systems.mapper.atlas[(byte)AtlasGroup.Tiles], "Prompt/DPad/Right", "Prompts"); this.contextMenu.SetMenuOption((byte)SlotGroup.Fixtures, Systems.mapper.atlas[(byte)AtlasGroup.Tiles], "Cannon/UpRight", "Fixtures"); this.contextMenu.SetMenuOption((byte)SlotGroup.Items, Systems.mapper.atlas[(byte)AtlasGroup.Objects], "Shell/Red/Spin1", "Items"); this.contextMenu.SetMenuOption((byte)SlotGroup.Scripting, Systems.mapper.atlas[(byte)AtlasGroup.Objects], "Cluster/Basic", "Scripting"); // Param Menus - Wand Tool this.moveParamMenu = new ParamMenu(null); this.actParamMenu = new ParamMenu(null, true); }
public WorldUI(WorldScene scene) { this.scene = scene; this.atlas = Systems.mapper.atlas[(byte)AtlasGroup.Tiles]; this.bottomRow = (short)(Systems.screen.viewHeight - (byte)WorldmapEnum.TileHeight); this.worldContent = this.scene.worldContent; this.statusText = new UIStatusText(null, (short)Systems.screen.viewHalfWidth, 5); }
public static byte curWESlotGroup; // Tracks which wheel menu is currently selected (relevant for the Utility Bar). public WE_UI(WEScene scene) { this.scene = scene; this.atlas = Systems.mapper.atlas[(byte)AtlasGroup.World]; // UI Components this.gridUI = new GridOverlay(null, (byte)WorldmapEnum.TileWidth, (byte)WorldmapEnum.TileHeight); this.utilityBar = new WEUtilityBar(null, this.scene, (byte)WorldmapEnum.TileWidth, (short)(Systems.screen.viewHeight - (byte)WorldmapEnum.TileHeight)); this.scroller = new WEScroller(null, this.scene, (short)(Systems.screen.viewWidth - (byte)WorldmapEnum.TileWidth), 0); this.statusText = new UIStatusText(null, (short)Systems.screen.viewHalfWidth, 5); // Tab Menu - WorldTileTool Listings this.weMenu = new WEMenu(null, (short)(Systems.screen.viewWidth * 0.5f), (short)(Systems.screen.viewHeight * 0.5f), 4, 2); this.weMenu.SetMenuOption((byte)1, Systems.mapper.atlas[(byte)AtlasGroup.World], "Mud/b1", "Terrain"); this.weMenu.SetMenuOption((byte)2, Systems.mapper.atlas[(byte)AtlasGroup.World], "Desert/p7", "Detail"); this.weMenu.SetMenuOption((byte)3, Systems.mapper.atlas[(byte)AtlasGroup.World], "MountainBrown/s", "Coverage"); this.weMenu.SetMenuOption((byte)4, Systems.mapper.atlas[(byte)AtlasGroup.World], "Objects/Pyramid1", "Objects"); this.weMenu.SetMenuOption((byte)5, Systems.mapper.atlas[(byte)AtlasGroup.World], "Objects/NodeStrict", "Nodes"); this.weMenu.SetMenuOption((byte)6, UIHandler.atlas, "Move", "Resize"); }