mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-29 15:16:05 +00:00
Added: ARKPACSBorders to enable/disable the display of collisions by user
This commit is contained in:
parent
512d300741
commit
2a7615b2f4
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 WantProfiling; // Do we want a CPU profile?
|
||||||
extern bool WantProfilingVBLock; // Do we want a VBLock profile?
|
extern bool WantProfilingVBLock; // Do we want a VBLock profile?
|
||||||
extern bool PACSBorders;
|
extern bool PACSBorders;
|
||||||
|
extern bool ARKPACSBorders;
|
||||||
extern bool DebugClusters;
|
extern bool DebugClusters;
|
||||||
extern bool SoundBox;
|
extern bool SoundBox;
|
||||||
extern uint8 ShowInfos;
|
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
|
#if !FINAL_VERSION
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
class CAHProfile : public IActionHandler
|
class CAHProfile : public IActionHandler
|
||||||
|
|
|
@ -271,6 +271,7 @@ CTimedFXManager::TDebugDisplayMode ShowTimedFXMode = CTimedFXManager::NoText;
|
||||||
|
|
||||||
// DEBUG
|
// DEBUG
|
||||||
bool PACSBorders = false;
|
bool PACSBorders = false;
|
||||||
|
bool ARKPACSBorders = false;
|
||||||
bool DebugClusters = false;
|
bool DebugClusters = false;
|
||||||
CVector LastDebugClusterCameraThirdPersonStart= CVector::Null;
|
CVector LastDebugClusterCameraThirdPersonStart= CVector::Null;
|
||||||
CVector LastDebugClusterCameraThirdPersonEnd= CVector::Null;
|
CVector LastDebugClusterCameraThirdPersonEnd= CVector::Null;
|
||||||
|
@ -1793,6 +1794,12 @@ bool mainLoop()
|
||||||
displayPACSPrimitive();
|
displayPACSPrimitive();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Display PACS borders only (for ARK).
|
||||||
|
if (ARKPACSBorders)
|
||||||
|
{
|
||||||
|
displayPACSPrimitive();
|
||||||
|
}
|
||||||
|
|
||||||
// display Sound box
|
// display Sound box
|
||||||
if (SoundBox)
|
if (SoundBox)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue