mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-26 14:38:34 +01:00
removed null propagation here because I never really use it anywhere else and it's ugly
This commit is contained in:
parent
765acc3f62
commit
38d72d981a
1 changed files with 4 additions and 2 deletions
|
@ -97,10 +97,12 @@ namespace MLEM.Ui {
|
||||||
}
|
}
|
||||||
|
|
||||||
// first action on element
|
// first action on element
|
||||||
mousedNow?.OnPressed?.Invoke(mousedNow);
|
if (mousedNow != null)
|
||||||
|
mousedNow.OnPressed?.Invoke(mousedNow);
|
||||||
} else if (this.InputHandler.IsMouseButtonPressed(this.SecondaryButton)) {
|
} else if (this.InputHandler.IsMouseButtonPressed(this.SecondaryButton)) {
|
||||||
// secondary action on element
|
// secondary action on element
|
||||||
mousedNow?.OnSecondaryPressed?.Invoke(mousedNow);
|
if (mousedNow != null)
|
||||||
|
mousedNow.OnSecondaryPressed?.Invoke(mousedNow);
|
||||||
}
|
}
|
||||||
|
|
||||||
// generic element click
|
// generic element click
|
||||||
|
|
Loading…
Reference in a new issue