Highlight Top 3 Highscores (#835)

* Add Highscore Bars

* Add Highscore Bars

* Add Highscore Bars

* Add Highscore Bars

* Add Highscore Bars

* Add Highscore Bars

* Add Highscore Bars

* Add Highscore Bars

* Add Highscore Bars

* Screen Version 3
This commit is contained in:
Edi316 authored and GitHub committed 2026-03-08 12:41:05 +01:00
1 parent 320082414a
commit 36a8156e28
9 files changed
+170 -19

No files matched your search

@@ -1,7 +1,11 @@
ScreenHighscore
++++++++++
Version 3:
Add: Color bars (Gold, Silver, Bronze) for Top 3 Scores
++++++++++
Version 2:
Add: ParticleEffectsNew[1..10] (one for each entry!)
++++++++++
++++++++++
@@ -308,6 +308,24 @@
<B>1.000</B>
<A>0.900</A>
</TextPauseColor>
<Top1Color>
<R>1.000</R>
<G>0.800</G>
<B>0.000</B>
<A>0.800</A>
</Top1Color>
<Top2Color>
<R>0.800</R>
<G>0.800</G>
<B>0.800</B>
<A>0.750</A>
</Top2Color>
<Top3Color>
<R>0.800</R>
<G>0.500</G>
<B>0.300</B>
<A>0.750</A>
</Top3Color>
</Colors>
<Skins>
<BG_Default>BG_Default.png</BG_Default>
+18
View File
@@ -308,6 +308,24 @@
<B>1.000</B>
<A>0.900</A>
</TextPauseColor>
<Top1Color>
<R>1.000</R>
<G>0.800</G>
<B>0.000</B>
<A>0.800</A>
</Top1Color>
<Top2Color>
<R>0.800</R>
<G>0.800</G>
<B>0.800</B>
<A>0.750</A>
</Top2Color>
<Top3Color>
<R>0.800</R>
<G>0.500</G>
<B>0.300</B>
<A>0.750</A>
</Top3Color>
</Colors>
<Skins>
<BG_Default>BG_Default.png</BG_Default>
+18
View File
@@ -308,6 +308,24 @@
<B>1.000</B>
<A>0.900</A>
</TextPauseColor>
<Top1Color>
<R>1.000</R>
<G>0.800</G>
<B>0.000</B>
<A>0.800</A>
</Top1Color>
<Top2Color>
<R>0.800</R>
<G>0.800</G>
<B>0.800</B>
<A>0.750</A>
</Top2Color>
<Top3Color>
<R>0.800</R>
<G>0.500</G>
<B>0.300</B>
<A>0.750</A>
</Top3Color>
</Colors>
<Skins>
<BG_Default>BG_Default.png</BG_Default>
+18
View File
@@ -308,6 +308,24 @@
<B>1.000</B>
<A>0.900</A>
</TextPauseColor>
<Top1Color>
<R>1.000</R>
<G>0.800</G>
<B>0.000</B>
<A>0.800</A>
</Top1Color>
<Top2Color>
<R>0.800</R>
<G>0.800</G>
<B>0.800</B>
<A>0.750</A>
</Top2Color>
<Top3Color>
<R>0.800</R>
<G>0.500</G>
<B>0.300</B>
<A>0.750</A>
</Top3Color>
</Colors>
<Skins>
<BG_Default>BG_Default.png</BG_Default>
+18
View File
@@ -308,6 +308,24 @@
<B>1.000</B>
<A>0.900</A>
</TextPauseColor>
<Top1Color>
<R>1.000</R>
<G>0.800</G>
<B>0.000</B>
<A>0.800</A>
</Top1Color>
<Top2Color>
<R>0.800</R>
<G>0.800</G>
<B>0.800</B>
<A>0.750</A>
</Top2Color>
<Top3Color>
<R>0.800</R>
<G>0.500</G>
<B>0.300</B>
<A>0.750</A>
</Top3Color>
</Colors>
<Skins>
<BG_Default>BG_Default.png</BG_Default>
+18
View File
@@ -308,6 +308,24 @@
<B>1.000</B>
<A>0.900</A>
</TextPauseColor>
<Top1Color>
<R>1.000</R>
<G>0.800</G>
<B>0.000</B>
<A>0.800</A>
</Top1Color>
<Top2Color>
<R>0.800</R>
<G>0.800</G>
<B>0.800</B>
<A>0.750</A>
</Top2Color>
<Top3Color>
<R>0.800</R>
<G>0.500</G>
<B>0.300</B>
<A>0.750</A>
</Top3Color>
</Colors>
<Skins>
<BG_Default>BG_Default.png</BG_Default>
@@ -2,7 +2,7 @@
<Screen xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Informations>
<ScreenName>ScreenHighscore</ScreenName>
<ScreenVersion>2</ScreenVersion>
<ScreenVersion>3</ScreenVersion>
</Informations>
<Backgrounds>
<Background Name="Background1">
@@ -25,6 +25,39 @@
<Z>0</Z>
</Rect>
</Static>
<Static Name="StaticTop1Bar">
<Skin />
<Color Name="Top1Color" />
<Rect>
<X>120</X>
<Y>155</Y>
<W>1620</W>
<H>52.5</H>
<Z>0</Z>
</Rect>
</Static>
<Static Name="StaticTop2Bar">
<Skin />
<Color Name="Top2Color" />
<Rect>
<X>120</X>
<Y>245</Y>
<W>1620</W>
<H>52.5</H>
<Z>0</Z>
</Rect>
</Static>
<Static Name="StaticTop3Bar">
<Skin />
<Color Name="Top3Color" />
<Rect>
<X>120</X>
<Y>335</Y>
<W>1620</W>
<H>52.5</H>
<Z>0</Z>
</Rect>
</Static>
</Statics>
<Texts>
<Text Name="TextTitle">
@@ -72,7 +105,7 @@
<Text Name="TextNumber1">
<X>180</X>
<Y>154.5</Y>
<Z>0</Z>
<Z>-2</Z>
<H>52.5</H>
<MaxW>0</MaxW>
<Color Name="TextColor" />
@@ -85,8 +118,8 @@
</Text>
<Text Name="TextNumber2">
<X>180</X>
<Y>240</Y>
<Z>0</Z>
<Y>244.5</Y>
<Z>-2</Z>
<H>52.5</H>
<MaxW>0</MaxW>
<Color Name="TextColor" />
@@ -100,7 +133,7 @@
<Text Name="TextNumber3">
<X>180</X>
<Y>334.5</Y>
<Z>0</Z>
<Z>-2</Z>
<H>52.5</H>
<MaxW>0</MaxW>
<Color Name="TextColor" />
@@ -212,7 +245,7 @@
<Text Name="TextName1">
<X>300</X>
<Y>154.5</Y>
<Z>0</Z>
<Z>-2</Z>
<H>52.5</H>
<MaxW>0</MaxW>
<Color Name="TextColor" />
@@ -226,7 +259,7 @@
<Text Name="TextName2">
<X>300</X>
<Y>244.5</Y>
<Z>0</Z>
<Z>-2</Z>
<H>52.5</H>
<MaxW>0</MaxW>
<Color Name="TextColor" />
@@ -240,7 +273,7 @@
<Text Name="TextName3">
<X>300</X>
<Y>334.5</Y>
<Z>0</Z>
<Z>-2</Z>
<H>52.5</H>
<MaxW>0</MaxW>
<Color Name="TextColor" />
@@ -352,7 +385,7 @@
<Text Name="TextScore1">
<X>1200</X>
<Y>154.5</Y>
<Z>0</Z>
<Z>-2</Z>
<H>52.5</H>
<MaxW>0</MaxW>
<Color Name="TextColor" />
@@ -366,7 +399,7 @@
<Text Name="TextScore2">
<X>1200</X>
<Y>244.5</Y>
<Z>0</Z>
<Z>-2</Z>
<H>52.5</H>
<MaxW>0</MaxW>
<Color Name="TextColor" />
@@ -380,7 +413,7 @@
<Text Name="TextScore3">
<X>1200</X>
<Y>334.5</Y>
<Z>0</Z>
<Z>-2</Z>
<H>52.5</H>
<MaxW>0</MaxW>
<Color Name="TextColor" />
@@ -492,7 +525,7 @@
<Text Name="TextDate1">
<X>1500</X>
<Y>154.5</Y>
<Z>0</Z>
<Z>-2</Z>
<H>52.5</H>
<MaxW>0</MaxW>
<Color Name="TextColor" />
@@ -506,7 +539,7 @@
<Text Name="TextDate2">
<X>1500</X>
<Y>244.5</Y>
<Z>0</Z>
<Z>-2</Z>
<H>52.5</H>
<MaxW>0</MaxW>
<Color Name="TextColor" />
@@ -520,7 +553,7 @@
<Text Name="TextDate3">
<X>1500</X>
<Y>334.5</Y>
<Z>0</Z>
<Z>-2</Z>
<H>52.5</H>
<MaxW>0</MaxW>
<Color Name="TextColor" />
@@ -646,7 +679,7 @@
<Y>150</Y>
<W>1620</W>
<H>52.5</H>
<Z>1</Z>
<Z>-1</Z>
</Rect>
<Color Name="StaticColor" />
<Type>Star</Type>
@@ -660,7 +693,7 @@
<Y>240</Y>
<W>1620</W>
<H>52.5</H>
<Z>1</Z>
<Z>-1</Z>
</Rect>
<Color Name="StaticColor" />
<Type>Star</Type>
@@ -674,7 +707,7 @@
<Y>330</Y>
<W>1620</W>
<H>52.5</H>
<Z>1</Z>
<Z>-1</Z>
</Rect>
<Color Name="StaticColor" />
<Type>Star</Type>
+7 -1
View File
@@ -33,7 +33,7 @@ namespace Vocaluxe.Screens
// Version number for theme files. Increment it, if you've changed something on the theme files!
protected override int _ScreenVersion
{
get { return 2; }
get { return 3; }
}
private const int _NumEntrys = 10;
@@ -106,6 +106,7 @@ namespace Vocaluxe.Screens
for (int i = 0; i < _NumEntrys; i++)
_ParticleEffectNew[i] = "ParticleEffectNew" + (i + 1);
_ThemeStatics = new string[] { "StaticTop1Bar", "StaticTop2Bar", "StaticTop3Bar" };
_ThemeTexts = texts.ToArray();
_ThemeParticleEffects = _ParticleEffectNew;
@@ -175,6 +176,11 @@ namespace Vocaluxe.Screens
public override bool UpdateGame()
{
int numScores = _Scores[_Round].Count;
_Statics["StaticTop1Bar"].Visible = (numScores >= 1);
_Statics["StaticTop2Bar"].Visible = (numScores >= 2);
_Statics["StaticTop3Bar"].Visible = (numScores >= 3);
for (int p = 0; p < _NumEntrys; p++)
{
if (_Pos + p < _Scores[_Round].Count)