1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-24 21:48:35 +01:00

Compare commits

..

No commits in common. "79354c444bc4d97b694c8e2adbf17f8232123eca" and "ef3fcb2e9cba9a1a4cf055344005ce08656604a2" have entirely different histories.

3 changed files with 6 additions and 11 deletions

View file

@ -9,8 +9,8 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Contentless" Version="3.0.6" />
<PackageReference Include="MLEM.Startup" Version="5.1.0" />
<PackageReference Include="Contentless" Version="3.0.5" />
<PackageReference Include="MLEM.Startup" Version="4.3.0" />
<PackageReference Include="MonoGame.Framework.DesktopGL" Version="3.8.0.1641" />
<PackageReference Include="MonoGame.Content.Builder.Task" Version="3.8.0.1641" />
</ItemGroup>

View file

@ -5,7 +5,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MLEM.Startup" Version="5.1.0" />
<PackageReference Include="MLEM.Startup" Version="4.3.0" />
<PackageReference Include="MonoGame.Framework.DesktopGL" Version="3.8.0.1641">
<PrivateAssets>all</PrivateAssets>
</PackageReference>

View file

@ -888,13 +888,11 @@ namespace MLEM.Ui.Elements {
public virtual void Update(GameTime time) {
this.System.InvokeOnElementUpdated(this, time);
foreach (var child in this.GetRelevantChildren()) {
foreach (var child in this.GetRelevantChildren())
if (child.System != null)
child.Update(time);
}
if (this.System != null)
this.System.Metrics.Updates++;
this.System.Metrics.Updates++;
}
/// <summary>
@ -922,12 +920,9 @@ namespace MLEM.Ui.Elements {
batch.Begin(SpriteSortMode.Deferred, blendState, samplerState, depthStencilState, null, effect, mat);
}
}
// draw content in custom begin call
this.Draw(time, batch, alpha, blendState, samplerState, depthStencilState, effect, mat);
if (this.System != null)
this.System.Metrics.Draws++;
this.System.Metrics.Draws++;
if (customDraw) {
// end our draw
batch.End();