MCPcopy Index your code
hub / github.com/KilledByAPixel/LittleJS / renderDebug

Method renderDebug

plugins/uiSystem.js:963–972  ·  view source on GitHub ↗

Called if uiDebug is enabled * @param {boolean} visible

(visible=true)

Source from the content-addressed store, hash-verified

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] */

Callers 1

renderDebugMethod · 0.45

Calls 2

isHoverObjectMethod · 0.95
drawRectMethod · 0.45

Tested by

no test coverage detected