Called if uiDebug is enabled * @param {boolean} visible
(visible=true)
| 961 | /** Called if uiDebug is enabled |
| 962 | * @param {boolean} visible */ |
| 963 | renderDebug(visible=true) |
| 964 | { |
| 965 | // apply color based on state |
| 966 | const color = |
| 967 | !visible ? GREEN : |
| 968 | this.isHoverObject() ? YELLOW : |
| 969 | this.disabled ? PURPLE : |
| 970 | this.interactive ? RED : BLUE; |
| 971 | uiSystem.drawRect(this.pos, this.size, CLEAR_BLACK, 4, color); |
| 972 | } |
| 973 | |
| 974 | /** Internal function called when object is clicked |
| 975 | * @param {boolean} [playSound] */ |
no test coverage detected