diff --git a/src/am_map.cpp b/src/am_map.cpp index e2d32f737e..6a765cd7a8 100644 --- a/src/am_map.cpp +++ b/src/am_map.cpp @@ -83,6 +83,7 @@ CVAR (Bool, am_showitems, false, CVAR_ARCHIVE); CVAR (Bool, am_showtime, true, CVAR_ARCHIVE); CVAR (Bool, am_showtotaltime, false, CVAR_ARCHIVE); CVAR (Int, am_colorset, 0, CVAR_ARCHIVE); +CVAR (Bool, am_customcolors, true, CVAR_ARCHIVE); CVAR (Int, am_map_secrets, 1, CVAR_ARCHIVE); CVAR (Bool, am_drawmapback, true, CVAR_ARCHIVE); CVAR (Bool, am_showkeys, true, CVAR_ARCHIVE); @@ -177,6 +178,32 @@ struct AMColor // //============================================================================= +static const char *ColorNames[] = { + "Background", + "YourColor", + "WallColor", + "TwoSidedWallColor", + "FloorDiffWallColor", + "CeilingDiffWallColor", + "ExtraFloorWallColor", + "ThingColor", + "ThingColor_Item", + "ThingColor_CountItem", + "ThingColor_Monster", + "ThingColor_Friend", + "SpecialWallColor", + "SecretWallColor", + "GridColor", + "XHairColor", + "NotSeenColor", + "LockedColor", + "IntraTeleportColor", + "InterTeleportColor", + "SecretSectorColor", + "AlmostBackgroundColor", + NULL +}; + struct AMColorset { enum @@ -209,6 +236,7 @@ struct AMColorset AMColor c[AM_NUM_COLORS]; bool displayLocks; bool forcebackground; + bool defined; // only for mod specific colorsets: must be true to be usable void initFromCVars(FColorCVar **values) { @@ -252,6 +280,15 @@ struct AMColorset forcebackground = false; } + void setWhite() + { + c[0].FromRGB(0,0,0); + for(int i=1; i