Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/session/developer_overlay.js
Show First 20 Lines • Show All 102 Lines • ▼ Show 20 Lines | return [ | ||||
}, | }, | ||||
}, | }, | ||||
{ | { | ||||
"label": translate("Hierarchical pathfinder overlay"), | "label": translate("Hierarchical pathfinder overlay"), | ||||
"onPress": checked => { | "onPress": checked => { | ||||
Engine.GuiInterfaceCall("SetPathfinderHierDebugOverlay", checked); | Engine.GuiInterfaceCall("SetPathfinderHierDebugOverlay", checked); | ||||
}, | }, | ||||
}, | }, | ||||
{ | |||||
"label": translate("Enable culling"), | |||||
"onPress": checked => { | |||||
Engine.GameView_SetCullingEnabled(checked); | |||||
}, | |||||
"checked": () => Engine.GameView_GetCullingEnabled(), | |||||
}, | |||||
{ | |||||
"label": translate("Lock cull camera"), | |||||
"onPress": checked => { | |||||
Engine.GameView_SetLockCullCameraEnabled(checked); | |||||
}, | |||||
"checked": () => Engine.GameView_GetLockCullCameraEnabled(), | |||||
}, | |||||
{ | |||||
"label": translate("Display camera frustum"), | |||||
"onPress": checked => { | |||||
Engine.Renderer_SetDisplayFrustumEnabled(checked); | |||||
}, | |||||
"checked": () => Engine.Renderer_GetDisplayFrustumEnabled(), | |||||
}, | |||||
]; | ]; | ||||
}; | }; | ||||
DeveloperOverlay.prototype.layout = function() | DeveloperOverlay.prototype.layout = function() | ||||
{ | { | ||||
for (let body of Engine.GetGUIObjectByName("dev_commands").children) | for (let body of Engine.GetGUIObjectByName("dev_commands").children) | ||||
body.hidden = true; | body.hidden = true; | ||||
▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator