Closed qqilihq closed 9 months ago
Hi @qqilihq that's totally weird, so sorry about that, and we'll look into it asap.
the UITextButton is a user added features (over the original built-in UI components), it had some improvements over the latest versions, but there are not really covered in a proper example to make sure there a not being broken over a new version.
@obiot Thank you for looking into it, and your quick reply. We'll seek a workaround and share it when ready.
Hi Guys, super sorry on the late feedback on this one, but all issues should be fixed now.
to be noted, that although this version will still accept the backgroundColor
and hoverColor
properties for backward properties, they are now deprecated in favor of hoverOffColor
and hoverOnColor
(the crash you experienced was due to the UITextElement backgroundColor
property overwriting the parent Container backgroundColor
property.... bad choice of name!)
anyway, a new 15.13 version has been published, give it a try and let me know !
Hi @obiot,
thanks for the quick response!
Will give the latest version a go :).
@obiot cc @qqilihq I tested the new set up and no longer encounter the error message. Thanks a bunch!
Great! Thanks for the feedback 🙏🙏🙏
Describe the bug
@sdrahcorb and I are adding a subclassed
UITextButton
to a stage, and the result is quite different than expected. We’re bloody melonJS beginners, so not sure if the issue is on our end, if there’s a bug with theUITextButton
, or somewhere else in the framework.The rendered button shows the label twice - beside the expected position, it shows a second text outside the actual button, shifted vertically upwards. (see screenshot below)
The button has a click handler assigned which is supposed to perform a
state.change
- this will trigger athis.backgroundColor.setColor is not a function
error:To Reproduce
npm run dev
Expected behavior
Screenshots
Live Example Unfortunately we didn't manage to create a Codepen, as the
PressStart2P
font is not available there. Happy to push this into a repo if needed.Device (please complete the following information):
Additional context