Merge pull request #119 from XTigerHyperX/master

smol description error fix
This commit is contained in:
XTigerHyperX 2020-10-10 21:00:15 +01:00 committed by GitHub
commit b6a628f3b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -230,20 +230,23 @@ namespace FModel.Creator.Texts
_BOTTOM_TEXT_SIZE = 15;
string text = icon.Description;
ETextSide side = ETextSide.Center;
switch ((EIconDesign)Properties.Settings.Default.AssetsIconDesign)
if (text != null)
{
case EIconDesign.Mini:
{
maxLine = 5;
_BOTTOM_TEXT_SIZE = icon.Margin;
text = text.ToUpper();
break;
}
case EIconDesign.Flat:
{
side = ETextSide.Right;
break;
}
switch ((EIconDesign)Properties.Settings.Default.AssetsIconDesign)
{
case EIconDesign.Mini:
{
maxLine = 5;
_BOTTOM_TEXT_SIZE = icon.Margin;
text = text.ToUpper();
break;
}
case EIconDesign.Flat:
{
side = ETextSide.Right;
break;
}
}
}
SKPaint descriptionPaint = new SKPaint