Colors for map

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Colors for map

Post by wassup » Mon Sep 29, 2003 7:20 pm

Some of the colors were just too bright or didn't have enough contrast to be able to read so I modified them if anyone cares to try them out.

In EQLib_Main.cpp

Code: Select all

MAPFILTER gMapFilterOptions[] = {
	{"All",			MAPFILTER_All,			-1,			TRUE,	"Enables/disables map functions (you still must select which items to display)"},
	{"PC",			MAPFILTER_PC,			0x0000C0,	TRUE,	"Enables/disables displaying PCs"},
	{"NPC",			MAPFILTER_NPC,			0x404040,	TRUE,	"Enables/disables displaying NPCs"},
	{"Pet",			MAPFILTER_Pet,			0x707070,	TRUE,	"Enables/disables displaying pets"},
	{"Corpse",		MAPFILTER_Corpse,		0xCD18B6,	TRUE,	"Enables/disables displaying corpses"},
	{"Trigger",		MAPFILTER_Trigger,		0x967616,	TRUE,	"Enables/disables displaying hidden triggers/traps"},
	{"Ground",		MAPFILTER_Ground,		0x398782,	TRUE,	"Enables/disables displaying ground items"},
	{"Target",		MAPFILTER_Target,		0xC00000,	TRUE,	"Enables/disables displaying a line to your target"},
	{"ConColor",	MAPFILTER_ConColor,		-1,			TRUE,	"Enables/disables displaying NPCs in consider colors"},
	{"Vector",		MAPFILTER_Vector,		-1,			TRUE,	"Enables/disables displaying heading vectors of spawns"},
	{"CastRadius",	MAPFILTER_CastRadius,	0xCCDDAF,	FALSE,	"Sets radius of casting circle to # (omit or set to 0 to disable)"},
	{"SpawnRadius",	MAPFILTER_SpawnRadius,	-1,			FALSE,	"Sets radius of spawns to display to # (omit or set to 0 to show all)"},
	{NULL,			NULL,					-1,			FALSE,	NULL}
};


In EQLib_Utilities.cpp

Code: Select all

DWORD ConColorToARGB(DWORD ConColor) {
	switch (ConColor) {
		case CONCOLOR_GREEN:
			return 0xFF389538;
		case CONCOLOR_LIGHTBLUE:
			return 0xFF0298E6;
		case CONCOLOR_BLUE:
			return 0xFF2727D6;
		case CONCOLOR_BLACK:
			return 0xFFFFFFFF;
		case CONCOLOR_YELLOW:
			return 0xFFEAE700;
		case CONCOLOR_RED:
		default:
			return 0xFFDC2323;
	}
}

boldor
a ghoul
a ghoul
Posts: 94
Joined: Tue Sep 10, 2002 11:46 am

Post by boldor » Thu Oct 16, 2003 7:37 pm

Does this change the barely visable grey lines i.e. walls, halls etc to something more visable w/o having to edit the RGB values of all the maps manually?

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Post by wassup » Thu Oct 16, 2003 9:44 pm

No, it changes the colors of the spawn con colors.

The maps themseves can be fixed by opening them in a text editor and replacing all of the 153, 153, 153 with 0, 0, 0