コード例 #1
0
bool C4GraphicsSystem::ToggleShowSolidMask()
	{
	if (!Game.DebugMode && !Console.Active) { FlashMessage(LoadResStr("IDS_MSG_NODEBUGMODE")); return false; }
	Toggle(ShowSolidMask);
	FlashMessageOnOff("SolidMasks", !!ShowSolidMask);
	return true;
	}
コード例 #2
0
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;
	}
コード例 #3
0
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;
	}
コード例 #4
0
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;
}