Skip to content

Debug Display

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:24

  • Feature

setPlayerDisplay(textCallback): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:99

If the “togglePlayerDisplay” function is called, text will be drawn on the screen next to each player. Use this function to specify a callback function that returns the string that should be drawn.

Once the function is set, the library will call it automatically on every frame. For this reason, you typically only need to set the function once at the beginning of your mod.

For example, this would draw the number of the player’s collectibles next to their head:

setPlayerDisplay((player) => {
return `collectible count: ${player.GetCollectibleCount()}`;
});

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

(player) => string

void

setTearDisplay(textCallback): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:118

If the “toggleTearDisplay” function is called, text will be drawn on the screen next to each tear. Use this function to specify a callback function that returns the string that should be drawn.

Once the function is set, the library will call it automatically on every frame. For this reason, you typically only need to set the function once at the beginning of your mod.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

(tear) => string

void

setFamiliarDisplay(textCallback): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:135

If the “toggleFamiliarDisplay” function is called, text will be drawn on the screen next to each familiar. Use this function to specify a callback function that returns the string that should be drawn.

Once the function is set, the library will call it automatically on every frame. For this reason, you typically only need to set the function once at the beginning of your mod.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

(familiar) => string

void

setBombDisplay(textCallback): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:154

If the “toggleBombDisplay” function is called, text will be drawn on the screen next to each bomb. Use this function to specify a callback function that returns the string that should be drawn.

Once the function is set, the library will call it automatically on every frame. For this reason, you typically only need to set the function once at the beginning of your mod.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

(bomb) => string

void

setPickupDisplay(textCallback): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:171

If the “togglePickupDisplay” function is called, text will be drawn on the screen next to each pickup. Use this function to specify a callback function that returns the string that should be drawn.

Once the function is set, the library will call it automatically on every frame. For this reason, you typically only need to set the function once at the beginning of your mod.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

(pickup) => string

void

setSlotDisplay(textCallback): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:190

If the “toggleSlotDisplay” function is called, text will be drawn on the screen next to each slot. Use this function to specify a callback function that returns the string that should be drawn.

Once the function is set, the library will call it automatically on every frame. For this reason, you typically only need to set the function once at the beginning of your mod.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

(slot) => string

void

setLaserDisplay(textCallback): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:207

If the “toggleLaserDisplay” function is called, text will be drawn on the screen next to each laser. Use this function to specify a callback function that returns the string that should be drawn.

Once the function is set, the library will call it automatically on every frame. For this reason, you typically only need to set the function once at the beginning of your mod.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

(laser) => string

void

setKnifeDisplay(textCallback): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:224

If the “toggleKnifeDisplay” function is called, text will be drawn on the screen next to each knife. Use this function to specify a callback function that returns the string that should be drawn.

Once the function is set, the library will call it automatically on every frame. For this reason, you typically only need to set the function once at the beginning of your mod.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

(knife) => string

void

setProjectileDisplay(textCallback): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:241

If the “toggleProjectileDisplay” function is called, text will be drawn on the screen next to each projectile. Use this function to specify a callback function that returns the string that should be drawn.

Once the function is set, the library will call it automatically on every frame. For this reason, you typically only need to set the function once at the beginning of your mod.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

(projectile) => string

void

setEffectDisplay(textCallback): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:260

If the “extra console commands” feature is specified, the “effectDisplay” console command will draw text on the screen next to each effect. Use this function to specify a callback function that returns the string that should be drawn.

Once the function is set, the library will call it automatically on every frame. For this reason, you typically only need to set the function once at the beginning of your mod.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

(effect) => string

void

setNPCDisplay(textCallback): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:279

If the “toggleNPCDisplay” function is called, text will be drawn on the screen next to each NPC. Use this function to specify a callback function that returns the string that should be drawn.

Once the function is set, the library will call it automatically on every frame. For this reason, you typically only need to set the function once at the beginning of your mod.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

(npc) => string

void

setRockDisplay(textCallback): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:296

If the “toggleRockDisplay” function is called, text will be drawn on the screen next to each rock. Use this function to specify a callback function that returns the string that should be drawn.

Once the function is set, the library will call it automatically on every frame. For this reason, you typically only need to set the function once at the beginning of your mod.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

(rock) => string

void

setPitDisplay(textCallback): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:313

If the “togglePitDisplay” function is called, text will be drawn on the screen next to each pit. Use this function to specify a callback function that returns the string that should be drawn.

Once the function is set, the library will call it automatically on every frame. For this reason, you typically only need to set the function once at the beginning of your mod.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

(pit) => string

void

setSpikesDisplay(textCallback): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:330

If the “toggleSpikesDisplay” function is called, text will be drawn on the screen next to each spikes. Use this function to specify a callback function that returns the string that should be drawn.

Once the function is set, the library will call it automatically on every frame. For this reason, you typically only need to set the function once at the beginning of your mod.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

(spikes) => string

void

setTNTDisplay(textCallback): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:349

If the “toggleTNTDisplay” function is called, text will be drawn on the screen next to each TNT. Use this function to specify a callback function that returns the string that should be drawn.

Once the function is set, the library will call it automatically on every frame. For this reason, you typically only need to set the function once at the beginning of your mod.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

(tnt) => string

void

setPoopDisplay(textCallback): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:366

If the “togglePoopDisplay” function is called, text will be drawn on the screen next to each poop. Use this function to specify a callback function that returns the string that should be drawn.

Once the function is set, the library will call it automatically on every frame. For this reason, you typically only need to set the function once at the beginning of your mod.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

(poop) => string

void

setDoorDisplay(textCallback): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:383

If the “toggleDoorDisplay” function is called, text will be drawn on the screen next to each door. Use this function to specify a callback function that returns the string that should be drawn.

Once the function is set, the library will call it automatically on every frame. For this reason, you typically only need to set the function once at the beginning of your mod.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

(door) => string

void

setPressurePlateDisplay(textCallback): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:400

If the “togglePressurePlateDisplay” function is called, text will be drawn on the screen next to each pressure plate. Use this function to specify a callback function that returns the string that should be drawn.

Once the function is set, the library will call it automatically on every frame. For this reason, you typically only need to set the function once at the beginning of your mod.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

(pressurePlate) => string

void

togglePlayerDisplay(force?): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:417

Toggles the debug display for players, which will draw text on the screen next to each player.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

boolean

Optional. A boolean that represents the value to force the display to. For example, you can specify true to always make the display turn on, regardless of whether it is already on.

void

toggleTearDisplay(force?): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:432

Toggles the debug display for tears, which will draw text on the screen next to each tear.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY. *

boolean

Optional. A boolean that represents the value to force the display to. For example, you can specify true to always make the display turn on, regardless of whether it is already on.

void

toggleFamiliarDisplay(force?): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:448

Toggles the debug display for familiars, which will draw text on the screen next to each familiar.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

boolean

Optional. A boolean that represents the value to force the display to. For example, you can specify true to always make the display turn on, regardless of whether it is already on.

void

toggleBombDisplay(force?): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:463

Toggles the debug display for bombs, which will draw text on the screen next to each bomb.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

boolean

Optional. A boolean that represents the value to force the display to. For example, you can specify true to always make the display turn on, regardless of whether it is already on.

void

togglePickupDisplay(force?): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:478

Toggles the debug display for pickups, which will draw text on the screen next to each pickup.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

boolean

Optional. A boolean that represents the value to force the display to. For example, you can specify true to always make the display turn on, regardless of whether it is already on.

void

toggleSlotDisplay(force?): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:493

Toggles the debug display for slots, which will draw text on the screen next to each slot.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

boolean

Optional. A boolean that represents the value to force the display to. For example, you can specify true to always make the display turn on, regardless of whether it is already on.

void

toggleLaserDisplay(force?): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:508

Toggles the debug display for lasers, which will draw text on the screen next to each laser.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

boolean

Optional. A boolean that represents the value to force the display to. For example, you can specify true to always make the display turn on, regardless of whether it is already on.

void

toggleKnifeDisplay(force?): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:523

Toggles the debug display for knives, which will draw text on the screen next to each knife.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

boolean

Optional. A boolean that represents the value to force the display to. For example, you can specify true to always make the display turn on, regardless of whether it is already on.

void

toggleProjectileDisplay(force?): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:539

Toggles the debug display for projectiles, which will draw text on the screen next to each projectile.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

boolean

Optional. A boolean that represents the value to force the display to. For example, you can specify true to always make the display turn on, regardless of whether it is already on.

void

toggleEffectDisplay(force?): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:554

Toggles the debug display for effects, which will draw text on the screen next to each effect.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

boolean

Optional. A boolean that represents the value to force the display to. For example, you can specify true to always make the display turn on, regardless of whether it is already on.

void

toggleNPCDisplay(force?): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:569

Toggles the debug display for NPCs, which will draw text on the screen next to each NPC.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

boolean

Optional. A boolean that represents the value to force the display to. For example, you can specify true to always make the display turn on, regardless of whether it is already on.

void

toggleRockDisplay(force?): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:584

Toggles the debug display for rocks, which will draw text on the screen next to each rock.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

boolean

Optional. A boolean that represents the value to force the display to. For example, you can specify true to always make the display turn on, regardless of whether it is already on.

void

togglePitDisplay(force?): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:599

Toggles the debug display for pits, which will draw text on the screen next to each pit.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

boolean

Optional. A boolean that represents the value to force the display to. For example, you can specify true to always make the display turn on, regardless of whether it is already on.

void

toggleSpikesDisplay(force?): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:614

Toggles the debug display for spikes, which will draw text on the screen next to each spike.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

boolean

Optional. A boolean that represents the value to force the display to. For example, you can specify true to always make the display turn on, regardless of whether it is already on.

void

toggleTNTDisplay(force?): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:629

Toggles the debug display for TNT, which will draw text on the screen next to each TNT.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

boolean

Optional. A boolean that represents the value to force the display to. For example, you can specify true to always make the display turn on, regardless of whether it is already on.

void

togglePoopDisplay(force?): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:644

Toggles the debug display for poops, which will draw text on the screen next to each poop.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

boolean

Optional. A boolean that represents the value to force the display to. For example, you can specify true to always make the display turn on, regardless of whether it is already on.

void

toggleDoorDisplay(force?): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:659

Toggles the debug display for doors, which will draw text on the screen next to each door.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

boolean

Optional. A boolean that represents the value to force the display to. For example, you can specify true to always make the display turn on, regardless of whether it is already on.

void

togglePressurePlateDisplay(force?): void

Defined in: packages/isaacscript-common/src/classes/features/other/DebugDisplay.ts:675

Toggles the debug display for pressure plates, which will draw text on the screen next to each pressure plate.

In order to use this function, you must upgrade your mod with ISCFeature.DEBUG_DISPLAY.

boolean

Optional. A boolean that represents the value to force the display to. For example, you can specify true to always make the display turn on, regardless of whether it is already on.

void