mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 12:58:33 +01:00
made elements refer back to their controls for the selected element
This commit is contained in:
parent
d07f470da3
commit
cd70b22ae5
1 changed files with 1 additions and 1 deletions
|
@ -472,7 +472,7 @@ namespace MLEM.Ui.Elements {
|
|||
|
||||
public virtual void Draw(GameTime time, SpriteBatch batch, float alpha, BlendState blendState, SamplerState samplerState, Matrix matrix) {
|
||||
this.System.OnElementDrawn?.Invoke(this, time, batch, alpha);
|
||||
if (this.Root.SelectedElement == this)
|
||||
if (this.Controls.SelectedElement == this)
|
||||
this.System.OnSelectedElementDrawn?.Invoke(this, time, batch, alpha);
|
||||
|
||||
foreach (var child in this.GetRelevantChildren()) {
|
||||
|
|
Loading…
Reference in a new issue