After updating jME from CVS my menu buttons don’t “work” anymore - when holding the cursor over them they just turn white.
This is how I load them:
play = new UIButton("Play Button",
centerX-w, centerY+(d-h), 128, 32,
TestUI is broken, so I don't know if it should work.
Just ran TestUI and the mouse over events for all three types of buttons work as expected.
Hmm, took a closer look at the error msg I got:
at jmetest.ui.TestUI.initGame(Unknown Source)
at com.jme.app.BaseGame.start(Unknown Source)
at jmetest.ui.TestUI.main(Unknown Source)
I'm running java 1.5, and maybe it was built for 1.4?
running Marble Fun and looking at the button it looks more like the mouse over texture is missing: data/textures/menu/play_down.png,
notice the ‘,’ after the png?
Uh, LOL! ://
I made that typo at the same time I upgraded from CVS, so I never really looked very close at it.
Problem solved then
TestUI is still broken tho
You must have an old class file, the complaint is:
UIButton(String, InputHandler, String, String, String); doesn’t exist, which is true.
Try doing a clean rebuild to remove any old ui class files.