2

I'm new to libgdx, I see in the constructor of Button there is a parameter for the button texture, and a texture for when it is pressed.. Here is the documentation : Scene2d.ui#Button

Is it possible to add "Hover" option to a button ?( a 3rd texture that appears when the mouse hovers over the button).

4

1 回答 1

7

使用构造函数采用ButtonStyle. 您将能够在该样式上设置所有可绘制对象。和字段对应于悬停overcheckedOver

于 2013-12-02T22:36:56.180 回答