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