我有 4 个使用 ControlP5 功能从图像中制作的按钮。我想知道有没有办法让他们的点击清晰可见。现在没有迹象表明他们正在被点击。(如按钮背景的颜色变化或任何指示)
以下是按钮:
cp5.addButton("AREA_1") // The button
.setImage(img1)
.setPosition(-16,10) // x and y relative to the group
.updateSize()
.setFont(font)
.moveTo(AreaRingGroup); // add it to the group
;
cp5.addButton("AREA_2") // The button
.setImage(img2)
.setPosition(-15,170) // x and y relative to the group
.updateSize()
.setFont(font)
.moveTo(AreaRingGroup); // add it to the group
;
cp5.addButton("AREA_3") // The button
.setImage(img3)
.setPosition(150,184) // x and y relative to the group
.updateSize()
.setFont(font)
.moveTo(AreaRingGroup); // add it to the group
;
cp5.addButton("AREA_4") // The button
.setImage(img4)
.setPosition(148,13) // x and y relative to the group
.updateSize()
.setFont(font)
.moveTo(AreaRingGroup); // add it to the group
;