Page 1 of 1

Font Color

Posted: Fri Dec 31, 2010 1:59 pm
by modmaster13
Hey!

In Instant Action, when you see your map in the list, the name of your map is in orange color. How do I change the color from orange to white?

P.S. Reply to this topic as well. :yes:

forums/viewtopic.php?f=27&t=25102

:thumbs:

Re: Font Color

Posted: Fri Dec 31, 2010 2:09 pm
by Firefang
The V1.3 Docs wrote:
How to change the displayed color of your map in the map selection screens:

Background Color Info:
SWBF2, like may other computer programs, deals with colors in terms of rgb or red, green, and blue. Using different combinations of red, green, and blue allows you to make almost any color. A value of zero means none of that color and a value of 255 means all of that color. For example: a r,g,b value of 0,255,0 would be shown as a pure green.

0) This guide will assume the mod map is named DMD.
1) Open up your addme\addme.lua
2) Search for your map's configuration line. It will look something like:
sp_missionselect_listbox_contents[sp_n+1] = { isModLevel = 1, mapluafile = "DMD%s_%s", era_g = 1, mode_con_g = 1, }
3) To change the color of your map, just add in the color and its value. For example, the following line would cause your map name to become black:
sp_missionselect_listbox_contents[sp_n+1] = { red = 255, blue = 255, green = 255, isModLevel = 1, mapluafile = "DMD%s_%s", era_g = 1, mode_con_g = 1, }

You don't have to include all of the colors (red, blue, green). You could just change the red or two of the three colors:
sp_missionselect_listbox_contents[sp_n+1] = { red = 151, green = 87, isModLevel = 1, mapluafile = "DMD%s_%s", era_g = 1, mode_con_g = 1, }

4) Save the addme.lua
5) Munge your map (Common can be unchecked, but it doesn't really matter)

Tip: Some colors are hard to see in the selection screen. Try to use the easy to see colors.
Note: Players can disable the custom map colors through the v1.3 patch's installer menu.
There you go

Re: Font Color

Posted: Fri Dec 31, 2010 2:22 pm
by modmaster13
How would I make it white?

Re: Font Color

Posted: Fri Dec 31, 2010 2:29 pm
by Teancum
red = 255, blue = 255, green = 255

Re: Font Color

Posted: Fri Dec 31, 2010 3:05 pm
by Maveritchell
If you're only going for white, it can be done without the 1.3 patch - simply remove the "isModLevel = 1" parameter from your addme.

I wouldn't recommend actually coloring your map white - it can be fun to do to make it feel like your map is one of the original game maps, but for the end user of the mod it is an inconvenience, as it makes the newer content stand out less.

Re: Font Color

Posted: Fri Dec 31, 2010 3:07 pm
by modmaster13
Is this correct?
Hidden/Spoiler:
ucfb( scr_ NAME addme INFO BODYü LuaP ;¯ïK =(none) AddNewGameModes table getn " sp_missionselect_listbox_contents[sp_n+1] = { red = 255, blue = 255, green = 255, €? mapluafile ABC%s_%s era_g era_c mode_con_g mode_con_c " mp_missionselect_listbox_contents AddDownloadableContent ABC ABCg_con €@ ABCc_con newEntry n
ReadDataFile & ..\..\addon\ABC\data\_LVL_PC\core.lvl mapluafile pairs ^€ U€ ”€ E Y €‰‚] ÿ ] Ôü € 0 " A A … Æ ™ L! Ê I!C ¢CI¡DI!EI¡EI!F … Æ E ™ E L¡ L! F … Á A Y … Á  A Y Ç E  Y €

Re: Font Color

Posted: Fri Dec 31, 2010 3:33 pm
by genaral_mitch
Is that your addme.script? You usually don't edit the .script file, but instead the addme.lua file.