mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-25 05:58:35 +01:00
Compare commits
2 commits
ef3fcb2e9c
...
79354c444b
Author | SHA1 | Date | |
---|---|---|---|
79354c444b | |||
0541ad342e |
3 changed files with 11 additions and 6 deletions
|
@ -9,8 +9,8 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Contentless" Version="3.0.5" />
|
<PackageReference Include="Contentless" Version="3.0.6" />
|
||||||
<PackageReference Include="MLEM.Startup" Version="4.3.0" />
|
<PackageReference Include="MLEM.Startup" Version="5.1.0" />
|
||||||
<PackageReference Include="MonoGame.Framework.DesktopGL" Version="3.8.0.1641" />
|
<PackageReference Include="MonoGame.Framework.DesktopGL" Version="3.8.0.1641" />
|
||||||
<PackageReference Include="MonoGame.Content.Builder.Task" Version="3.8.0.1641" />
|
<PackageReference Include="MonoGame.Content.Builder.Task" Version="3.8.0.1641" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="MLEM.Startup" Version="4.3.0" />
|
<PackageReference Include="MLEM.Startup" Version="5.1.0" />
|
||||||
<PackageReference Include="MonoGame.Framework.DesktopGL" Version="3.8.0.1641">
|
<PackageReference Include="MonoGame.Framework.DesktopGL" Version="3.8.0.1641">
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
|
|
|
@ -888,11 +888,13 @@ namespace MLEM.Ui.Elements {
|
||||||
public virtual void Update(GameTime time) {
|
public virtual void Update(GameTime time) {
|
||||||
this.System.InvokeOnElementUpdated(this, time);
|
this.System.InvokeOnElementUpdated(this, time);
|
||||||
|
|
||||||
foreach (var child in this.GetRelevantChildren())
|
foreach (var child in this.GetRelevantChildren()) {
|
||||||
if (child.System != null)
|
if (child.System != null)
|
||||||
child.Update(time);
|
child.Update(time);
|
||||||
|
}
|
||||||
|
|
||||||
this.System.Metrics.Updates++;
|
if (this.System != null)
|
||||||
|
this.System.Metrics.Updates++;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -920,9 +922,12 @@ namespace MLEM.Ui.Elements {
|
||||||
batch.Begin(SpriteSortMode.Deferred, blendState, samplerState, depthStencilState, null, effect, mat);
|
batch.Begin(SpriteSortMode.Deferred, blendState, samplerState, depthStencilState, null, effect, mat);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// draw content in custom begin call
|
// draw content in custom begin call
|
||||||
this.Draw(time, batch, alpha, blendState, samplerState, depthStencilState, effect, mat);
|
this.Draw(time, batch, alpha, blendState, samplerState, depthStencilState, effect, mat);
|
||||||
this.System.Metrics.Draws++;
|
if (this.System != null)
|
||||||
|
this.System.Metrics.Draws++;
|
||||||
|
|
||||||
if (customDraw) {
|
if (customDraw) {
|
||||||
// end our draw
|
// end our draw
|
||||||
batch.End();
|
batch.End();
|
||||||
|
|
Loading…
Reference in a new issue