fixed handling of CoverBig for category covers
This commit is contained in:
1 parent
baea1cd7eb
commit
4accb26538
1 file changed
+32
-2
@@ -31,8 +31,38 @@ namespace Vocaluxe.Menu.SongMenu
|
|||||||
public class CCategory
|
public class CCategory
|
||||||
{
|
{
|
||||||
public string Name = String.Empty;
|
public string Name = String.Empty;
|
||||||
public STexture CoverTextureSmall = new STexture();
|
private STexture _CoverTextureSmall = new STexture();
|
||||||
public STexture CoverTextureBig = new STexture();
|
private STexture _CoverTextureBig = new STexture();
|
||||||
|
private bool _CoverBigLoaded = false;
|
||||||
|
|
||||||
|
public STexture CoverTextureSmall
|
||||||
|
{
|
||||||
|
get { return _CoverTextureSmall; }
|
||||||
|
|
||||||
|
set
|
||||||
|
{
|
||||||
|
_CoverTextureSmall = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public STexture CoverTextureBig
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (_CoverBigLoaded)
|
||||||
|
return _CoverTextureBig;
|
||||||
|
else
|
||||||
|
return _CoverTextureSmall;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (value.index != -1)
|
||||||
|
{
|
||||||
|
_CoverTextureBig = value;
|
||||||
|
_CoverBigLoaded = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public CCategory(string name, STexture CoverSmall, STexture CoverBig)
|
public CCategory(string name, STexture CoverSmall, STexture CoverBig)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user