bool C4GraphicsSystem::ToggleShowSolidMask() { if (!Game.DebugMode && !Console.Active) { FlashMessage(LoadResStr("IDS_MSG_NODEBUGMODE")); return false; } Toggle(ShowSolidMask); FlashMessageOnOff("SolidMasks", !!ShowSolidMask); return true; }
bool C4GraphicsSystem::ToggleShowVertices() { if (!Game.DebugMode && !Console.Active) { FlashMessage(LoadResStr("IDS_MSG_NODEBUGMODE")); return false; } Toggle(ShowVertices); Toggle(ShowEntrance); // vertices and entrance now toggled together FlashMessageOnOff("Entrance+Vertices", ShowVertices || ShowEntrance); return true; }
bool C4GraphicsSystem::ToggleShowAction() { if (!Game.DebugMode && !Console.Active) { FlashMessage(LoadResStr("IDS_MSG_NODEBUGMODE")); return false; } if (!(ShowAction || ShowCommand || ShowPathfinder)) { ShowAction = TRUE; FlashMessage("Actions"); } else if (ShowAction) { ShowAction = FALSE; ShowCommand = TRUE; FlashMessage("Commands"); } else if (ShowCommand) { ShowCommand = FALSE; ShowPathfinder = TRUE; FlashMessage("Pathfinder"); } else if (ShowPathfinder) { ShowPathfinder = FALSE; FlashMessageOnOff("Actions/Commands/Pathfinder", false); } return true; }
bool C4GraphicsSystem::ToggleShowAction() { if (!Game.DebugMode && !Console.Active) { FlashMessage(LoadResStr("IDS_MSG_NODEBUGMODE")); return false; } if (!(ShowAction || ShowCommand || ShowPathfinder || ShowLights || ShowMenuInfo)) { ShowAction = true; FlashMessage("Actions"); } else if (ShowAction) { ShowAction = false; ShowCommand = true; FlashMessage("Commands"); } else if (ShowCommand) { ShowCommand = false; ShowPathfinder = true; FlashMessage("Pathfinder"); } else if (ShowPathfinder) { ShowPathfinder = false; ShowLights = true; FlashMessage("Lights"); } else if (ShowLights) { ShowLights = false; ShowMenuInfo = true; FlashMessage("Menu Info"); } else if (ShowMenuInfo) { ShowMenuInfo = false; FlashMessageOnOff("Actions/Commands/Pathfinder/Lights/Menus", false); } return true; }