mirror of
https://github.com/4sval/FModel.git
synced 2026-03-22 01:34:37 -05:00
Merge pull request #119 from XTigerHyperX/master
smol description error fix
This commit is contained in:
commit
b6a628f3b0
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user