谁能指出我的Scene2d ImageButton的工作示例皮肤文件?基于 ImageButton 构造函数,这是我创建基本皮肤的失败尝试:
styles: {
com.badlogic.gdx.scenes.scene2d.ui.ImageButton$ImageButtonStyle:
{
down: downImage,
up: upImage,
checked: checkedImage
}
}
我在文档中的任何地方都找不到,尽管这里有一个 TextButton 皮肤文件的示例。
在 Libgdx 源代码中,有一个通过在此处以编程方式设置样式在 UI 测试中使用 ImageButton 的示例,但我希望避免在代码中设置样式。