mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-23 18:45:48 -04:00
55da9eb2ef
* This is useful to check the proper set up of objects and check the position of points of objects during the game.
41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
namespace gdjs {
|
|
export namespace evtTools {
|
|
/**
|
|
* The namespace containing tools to interact with the debugger.
|
|
* @namespace
|
|
*/
|
|
export namespace debuggerTools {
|
|
/**
|
|
* Stop the game execution.
|
|
* @param runtimeScene - The current scene.
|
|
*/
|
|
export const pause = function (runtimeScene: gdjs.RuntimeScene) {
|
|
runtimeScene.getGame().pause(true);
|
|
};
|
|
|
|
/**
|
|
* Enable or disable the debug draw.
|
|
* @param runtimeScene - The current scene.
|
|
* @param enableDebugDraw - true to enable the debug draw, false to disable it.
|
|
* @param showHiddenInstances - true to apply the debug draw to hidden objects.
|
|
* @param showPointsNames - true to show point names.
|
|
* @param showCustomPoints - true to show custom points of Sprite objects.
|
|
*/
|
|
export const enableDebugDraw = function (
|
|
runtimeScene: gdjs.RuntimeScene,
|
|
enableDebugDraw: boolean,
|
|
showHiddenInstances: boolean,
|
|
showPointsNames: boolean,
|
|
showCustomPoints: boolean
|
|
) {
|
|
runtimeScene.enableDebugDraw(
|
|
enableDebugDraw,
|
|
showHiddenInstances,
|
|
showPointsNames,
|
|
showCustomPoints
|
|
);
|
|
};
|
|
}
|
|
}
|
|
}
|