HyUI
HyUI copied to clipboard
`UIEventBuilder` not exposed in `editElement`
I want to load UI from a .ui file and the docs say
Elements defined within the
.uifile cannot have event listeners attached to them via.addEventListener. This method is only for elements created via the Java Builder API or HYUIML. To interact with elements in a.uifile, use.editElementto send raw UI commands.
However, to add events to a button, I require access to the UIEventBuilder which is not exposed to .editElement. Easy fix would be to add an overload to .editElement that accepts a BiConsumer<UICommandBuilder, UIEventBuilder>.
If there is another way to do this, please update the docs.
Fixed in 0.7.1 - release pending.