Merge branch 'challenge' of github.com:Vocaluxe/Vocaluxe into challenge

This commit is contained in:
Florian Kuepper committed 2012-12-16 12:50:17 +01:00
commit 8f1a8fee29
1 file changed
+21 -3
+21 -3
View File
@@ -25,6 +25,8 @@ namespace Vocaluxe.Menu
private bool _ThemeLoaded; private bool _ThemeLoaded;
private int _PartyModeID; private int _PartyModeID;
public STexture Texture;
public STexture STexture;
public SRectF Rect; public SRectF Rect;
public SColorF Color; public SColorF Color;
public SColorF SColor; public SColorF SColor;
@@ -78,6 +80,8 @@ namespace Vocaluxe.Menu
Rect = new SRectF(); Rect = new SRectF();
Color = new SColorF(); Color = new SColorF();
SColor = new SColorF(); SColor = new SColorF();
Texture = new STexture(-1);
STexture = new STexture(-1);
SelText = false; SelText = false;
Text = new CText(_Base, _PartyModeID); Text = new CText(_Base, _PartyModeID);
@@ -103,6 +107,8 @@ namespace Vocaluxe.Menu
Rect = new SRectF(button.Rect); Rect = new SRectF(button.Rect);
Color = new SColorF(button.Color); Color = new SColorF(button.Color);
SColor = new SColorF(button.Color); SColor = new SColorF(button.Color);
Texture = button.Texture;
STexture = button.STexture;
SelText = false; SelText = false;
Text = new CText(button.Text); Text = new CText(button.Text);
@@ -295,7 +301,11 @@ namespace Vocaluxe.Menu
if (!Selected && !Pressed) if (!Selected && !Pressed)
{ {
texture = _Base.Theme.GetSkinTexture(_Theme.TextureName); if (Texture.index != -1)
texture = Texture;
else
texture = _Base.Theme.GetSkinTexture(_Theme.TextureName);
_Base.Drawing.DrawTexture(texture, Rect, Color); _Base.Drawing.DrawTexture(texture, Rect, Color);
if (Reflection) if (Reflection)
@@ -308,7 +318,11 @@ namespace Vocaluxe.Menu
} }
else if(!SelText) else if(!SelText)
{ {
texture = _Base.Theme.GetSkinTexture(_Theme.STextureName); if (Texture.index != -1)
texture = Texture;
else
texture = _Base.Theme.GetSkinTexture(_Theme.STextureName);
_Base.Drawing.DrawTexture(texture, Rect, SColor); _Base.Drawing.DrawTexture(texture, Rect, SColor);
if (Reflection) if (Reflection)
@@ -321,7 +335,11 @@ namespace Vocaluxe.Menu
} }
else if(SelText) else if(SelText)
{ {
texture = _Base.Theme.GetSkinTexture(_Theme.STextureName); if (STexture.index != -1)
texture = STexture;
else
texture = _Base.Theme.GetSkinTexture(_Theme.STextureName);
_Base.Drawing.DrawTexture(texture, Rect, SColor); _Base.Drawing.DrawTexture(texture, Rect, SColor);
if (Reflection) if (Reflection)