Add metrics for the skip display
This commit is contained in:
@@ -1832,7 +1832,12 @@ Class="ScreenStatsOverlay"
|
||||
Fallback="Screen"
|
||||
StatsX=SCREEN_RIGHT-8
|
||||
StatsY=SCREEN_TOP+10
|
||||
StatsOnCommand=horizalign,right;vertalign,top;shadowlength,2
|
||||
StatsOnCommand=horizalign,right;vertalign,top;shadowlength,1
|
||||
|
||||
SkipX=SCREEN_RIGHT-100
|
||||
SkipY=SCREEN_BOTTOM-100
|
||||
SkipWidth=190
|
||||
SkipSpacingY=14
|
||||
|
||||
[MusicWheelItem]
|
||||
IconX=-136
|
||||
|
||||
@@ -23,10 +23,10 @@ void ScreenStatsOverlay::Init()
|
||||
* the time in the log. */
|
||||
m_LastSkip = 0;
|
||||
|
||||
const float SKIP_X = SCREEN_RIGHT - 100;
|
||||
const float SKIP_Y = SCREEN_BOTTOM - 100;
|
||||
const float SKIP_WIDTH = 190;
|
||||
const float SKIP_SPACING_Y = 14;
|
||||
SKIP_X.Load( m_sName, "SkipX" );
|
||||
SKIP_Y.Load( m_sName, "SkipY" );
|
||||
SKIP_SPACING_Y.Load( m_sName, "SkipSpacingY" );
|
||||
SKIP_WIDTH.Load( m_sName, "SkipWidth" );
|
||||
|
||||
RectF rectSkips = RectF(
|
||||
SKIP_X-SKIP_WIDTH/2,
|
||||
|
||||
@@ -25,6 +25,11 @@ private:
|
||||
BitmapText m_textSkips[NUM_SKIPS_TO_SHOW];
|
||||
RageTimer m_timerSkip;
|
||||
int m_LastSkip;
|
||||
|
||||
ThemeMetric<float> SKIP_X;
|
||||
ThemeMetric<float> SKIP_Y;
|
||||
ThemeMetric<float> SKIP_SPACING_Y;
|
||||
ThemeMetric<float> SKIP_WIDTH;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user