mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
WIP of marking active scene in the scenetree
This commit is contained in:
parent
80eb4ab2ba
commit
27cf3466c3
2 changed files with 38 additions and 5 deletions
|
|
@ -540,8 +540,14 @@ void GuiTreeViewCtrl::Item::getDisplayText(U32 bufLen, char *buf)
|
|||
if( mState.test( ShowObjectName ) )
|
||||
{
|
||||
S32 n = 0;
|
||||
if( hasObjectName )
|
||||
n = dSprintf( ptr, len, "%s", pObjName );
|
||||
if (hasObjectName)
|
||||
{
|
||||
//If it's been marked, reflect that
|
||||
if (mState.test(Item::Marked))
|
||||
n = dSprintf(ptr, len, "*%s", pObjName);
|
||||
else
|
||||
n = dSprintf(ptr, len, "%s", pObjName);
|
||||
}
|
||||
else if( mState.test( ShowClassNameForUnnamed ) )
|
||||
n = dSprintf( ptr, len, "%s", pClassName );
|
||||
|
||||
|
|
@ -549,8 +555,13 @@ void GuiTreeViewCtrl::Item::getDisplayText(U32 bufLen, char *buf)
|
|||
len -= n;
|
||||
}
|
||||
|
||||
if( hasInternalName && mState.test( ShowInternalName ) )
|
||||
dSprintf( ptr, len, " [%s]", pInternalName );
|
||||
if (hasInternalName && mState.test(ShowInternalName))
|
||||
{
|
||||
if (mState.test(Item::Marked))
|
||||
dSprintf(ptr, len, " *[%s]", pInternalName);
|
||||
else
|
||||
dSprintf(ptr, len, " [%s]", pObjName);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue