Hide The Pain Harold

This commit is contained in:
iAmAsval 2020-10-10 00:34:35 +02:00
parent 7678e06ec8
commit db65a03c8d
2 changed files with 11 additions and 8 deletions

View File

@ -110,7 +110,7 @@ namespace FModel.Creator.Bases
TextSize = 15,
Color = SKColors.White,
TextAlign = SKTextAlign.Center,
Typeface = Text.TypeFaces.BottomDefaultTypeface
Typeface = Text.TypeFaces.BottomDefaultTypeface ?? Text.TypeFaces.DisplayNameTypeface
};
using SKPaint bg = new SKPaint
{
@ -135,7 +135,7 @@ namespace FModel.Creator.Bases
int x = 20;
foreach (var (index, reward) in BookXpSchedule)
{
if (index == 0)
if (index == 0 || reward.Count <= 0)
continue;
c.DrawText(index.ToString(), new SKPoint(x + (defaultSize / 2), y - 5), paint);
@ -234,11 +234,14 @@ namespace FModel.Creator.Bases
});
}
c.DrawBitmap(FirstWinReward.TheReward.IconImage.Resize(HeaderHeight, HeaderHeight), new SKPoint(0, 0), new SKPaint
if (FirstWinReward != null)
{
FilterQuality = SKFilterQuality.High,
IsAntialias = true
});
c.DrawBitmap(FirstWinReward.TheReward.IconImage.Resize(HeaderHeight, HeaderHeight), new SKPoint(0, 0), new SKPaint
{
FilterQuality = SKFilterQuality.High,
IsAntialias = true
});
}
SKPath pathTop = new SKPath { FillType = SKPathFillType.EvenOdd };
pathTop.MoveTo(0, HeaderHeight);

View File

@ -82,8 +82,8 @@ To use FModel, you need to have [.NET Core 3.1](https://dotnet.microsoft.com/dow
</td>
<td align="center">
<a href="https://github.com/NotOfficer">
<img src="https://avatars1.githubusercontent.com/u/29897990?s=200&v=4" width="100px;" alt="Not Officer"/><br>
<sub><b>Not Officer</b></sub>
<img src="https://avatars1.githubusercontent.com/u/29897990?s=200&v=4" width="100px;" alt="Officer"/><br>
<sub><b>Officer</b></sub>
</a><br>
<a href="https://github.com/NotOfficer" title="Github">🔧</a>
<a href="https://twitter.com/Not0fficer" title="Twitter">🐦</a>