Closed hiker-who-codes closed 8 years ago
if you edit the settings, you need to rebuild the component to reflect the changes : EZGUI.components[id].rebuild()
it's still undocumented because it's experimental, but it should work just fine :)
Thanks, this works just fine!
I am trying to dynamically edit the
bg
property from aEZGUI.components
component, but have no luck yet.I am unable to make the changes appear on screen. I can successfully access the component with:
EZGUI.components[id]
. This allows me to e.g. change the position property, and this change appears directly on the screen. However, when I try to do the same from thebg
property, nothing happens.I have found a
_settings
object and asettings
object, both hold thebg
property, but changing them has no effect. The component holds nobg
property on its own.The initial background does successfully appear through the JSON file. It just seems static afterwards.
Am I overlooking something obvious, or is it not yet implemented? Thanks!