Added: ARKPACSBorders to enable/disable the display of collisions by user

This commit is contained in:
ulukyn 2016-12-10 22:05:38 +01:00
parent 512d300741
commit 2a7615b2f4
2 changed files with 18 additions and 0 deletions

View file

@ -42,6 +42,7 @@ extern bool Render;
extern bool WantProfiling; // Do we want a CPU profile?
extern bool WantProfilingVBLock; // Do we want a VBLock profile?
extern bool PACSBorders;
extern bool ARKPACSBorders;
extern bool DebugClusters;
extern bool SoundBox;
extern uint8 ShowInfos;
@ -92,6 +93,16 @@ REGISTER_ACTION_HANDLER (CAHDisplayInfos, "display_infos");
* *
***********************************************************************************************************/
// ------------------------------------------------------------------------------------------------
class CAHToggleARKPACSBorders : public IActionHandler
{
virtual void execute (CCtrlBase * /* pCaller */, const string &/* Params */)
{
ARKPACSBorders = !ARKPACSBorders;
}
};
REGISTER_ACTION_HANDLER (CAHToggleARKPACSBorders, "ark_pacs_borders");
#if !FINAL_VERSION
// ------------------------------------------------------------------------------------------------
class CAHProfile : public IActionHandler

View file

@ -271,6 +271,7 @@ CTimedFXManager::TDebugDisplayMode ShowTimedFXMode = CTimedFXManager::NoText;
// DEBUG
bool PACSBorders = false;
bool ARKPACSBorders = false;
bool DebugClusters = false;
CVector LastDebugClusterCameraThirdPersonStart= CVector::Null;
CVector LastDebugClusterCameraThirdPersonEnd= CVector::Null;
@ -1793,6 +1794,12 @@ bool mainLoop()
displayPACSPrimitive();
}
// Display PACS borders only (for ARK).
if (ARKPACSBorders)
{
displayPACSPrimitive();
}
// display Sound box
if (SoundBox)
{