mirror of
https://github.com/SWG-Source/client-tools.git
synced 2026-01-16 23:04:27 -05:00
Enable Warning UI Window & Obj Attribute Debug Dump
This commit is contained in:
@@ -819,8 +819,8 @@ bool ObjectAttributeManager::formatDescriptionIfNewer (const NetworkId & id, Uni
|
||||
if (!formatAttributesIfNewer(id, attribs, minimalAttribs, frame, tooltips))
|
||||
return false;
|
||||
|
||||
#if PRODUCTION == 0
|
||||
if (obj && CuiPreferences::getDebugExamine ())
|
||||
|
||||
if (obj && CuiPreferences::getDebugExamine() && Game::getPlayerObject()->isAdmin())
|
||||
{
|
||||
static Unicode::String debugInfo;
|
||||
debugInfo.clear ();
|
||||
@@ -828,7 +828,6 @@ bool ObjectAttributeManager::formatDescriptionIfNewer (const NetworkId & id, Uni
|
||||
debugInfo.append (1, '\n');
|
||||
attribs = debugInfo + attribs;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (obj)
|
||||
{
|
||||
|
||||
@@ -451,7 +451,6 @@ void CuiManager::install ()
|
||||
uiManager->SetRootPage (rootPage);
|
||||
|
||||
//-- initialize warning display
|
||||
#if PRODUCTION == 0
|
||||
bool const displayWarnings = ConfigFile::getKeyBool("ClientUserInterface", "displayWarnings", false);
|
||||
if (displayWarnings)
|
||||
{
|
||||
@@ -466,7 +465,6 @@ void CuiManager::install ()
|
||||
SetWarningCallback(globalWarningCallback);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
REPORT_LOG_PRINT (s_debugReportInstallVerbose, ("CuiManager::install CuiManagerManager::install\n"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user