mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-26 06:28:35 +01:00
added some more element events
This commit is contained in:
parent
ae4ced1cc1
commit
78da85bbfc
1 changed files with 2 additions and 1 deletions
|
@ -52,8 +52,9 @@ namespace MLEM.Ui {
|
|||
public SamplerState SamplerState = SamplerState.PointClamp;
|
||||
public UiControls Controls;
|
||||
|
||||
public Element.DrawCallback OnElementDrawn;
|
||||
public Element.DrawCallback OnElementDrawn = (e, time, batch, alpha) => e.OnDrawn?.Invoke(e, time, batch, alpha);
|
||||
public Element.DrawCallback OnSelectedElementDrawn;
|
||||
public Element.TimeCallback OnElementUpdated = (e, time) => e.OnUpdated?.Invoke(e, time);
|
||||
public Element.GenericCallback OnElementPressed = e => e.OnPressed?.Invoke(e);
|
||||
public Element.GenericCallback OnElementSecondaryPressed = e => e.OnSecondaryPressed?.Invoke(e);
|
||||
public Element.GenericCallback OnElementSelected = e => e.OnSelected?.Invoke(e);
|
||||
|
|
Loading…
Reference in a new issue