游戏里各个菜单等的颜色、字体都由valve下的名如1024_textscheme.txt这样的文件控制。下面我们以800*600的分辨率来看看这个文件是怎么样定义这些方面的。
将其中内容改为:
// 800x600 text scheme file
// 800*600 文字配置文件
// DEFAULT BUTTON TEXT
// 默认按扭文字
SchemeName = "Primary Button Text"
FontName = "Arial"
FontSize = 20
FgColor = "0 255 255 255"
BgColor = "0 255 255 150"
FgColorArmed = "0 0 255 150"
BgColorArmed = "0 0 255 50"
// COMMAND MENU TEXT
// 控制菜单文字
SchemeName = "CommandMenu Text"
FontName = "Arial"
FontSize = 17
FgColor = "0 255 0 255"
BgColor = "0 255 0 150"
FgColorArmed = "255 255 0 150"
BgColorArmed = "255 255 0 50"
// SCOREBOARD TEXT
// 记分板文字
SchemeName = "Scoreboard Text"
FontName = "Arial"
FontSize = 15
FontWeight = 300
// SCOREBOARD TITLE TEXT (team names, team scores)
// 记分板标题文字 (队名、队伍积分)
SchemeName = "Scoreboard Title Text"
FontName = "Arial"
FontSize = 20
FontWeight = 700
// SCOREBOARD SMALL TEXT (headers, player #)
// 记分板小字(页眉、玩家)
SchemeName = "Scoreboard Small Text"
FontName = "Arial"
FontSize = 12
FontWeight = 100
// TITLE FONT in TFC selection menus
// 选队菜单标题字体
SchemeName = "Title Font"
FontName = "Arial"
FontSize = 26
FgColor = "255 255 255 255"
// CLASSDESC, MAPDESC, MOTD text windows
// 人物装备介绍、地图介绍、欢迎信息
SchemeName = "Briefing Text"
FontName = "Arial"
FontSize = 15
FontWeight = 0
FgColor = "150 150 255 255"
// Team info text (list of players, etc)
// 队伍信息(玩家列表、其他)
// fgColor is automatically set to the teams color
SchemeName = "Team Info Text"
FontName = "Arial"
FontSize = 15
FontWeight = 0
四段一组的数字代表:红、绿、蓝、亮度
改后的效果:






