hi all
I want to change the default image of my button after an event,
in Button class there is no setter to replace the default image so how i can do ?
thank for your help
hi all
I want to change the default image of my button after an event,
in Button class there is no setter to replace the default image so how i can do ?
thank for your help
[java]
Element.setColorMap(String colorMap);
[/java]
Either as arelative path (non-atlased ui)
Or as an atlas string “x=10|y=10|w=25|h=25” (if using altas)
There is also a similar methods for alpha map (setAlphaMap)
If you do not want an image at all, you can either pass in null or use setAsContainerOnly (this removes all visual components from the Element/Component/Whatever)
thanks t0neg0d, it work fine
Hi guys !
I have one more question about changing the button default image:
i used :
helpButton.setTextureAtlasImage(TextureHelp, "x=0|y=0|w=100|h=30");
helpButton.setButtonHoverInfo("assets/aideh.png", ColorRGBA.White);
helpButton.setButtonPressedInfo("assets/aide.png", ColorRGBA.White);
This is working nice, but when hovering over the button with the mouse it shows aideh.png blinking ( i.e it shows gradually the image aideh.png alternating with no image ).
What i expect is to have it alternating with its new default image, or not blinking at all.
Thanks for your help.