Ejemplo n.º 1
0
bool C4GraphicsSystem::ToggleShow8BitSurface()
{
	if (!Game.DebugMode && !Console.Active) { FlashMessage(LoadResStr("IDS_MSG_NODEBUGMODE")); return false; }
	Show8BitSurface = (Show8BitSurface + 1) % 3;
	if (Show8BitSurface == 0)
		FlashMessage("Default view");
	else if (Show8BitSurface == 1)
		FlashMessage("Foreground 8-bit landscape");
	else if (Show8BitSurface == 2)
		FlashMessage("Background 8-bit landscape");
	return true;
}
Ejemplo n.º 2
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;
	}
Ejemplo n.º 3
0
bool C4GraphicsSystem::ToggleShowSolidMask()
	{
	if (!Game.DebugMode && !Console.Active) { FlashMessage(LoadResStr("IDS_MSG_NODEBUGMODE")); return false; }
	Toggle(ShowSolidMask);
	FlashMessageOnOff("SolidMasks", !!ShowSolidMask);
	return true;
	}
Ejemplo n.º 4
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;
	}
Ejemplo n.º 5
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;
}
Ejemplo n.º 6
0
void C4GraphicsSystem::FlashMessageOnOff(const char *strWhat, bool fOn)
	{
	StdStrBuf strMessage; 
	strMessage.Format("%s: %s", strWhat, LoadResStr(fOn ? "IDS_CTL_ON" : "IDS_CTL_OFF"));
	FlashMessage(strMessage.getData());
	}