1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-12-27 02:29:23 +01:00

added some more element events

This commit is contained in:
Ellpeck 2019-09-25 16:47:27 +02:00
parent ae4ced1cc1
commit 78da85bbfc

View file

@ -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);