I would have expected to see in the log something like “setting color of Label to X because file Y says so”, but I can’t figure it out. I thought that I was just dumb but your comment makes me think that the logs just don’t have this information.
Besides, all the selector have the “glass” tag. What does it mean, since I’m not using glass anymore? Should I replace it with something else to avoid conflict?
javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: Hover for class: com.simsilica.lemur.Button$ButtonAction
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:320)
at org.codehaus.groovy.jsr223.GroovyCompiledScript.eval(GroovyCompiledScript.java:72)
at javax.script.CompiledScript.eval(CompiledScript.java:92)
at com.simsilica.lemur.style.StyleLoader.loadStyle(StyleLoader.java:177)
… 8 more
Caused by: groovy.lang.MissingPropertyException: No such property: Hover for class: com.simsilica.lemur.Button$ButtonAction
at groovy.lang.MetaClassImpl.invokeStaticMissingProperty(MetaClassImpl.java:1002)
at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:1857)
at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:1833)
at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:3758)
at org.codehaus.groovy.runtime.callsite.ClassMetaClassGetPropertySite.getProperty(ClassMetaClassGetPropertySite.java:51)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:296)
at Script2.run(Script2.groovy:74)
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:317)
… 11 more
Note: I just updated DynamicInsetsComponent to support 0 insets, ie: to allow dynamic stretching. This will go into the next release but you can build lemur from source if you want it now (easy with gradle install).
I also updated the demo to have a dynamic insets demo.
Ok, I’ll switch to master version. I also want to add the functionality I need to make it work like I want. Basically, the button should have 3 visible states:
default
MouseOver or FocusOn
Pressed
For each state I need different text color and different background (basically swap the 9-patch Texture)