move contants to metrics

This commit is contained in:
Chris Danford
2003-11-19 11:53:23 +00:00
parent 2434c34e21
commit 8eb94f73ca
2 changed files with 6 additions and 2 deletions
+2
View File
@@ -3299,3 +3299,5 @@ FadeSeconds=0.25
TipShowTime=3.5
TipOnCommand=shadowlength,0;diffuseblink
[CombinedLifeMeterTug]
MeterWidth=550
+4 -2
View File
@@ -3,7 +3,7 @@
-----------------------------------------------------------------------------
File: CombinedLifeMeterTug.h
Desc: The song's CombinedLifeMeterTug displayed in SelectSong.
Desc: Dance Magic-like tug-o-war life meter.
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
-----------------------------------------------------------------------------
@@ -15,7 +15,7 @@
#include "PrefsManager.h"
const float METER_WIDTH = 550;
CachedThemeMetricF METER_WIDTH ("CombinedLifeMeterTug","MeterWidth");
const float FACE_X[NUM_PLAYERS] = { -300, +300 };
const float FACE_Y[NUM_PLAYERS] = { 0, 0 };
@@ -23,6 +23,8 @@ const float FACE_Y[NUM_PLAYERS] = { 0, 0 };
CombinedLifeMeterTug::CombinedLifeMeterTug()
{
METER_WIDTH.Refresh();
int p;
for( p=0; p<NUM_PLAYERS; p++ )
{