mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-26 17:16:20 +00:00
Added: ARKPACSBorders to enable/disable the display of collisions by user
--HG-- branch : compatibility-develop
This commit is contained in:
parent
9e73cd8d22
commit
1a4c020e56
2 changed files with 18 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue