option icons working, new font format, more theme metrics cleanup

This commit is contained in:
Chris Danford
2002-09-03 22:31:06 +00:00
parent 106531a0f8
commit 7ab487072f
48 changed files with 350 additions and 286 deletions
+6 -3
View File
@@ -16,15 +16,18 @@
#define COLOR_P1 THEME->GetMetricC("Common","ColorP1")
#define COLOR_P2 THEME->GetMetricC("Common","ColorP2")
#define COLOR_EASY THEME->GetMetricC("Common","ColorEasy")
#define COLOR_MEDIUM THEME->GetMetricC("Common","ColorMedium")
#define COLOR_HARD THEME->GetMetricC("Common","ColorHard")
D3DXCOLOR DifficultyClassToColor( DifficultyClass dc )
{
switch( dc )
{
case CLASS_EASY: return D3DXCOLOR(1,1,0,1); // yellow
case CLASS_MEDIUM: return D3DXCOLOR(1,0,0,1); // red
case CLASS_HARD: return D3DXCOLOR(0,1,0,1); // green
case CLASS_EASY: return COLOR_EASY;
case CLASS_MEDIUM: return COLOR_MEDIUM;
case CLASS_HARD: return COLOR_HARD;
default: ASSERT(0); return D3DXCOLOR(); // invalid DifficultyClass
}
}