mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Merge pull request #1923 from elfprince13/stringTableEmptyString
String table empty string
This commit is contained in:
commit
7185d9664d
57 changed files with 1732 additions and 1732 deletions
|
|
@ -325,7 +325,7 @@ public:
|
||||||
mUseDebugInfo = false;
|
mUseDebugInfo = false;
|
||||||
mDebugBoxHeight = 1.0f;
|
mDebugBoxHeight = 1.0f;
|
||||||
mSeed = 1376312589;
|
mSeed = 1376312589;
|
||||||
mFoliageFile = StringTable->insert("");
|
mFoliageFile = StringTable->EmptyString();
|
||||||
mFoliageTexture = GFXTexHandle();
|
mFoliageTexture = GFXTexHandle();
|
||||||
mFoliageCount = 10;
|
mFoliageCount = 10;
|
||||||
mFoliageRetries = 100;
|
mFoliageRetries = 100;
|
||||||
|
|
|
||||||
|
|
@ -153,7 +153,7 @@ public:
|
||||||
{
|
{
|
||||||
// Set Defaults.
|
// Set Defaults.
|
||||||
mSeed = 1376312589;
|
mSeed = 1376312589;
|
||||||
mShapeFile = StringTable->insert("");
|
mShapeFile = StringTable->EmptyString();
|
||||||
mShapeCount = 10;
|
mShapeCount = 10;
|
||||||
mShapeRetries = 100;
|
mShapeRetries = 100;
|
||||||
mInnerRadiusX = 0;
|
mInnerRadiusX = 0;
|
||||||
|
|
|
||||||
|
|
@ -129,10 +129,10 @@ PrecipitationData::PrecipitationData()
|
||||||
{
|
{
|
||||||
soundProfile = NULL;
|
soundProfile = NULL;
|
||||||
|
|
||||||
mDropName = StringTable->insert("");
|
mDropName = StringTable->EmptyString();
|
||||||
mDropShaderName = StringTable->insert("");
|
mDropShaderName = StringTable->EmptyString();
|
||||||
mSplashName = StringTable->insert("");
|
mSplashName = StringTable->EmptyString();
|
||||||
mSplashShaderName = StringTable->insert("");
|
mSplashShaderName = StringTable->EmptyString();
|
||||||
|
|
||||||
mDropsPerSide = 4;
|
mDropsPerSide = 4;
|
||||||
mSplashesPerSide = 2;
|
mSplashesPerSide = 2;
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ RibbonData::RibbonData()
|
||||||
mUseFadeOut = false;
|
mUseFadeOut = false;
|
||||||
mFadeAwayStep = 0.032f;
|
mFadeAwayStep = 0.032f;
|
||||||
segmentsPerUpdate = 1;
|
segmentsPerUpdate = 1;
|
||||||
mMatName = StringTable->insert("");
|
mMatName = StringTable->EmptyString();
|
||||||
mTileScale = 1.0f;
|
mTileScale = 1.0f;
|
||||||
mFixedTexcoords = false;
|
mFixedTexcoords = false;
|
||||||
mSegmentSkipAmount = 0;
|
mSegmentSkipAmount = 0;
|
||||||
|
|
|
||||||
|
|
@ -225,7 +225,7 @@ ConsoleDocClass( WayPoint,
|
||||||
|
|
||||||
WayPoint::WayPoint()
|
WayPoint::WayPoint()
|
||||||
{
|
{
|
||||||
mName = StringTable->insert("");
|
mName = StringTable->EmptyString();
|
||||||
}
|
}
|
||||||
|
|
||||||
void WayPoint::setHidden(bool hidden)
|
void WayPoint::setHidden(bool hidden)
|
||||||
|
|
@ -256,7 +256,7 @@ void WayPoint::inspectPostApply()
|
||||||
{
|
{
|
||||||
Parent::inspectPostApply();
|
Parent::inspectPostApply();
|
||||||
if(!mName || !mName[0])
|
if(!mName || !mName[0])
|
||||||
mName = StringTable->insert("");
|
mName = StringTable->EmptyString();
|
||||||
setMaskBits(UpdateNameMask|UpdateTeamMask);
|
setMaskBits(UpdateNameMask|UpdateTeamMask);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -527,7 +527,7 @@ ConsoleDocClass( CameraBookmark,
|
||||||
|
|
||||||
CameraBookmark::CameraBookmark()
|
CameraBookmark::CameraBookmark()
|
||||||
{
|
{
|
||||||
mName = StringTable->insert("");
|
mName = StringTable->EmptyString();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CameraBookmark::onAdd()
|
bool CameraBookmark::onAdd()
|
||||||
|
|
@ -571,7 +571,7 @@ void CameraBookmark::inspectPostApply()
|
||||||
{
|
{
|
||||||
Parent::inspectPostApply();
|
Parent::inspectPostApply();
|
||||||
if(!mName || !mName[0])
|
if(!mName || !mName[0])
|
||||||
mName = StringTable->insert("");
|
mName = StringTable->EmptyString();
|
||||||
setMaskBits(UpdateNameMask);
|
setMaskBits(UpdateNameMask);
|
||||||
|
|
||||||
if( isMethod("onInspectPostApply") )
|
if( isMethod("onInspectPostApply") )
|
||||||
|
|
|
||||||
|
|
@ -257,15 +257,15 @@ PlayerData::PlayerData()
|
||||||
firstPersonShadows = false;
|
firstPersonShadows = false;
|
||||||
|
|
||||||
// Used for third person image rendering
|
// Used for third person image rendering
|
||||||
imageAnimPrefix = StringTable->insert("");
|
imageAnimPrefix = StringTable->EmptyString();
|
||||||
|
|
||||||
allowImageStateAnimation = false;
|
allowImageStateAnimation = false;
|
||||||
|
|
||||||
// Used for first person image rendering
|
// Used for first person image rendering
|
||||||
imageAnimPrefixFP = StringTable->insert("");
|
imageAnimPrefixFP = StringTable->EmptyString();
|
||||||
for (U32 i=0; i<ShapeBase::MaxMountedImages; ++i)
|
for (U32 i=0; i<ShapeBase::MaxMountedImages; ++i)
|
||||||
{
|
{
|
||||||
shapeNameFP[i] = StringTable->insert("");
|
shapeNameFP[i] = StringTable->EmptyString();
|
||||||
mCRCFP[i] = 0;
|
mCRCFP[i] = 0;
|
||||||
mValidShapeFP[i] = false;
|
mValidShapeFP[i] = false;
|
||||||
}
|
}
|
||||||
|
|
@ -418,7 +418,7 @@ PlayerData::PlayerData()
|
||||||
|
|
||||||
jumpTowardsNormal = true;
|
jumpTowardsNormal = true;
|
||||||
|
|
||||||
physicsPlayerType = StringTable->insert("");
|
physicsPlayerType = StringTable->EmptyString();
|
||||||
|
|
||||||
dMemset( actionList, 0, sizeof(actionList) );
|
dMemset( actionList, 0, sizeof(actionList) );
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -152,13 +152,13 @@ ShapeBaseData::ShapeBaseData()
|
||||||
shadowMaxVisibleDistance( 80.0f ),
|
shadowMaxVisibleDistance( 80.0f ),
|
||||||
shadowProjectionDistance( 10.0f ),
|
shadowProjectionDistance( 10.0f ),
|
||||||
shadowSphereAdjust( 1.0f ),
|
shadowSphereAdjust( 1.0f ),
|
||||||
shapeName( StringTable->insert("") ),
|
shapeName( StringTable->EmptyString() ),
|
||||||
cloakTexName( StringTable->insert("") ),
|
cloakTexName( StringTable->EmptyString() ),
|
||||||
cubeDescId( 0 ),
|
cubeDescId( 0 ),
|
||||||
reflectorDesc( NULL ),
|
reflectorDesc( NULL ),
|
||||||
debris( NULL ),
|
debris( NULL ),
|
||||||
debrisID( 0 ),
|
debrisID( 0 ),
|
||||||
debrisShapeName( StringTable->insert("") ),
|
debrisShapeName( StringTable->EmptyString() ),
|
||||||
explosion( NULL ),
|
explosion( NULL ),
|
||||||
explosionID( 0 ),
|
explosionID( 0 ),
|
||||||
underwaterExplosion( NULL ),
|
underwaterExplosion( NULL ),
|
||||||
|
|
@ -1042,7 +1042,7 @@ bool ShapeBase::onAdd()
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if(mDataBlock->cloakTexName != StringTable->insert(""))
|
if(mDataBlock->cloakTexName != StringTable->EmptyString())
|
||||||
mCloakTexture = TextureHandle(mDataBlock->cloakTexName, MeshTexture, false);
|
mCloakTexture = TextureHandle(mDataBlock->cloakTexName, MeshTexture, false);
|
||||||
*/
|
*/
|
||||||
// Accumulation and environment mapping
|
// Accumulation and environment mapping
|
||||||
|
|
|
||||||
|
|
@ -504,13 +504,13 @@ const char* SimXMLDocument::elementValue()
|
||||||
{
|
{
|
||||||
if(m_paNode.empty())
|
if(m_paNode.empty())
|
||||||
{
|
{
|
||||||
return StringTable->insert("");
|
return StringTable->EmptyString();
|
||||||
}
|
}
|
||||||
const S32 iLastElement = m_paNode.size() - 1;
|
const S32 iLastElement = m_paNode.size() - 1;
|
||||||
TiXmlElement* pNode = m_paNode[iLastElement];
|
TiXmlElement* pNode = m_paNode[iLastElement];
|
||||||
if(!pNode)
|
if(!pNode)
|
||||||
{
|
{
|
||||||
return StringTable->insert("");
|
return StringTable->EmptyString();
|
||||||
}
|
}
|
||||||
|
|
||||||
return pNode->Value();
|
return pNode->Value();
|
||||||
|
|
@ -545,18 +545,18 @@ const char* SimXMLDocument::attribute(const char* rAttribute)
|
||||||
{
|
{
|
||||||
if(m_paNode.empty())
|
if(m_paNode.empty())
|
||||||
{
|
{
|
||||||
return StringTable->insert("");
|
return StringTable->EmptyString();
|
||||||
}
|
}
|
||||||
const S32 iLastElement = m_paNode.size() - 1;
|
const S32 iLastElement = m_paNode.size() - 1;
|
||||||
TiXmlElement* pNode = m_paNode[iLastElement];
|
TiXmlElement* pNode = m_paNode[iLastElement];
|
||||||
if(!pNode)
|
if(!pNode)
|
||||||
{
|
{
|
||||||
return StringTable->insert("");
|
return StringTable->EmptyString();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!pNode->Attribute(rAttribute))
|
if(!pNode->Attribute(rAttribute))
|
||||||
{
|
{
|
||||||
return StringTable->insert("");
|
return StringTable->EmptyString();
|
||||||
}
|
}
|
||||||
|
|
||||||
return pNode->Attribute(rAttribute);
|
return pNode->Attribute(rAttribute);
|
||||||
|
|
@ -629,20 +629,20 @@ const char* SimXMLDocument::firstAttribute()
|
||||||
// Get the current element
|
// Get the current element
|
||||||
if(m_paNode.empty())
|
if(m_paNode.empty())
|
||||||
{
|
{
|
||||||
return StringTable->insert("");
|
return StringTable->EmptyString();
|
||||||
}
|
}
|
||||||
const S32 iLastElement = m_paNode.size() - 1;
|
const S32 iLastElement = m_paNode.size() - 1;
|
||||||
TiXmlElement* pNode = m_paNode[iLastElement];
|
TiXmlElement* pNode = m_paNode[iLastElement];
|
||||||
if(!pNode)
|
if(!pNode)
|
||||||
{
|
{
|
||||||
return StringTable->insert("");
|
return StringTable->EmptyString();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Gets its first attribute, if any
|
// Gets its first attribute, if any
|
||||||
m_CurrentAttribute = pNode->FirstAttribute();
|
m_CurrentAttribute = pNode->FirstAttribute();
|
||||||
if(!m_CurrentAttribute)
|
if(!m_CurrentAttribute)
|
||||||
{
|
{
|
||||||
return StringTable->insert("");
|
return StringTable->EmptyString();
|
||||||
}
|
}
|
||||||
|
|
||||||
return m_CurrentAttribute->Name();
|
return m_CurrentAttribute->Name();
|
||||||
|
|
@ -666,20 +666,20 @@ const char* SimXMLDocument::lastAttribute()
|
||||||
// Get the current element
|
// Get the current element
|
||||||
if(m_paNode.empty())
|
if(m_paNode.empty())
|
||||||
{
|
{
|
||||||
return StringTable->insert("");
|
return StringTable->EmptyString();
|
||||||
}
|
}
|
||||||
const S32 iLastElement = m_paNode.size() - 1;
|
const S32 iLastElement = m_paNode.size() - 1;
|
||||||
TiXmlElement* pNode = m_paNode[iLastElement];
|
TiXmlElement* pNode = m_paNode[iLastElement];
|
||||||
if(!pNode)
|
if(!pNode)
|
||||||
{
|
{
|
||||||
return StringTable->insert("");
|
return StringTable->EmptyString();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Gets its last attribute, if any
|
// Gets its last attribute, if any
|
||||||
m_CurrentAttribute = pNode->LastAttribute();
|
m_CurrentAttribute = pNode->LastAttribute();
|
||||||
if(!m_CurrentAttribute)
|
if(!m_CurrentAttribute)
|
||||||
{
|
{
|
||||||
return StringTable->insert("");
|
return StringTable->EmptyString();
|
||||||
}
|
}
|
||||||
|
|
||||||
return m_CurrentAttribute->Name();
|
return m_CurrentAttribute->Name();
|
||||||
|
|
@ -703,14 +703,14 @@ const char* SimXMLDocument::nextAttribute()
|
||||||
{
|
{
|
||||||
if(!m_CurrentAttribute)
|
if(!m_CurrentAttribute)
|
||||||
{
|
{
|
||||||
return StringTable->insert("");
|
return StringTable->EmptyString();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Gets its next attribute, if any
|
// Gets its next attribute, if any
|
||||||
m_CurrentAttribute = m_CurrentAttribute->Next();
|
m_CurrentAttribute = m_CurrentAttribute->Next();
|
||||||
if(!m_CurrentAttribute)
|
if(!m_CurrentAttribute)
|
||||||
{
|
{
|
||||||
return StringTable->insert("");
|
return StringTable->EmptyString();
|
||||||
}
|
}
|
||||||
|
|
||||||
return m_CurrentAttribute->Name();
|
return m_CurrentAttribute->Name();
|
||||||
|
|
@ -734,14 +734,14 @@ const char* SimXMLDocument::prevAttribute()
|
||||||
{
|
{
|
||||||
if(!m_CurrentAttribute)
|
if(!m_CurrentAttribute)
|
||||||
{
|
{
|
||||||
return StringTable->insert("");
|
return StringTable->EmptyString();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Gets its next attribute, if any
|
// Gets its next attribute, if any
|
||||||
m_CurrentAttribute = m_CurrentAttribute->Previous();
|
m_CurrentAttribute = m_CurrentAttribute->Previous();
|
||||||
if(!m_CurrentAttribute)
|
if(!m_CurrentAttribute)
|
||||||
{
|
{
|
||||||
return StringTable->insert("");
|
return StringTable->EmptyString();
|
||||||
}
|
}
|
||||||
|
|
||||||
return m_CurrentAttribute->Name();
|
return m_CurrentAttribute->Name();
|
||||||
|
|
|
||||||
|
|
@ -411,7 +411,7 @@ ObjectDeclNode *ObjectDeclNode::alloc( S32 lineNumber, ExprNode *classNameExpr,
|
||||||
if(parentObject)
|
if(parentObject)
|
||||||
ret->parentObject = parentObject;
|
ret->parentObject = parentObject;
|
||||||
else
|
else
|
||||||
ret->parentObject = StringTable->insert("");
|
ret->parentObject = StringTable->EmptyString();
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -435,7 +435,7 @@ bool CodeBlock::read(StringTableEntry fileName, Stream &st)
|
||||||
if(offset < globalSize)
|
if(offset < globalSize)
|
||||||
ste = StringTable->insert(globalStrings + offset);
|
ste = StringTable->insert(globalStrings + offset);
|
||||||
else
|
else
|
||||||
ste = StringTable->insert("");
|
ste = StringTable->EmptyString();
|
||||||
U32 count;
|
U32 count;
|
||||||
st.read(&count);
|
st.read(&count);
|
||||||
while(count--)
|
while(count--)
|
||||||
|
|
|
||||||
|
|
@ -41,8 +41,8 @@ ConsoleDocClass( FieldBrushObject,
|
||||||
FieldBrushObject::FieldBrushObject()
|
FieldBrushObject::FieldBrushObject()
|
||||||
{
|
{
|
||||||
// Reset Description.
|
// Reset Description.
|
||||||
mDescription = StringTable->insert("");
|
mDescription = StringTable->EmptyString();
|
||||||
mSortName = StringTable->insert("");
|
mSortName = StringTable->EmptyString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -328,7 +328,7 @@ void PersistenceManager::parseObject()
|
||||||
|
|
||||||
if (mParser.tokenICmp(")"))
|
if (mParser.tokenICmp(")"))
|
||||||
{
|
{
|
||||||
mCurrentObject->name = StringTable->insert("");
|
mCurrentObject->name = StringTable->EmptyString();
|
||||||
|
|
||||||
mCurrentObject->nameLine = mParser.getCurrentLine();
|
mCurrentObject->nameLine = mParser.getCurrentLine();
|
||||||
mCurrentObject->namePosition = mParser.getTokenLineOffset();
|
mCurrentObject->namePosition = mParser.getTokenLineOffset();
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@ ConsoleDocClass( GuiIconButtonCtrl,
|
||||||
|
|
||||||
GuiIconButtonCtrl::GuiIconButtonCtrl()
|
GuiIconButtonCtrl::GuiIconButtonCtrl()
|
||||||
{
|
{
|
||||||
mBitmapName = StringTable->insert("");
|
mBitmapName = StringTable->EmptyString();
|
||||||
mTextLocation = TextLocLeft;
|
mTextLocation = TextLocLeft;
|
||||||
mIconLocation = IconLocLeft;
|
mIconLocation = IconLocLeft;
|
||||||
mTextMargin = 4;
|
mTextMargin = 4;
|
||||||
|
|
@ -94,7 +94,7 @@ GuiIconButtonCtrl::GuiIconButtonCtrl()
|
||||||
mFitBitmapToButton = false;
|
mFitBitmapToButton = false;
|
||||||
mMakeIconSquare = false;
|
mMakeIconSquare = false;
|
||||||
|
|
||||||
mErrorBitmapName = StringTable->insert("");
|
mErrorBitmapName = StringTable->EmptyString();
|
||||||
mErrorTextureHandle = NULL;
|
mErrorTextureHandle = NULL;
|
||||||
|
|
||||||
mAutoSize = false;
|
mAutoSize = false;
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ ConsoleDocClass( GuiToggleButtonCtrl,
|
||||||
GuiToggleButtonCtrl::GuiToggleButtonCtrl()
|
GuiToggleButtonCtrl::GuiToggleButtonCtrl()
|
||||||
{
|
{
|
||||||
setExtent(140, 30);
|
setExtent(140, 30);
|
||||||
mButtonText = StringTable->insert("");
|
mButtonText = StringTable->EmptyString();
|
||||||
mStateOn = false;
|
mStateOn = false;
|
||||||
mButtonType = ButtonTypeCheck;
|
mButtonType = ButtonTypeCheck;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ ConsoleDocClass( GuiToolboxButtonCtrl,
|
||||||
//-------------------------------------
|
//-------------------------------------
|
||||||
GuiToolboxButtonCtrl::GuiToolboxButtonCtrl()
|
GuiToolboxButtonCtrl::GuiToolboxButtonCtrl()
|
||||||
{
|
{
|
||||||
mNormalBitmapName = StringTable->insert("");
|
mNormalBitmapName = StringTable->EmptyString();
|
||||||
mLoweredBitmapName = StringTable->insert("sceneeditor/client/images/buttondown");
|
mLoweredBitmapName = StringTable->insert("sceneeditor/client/images/buttondown");
|
||||||
mHoverBitmapName = StringTable->insert("sceneeditor/client/images/buttonup");
|
mHoverBitmapName = StringTable->insert("sceneeditor/client/images/buttonup");
|
||||||
setMinExtent(Point2I(16,16));
|
setMinExtent(Point2I(16,16));
|
||||||
|
|
|
||||||
|
|
@ -50,8 +50,8 @@ GuiFormCtrl::GuiFormCtrl()
|
||||||
mCaption = "[none]";
|
mCaption = "[none]";
|
||||||
mUseSmallCaption = false;
|
mUseSmallCaption = false;
|
||||||
|
|
||||||
mContentLibrary = StringTable->insert("");
|
mContentLibrary = StringTable->EmptyString();
|
||||||
mContent = StringTable->insert("");
|
mContent = StringTable->EmptyString();
|
||||||
|
|
||||||
mCanSaveFieldDictionary = true;
|
mCanSaveFieldDictionary = true;
|
||||||
mIsContainer = true;
|
mIsContainer = true;
|
||||||
|
|
@ -213,7 +213,7 @@ bool GuiFormCtrl::resize(const Point2I &newPosition, const Point2I &newExtent)
|
||||||
static char buf[256];
|
static char buf[256];
|
||||||
|
|
||||||
mUseSmallCaption = true;
|
mUseSmallCaption = true;
|
||||||
mSmallCaption = StringTable->insert("");
|
mSmallCaption = StringTable->EmptyString();
|
||||||
|
|
||||||
S32 strlen = dStrlen((const char*)mCaption);
|
S32 strlen = dStrlen((const char*)mCaption);
|
||||||
for(S32 i=strlen; i>=0; --i)
|
for(S32 i=strlen; i>=0; --i)
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ GuiPaneControl::GuiPaneControl()
|
||||||
mMouseOver = false;
|
mMouseOver = false;
|
||||||
mDepressed = false;
|
mDepressed = false;
|
||||||
mCaption = "A Pane";
|
mCaption = "A Pane";
|
||||||
mCaptionID = StringTable->insert("");
|
mCaptionID = StringTable->EmptyString();
|
||||||
mIsContainer = true;
|
mIsContainer = true;
|
||||||
|
|
||||||
mOriginalExtents.set(10,10);
|
mOriginalExtents.set(10,10);
|
||||||
|
|
|
||||||
|
|
@ -1512,7 +1512,7 @@ void GuiWindowCtrl::setCloseCommand(const char *newCmd)
|
||||||
if (newCmd)
|
if (newCmd)
|
||||||
mCloseCommand = StringTable->insert(newCmd);
|
mCloseCommand = StringTable->insert(newCmd);
|
||||||
else
|
else
|
||||||
mCloseCommand = StringTable->insert("");
|
mCloseCommand = StringTable->EmptyString();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ GuiGameListMenuCtrl::GuiGameListMenuCtrl()
|
||||||
VECTOR_SET_ASSOCIATION(mRows);
|
VECTOR_SET_ASSOCIATION(mRows);
|
||||||
|
|
||||||
// initialize the control callbacks
|
// initialize the control callbacks
|
||||||
mCallbackOnA = StringTable->insert("");
|
mCallbackOnA = StringTable->EmptyString();
|
||||||
mCallbackOnB = mCallbackOnA;
|
mCallbackOnB = mCallbackOnA;
|
||||||
mCallbackOnX = mCallbackOnA;
|
mCallbackOnX = mCallbackOnA;
|
||||||
mCallbackOnY = mCallbackOnA;
|
mCallbackOnY = mCallbackOnA;
|
||||||
|
|
@ -572,7 +572,7 @@ StringTableEntry GuiGameListMenuCtrl::getRowLabel(S32 rowIndex) const
|
||||||
if (! isValidRowIndex(rowIndex))
|
if (! isValidRowIndex(rowIndex))
|
||||||
{
|
{
|
||||||
// not a valid row index, don't do anything
|
// not a valid row index, don't do anything
|
||||||
return StringTable->insert("");
|
return StringTable->EmptyString();
|
||||||
}
|
}
|
||||||
return mRows[rowIndex]->mLabel;
|
return mRows[rowIndex]->mLabel;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1530,7 +1530,7 @@ void GuiListBoxCtrl::_mirror()
|
||||||
|
|
||||||
StringTableEntry GuiListBoxCtrl::_makeMirrorItemName( SimObject *inObj )
|
StringTableEntry GuiListBoxCtrl::_makeMirrorItemName( SimObject *inObj )
|
||||||
{
|
{
|
||||||
StringTableEntry outName = StringTable->insert("");
|
StringTableEntry outName = StringTable->EmptyString();
|
||||||
|
|
||||||
if ( mMakeNameCallback.isNotEmpty() )
|
if ( mMakeNameCallback.isNotEmpty() )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -251,7 +251,7 @@ GuiMLTextCtrl::GuiMLTextCtrl()
|
||||||
mIsEditCtrl( false ),
|
mIsEditCtrl( false ),
|
||||||
mCursorPosition( false ),
|
mCursorPosition( false ),
|
||||||
mMaxBufferSize( -1 ),
|
mMaxBufferSize( -1 ),
|
||||||
mInitialText( StringTable->insert("") ),
|
mInitialText( StringTable->EmptyString() ),
|
||||||
mSelectionActive( false ),
|
mSelectionActive( false ),
|
||||||
mSelectionStart( 0 ),
|
mSelectionStart( 0 ),
|
||||||
mSelectionEnd( 0 ),
|
mSelectionEnd( 0 ),
|
||||||
|
|
@ -267,7 +267,7 @@ GuiMLTextCtrl::GuiMLTextCtrl()
|
||||||
mFontList( NULL )
|
mFontList( NULL )
|
||||||
{
|
{
|
||||||
mActive = true;
|
mActive = true;
|
||||||
//mInitialText = StringTable->insert("");
|
//mInitialText = StringTable->EmptyString();
|
||||||
Sim::findObject("InputDeniedSound", mDeniedSound);
|
Sim::findObject("InputDeniedSound", mDeniedSound);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -277,7 +277,7 @@ GuiPopUpMenuCtrl::GuiPopUpMenuCtrl(void)
|
||||||
mRenderScrollInNA = false; // Added
|
mRenderScrollInNA = false; // Added
|
||||||
mBackgroundCancel = false; // Added
|
mBackgroundCancel = false; // Added
|
||||||
mReverseTextList = false; // Added - Don't reverse text list if displaying up
|
mReverseTextList = false; // Added - Don't reverse text list if displaying up
|
||||||
mBitmapName = StringTable->insert(""); // Added
|
mBitmapName = StringTable->EmptyString(); // Added
|
||||||
mBitmapBounds.set(16, 16); // Added
|
mBitmapBounds.set(16, 16); // Added
|
||||||
mIdMax = -1;
|
mIdMax = -1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -328,7 +328,7 @@ GuiPopUpMenuCtrlEx::GuiPopUpMenuCtrlEx(void)
|
||||||
mRenderScrollInNA = false; // Added
|
mRenderScrollInNA = false; // Added
|
||||||
mBackgroundCancel = false; // Added
|
mBackgroundCancel = false; // Added
|
||||||
mReverseTextList = false; // Added - Don't reverse text list if displaying up
|
mReverseTextList = false; // Added - Don't reverse text list if displaying up
|
||||||
mBitmapName = StringTable->insert(""); // Added
|
mBitmapName = StringTable->EmptyString(); // Added
|
||||||
mBitmapBounds.set(16, 16); // Added
|
mBitmapBounds.set(16, 16); // Added
|
||||||
mHotTrackItems = false;
|
mHotTrackItems = false;
|
||||||
mIdMax = -1;
|
mIdMax = -1;
|
||||||
|
|
|
||||||
|
|
@ -54,8 +54,8 @@ ConsoleDocClass( GuiTextCtrl,
|
||||||
GuiTextCtrl::GuiTextCtrl()
|
GuiTextCtrl::GuiTextCtrl()
|
||||||
{
|
{
|
||||||
//default fonts
|
//default fonts
|
||||||
mInitialText = StringTable->insert("");
|
mInitialText = StringTable->EmptyString();
|
||||||
mInitialTextID = StringTable->insert("");
|
mInitialTextID = StringTable->EmptyString();
|
||||||
mText[0] = '\0';
|
mText[0] = '\0';
|
||||||
mMaxStrLen = GuiTextCtrl::MAX_STRING_LENGTH;
|
mMaxStrLen = GuiTextCtrl::MAX_STRING_LENGTH;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1684,7 +1684,7 @@ DefineEngineMethod( GuiTextEditCtrl, getText, const char*, (),,
|
||||||
"@see GuiControl")
|
"@see GuiControl")
|
||||||
{
|
{
|
||||||
if( !object->hasText() )
|
if( !object->hasText() )
|
||||||
return StringTable->insert("");
|
return StringTable->EmptyString();
|
||||||
|
|
||||||
char *retBuffer = Con::getReturnBuffer( GuiTextEditCtrl::MAX_STRING_LENGTH );
|
char *retBuffer = Con::getReturnBuffer( GuiTextEditCtrl::MAX_STRING_LENGTH );
|
||||||
object->getText( retBuffer );
|
object->getText( retBuffer );
|
||||||
|
|
|
||||||
|
|
@ -845,7 +845,7 @@ GuiTreeViewCtrl::GuiTreeViewCtrl()
|
||||||
|
|
||||||
mClearAllOnSingleSelection = true;
|
mClearAllOnSingleSelection = true;
|
||||||
|
|
||||||
mBitmapBase = StringTable->insert("");
|
mBitmapBase = StringTable->EmptyString();
|
||||||
mTexRollover = NULL;
|
mTexRollover = NULL;
|
||||||
mTexSelected = NULL;
|
mTexSelected = NULL;
|
||||||
|
|
||||||
|
|
@ -4746,13 +4746,13 @@ StringTableEntry GuiTreeViewCtrl::getTextToRoot( S32 itemId, const char * delimi
|
||||||
if(!item)
|
if(!item)
|
||||||
{
|
{
|
||||||
Con::errorf(ConsoleLogEntry::General, "GuiTreeViewCtrl::getTextToRoot: invalid start item id!");
|
Con::errorf(ConsoleLogEntry::General, "GuiTreeViewCtrl::getTextToRoot: invalid start item id!");
|
||||||
return StringTable->insert("");
|
return StringTable->EmptyString();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(item->isInspectorData())
|
if(item->isInspectorData())
|
||||||
{
|
{
|
||||||
Con::errorf(ConsoleLogEntry::General, "GuiTreeViewCtrl::getTextToRoot: cannot get text to root of inspector data items");
|
Con::errorf(ConsoleLogEntry::General, "GuiTreeViewCtrl::getTextToRoot: cannot get text to root of inspector data items");
|
||||||
return StringTable->insert("");
|
return StringTable->EmptyString();
|
||||||
}
|
}
|
||||||
|
|
||||||
char bufferOne[1024];
|
char bufferOne[1024];
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ GuiParticleGraphCtrl::GuiParticleGraphCtrl()
|
||||||
mPlots[i].mGraphMin.x = 0;
|
mPlots[i].mGraphMin.x = 0;
|
||||||
mPlots[i].mGraphMin.y = 0;
|
mPlots[i].mGraphMin.y = 0;
|
||||||
mPlots[i].mGraphType = Polyline;
|
mPlots[i].mGraphType = Polyline;
|
||||||
mPlots[i].mGraphName = StringTable->insert("");
|
mPlots[i].mGraphName = StringTable->EmptyString();
|
||||||
mPlots[i].mHidden = false;
|
mPlots[i].mHidden = false;
|
||||||
mPlots[i].mGraphScale = 0.05f;
|
mPlots[i].mGraphScale = 0.05f;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,7 @@ DefineEngineMethod( GuiChunkedBitmapCtrl, setBitmap, void, (const char* filename
|
||||||
|
|
||||||
GuiChunkedBitmapCtrl::GuiChunkedBitmapCtrl()
|
GuiChunkedBitmapCtrl::GuiChunkedBitmapCtrl()
|
||||||
{
|
{
|
||||||
mBitmapName = StringTable->insert("");
|
mBitmapName = StringTable->EmptyString();
|
||||||
mUseVariable = false;
|
mUseVariable = false;
|
||||||
mTile = false;
|
mTile = false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -218,8 +218,8 @@ InspectorFieldUndoAction::InspectorFieldUndoAction()
|
||||||
{
|
{
|
||||||
mObjId = 0;
|
mObjId = 0;
|
||||||
mField = NULL;
|
mField = NULL;
|
||||||
mSlotName = StringTable->insert("");
|
mSlotName = StringTable->EmptyString();
|
||||||
mArrayIdx = StringTable->insert("");
|
mArrayIdx = StringTable->EmptyString();
|
||||||
}
|
}
|
||||||
|
|
||||||
InspectorFieldUndoAction::InspectorFieldUndoAction( const UTF8 *actionName )
|
InspectorFieldUndoAction::InspectorFieldUndoAction( const UTF8 *actionName )
|
||||||
|
|
@ -228,8 +228,8 @@ InspectorFieldUndoAction::InspectorFieldUndoAction( const UTF8 *actionName )
|
||||||
mInspector = NULL;
|
mInspector = NULL;
|
||||||
mObjId = 0;
|
mObjId = 0;
|
||||||
mField = NULL;
|
mField = NULL;
|
||||||
mSlotName = StringTable->insert("");
|
mSlotName = StringTable->EmptyString();
|
||||||
mArrayIdx = StringTable->insert("");
|
mArrayIdx = StringTable->EmptyString();
|
||||||
}
|
}
|
||||||
|
|
||||||
void InspectorFieldUndoAction::initPersistFields()
|
void InspectorFieldUndoAction::initPersistFields()
|
||||||
|
|
|
||||||
|
|
@ -181,7 +181,7 @@ DefineConsoleFunction(NavMeshUpdateOne, void, (S32 meshid, S32 objid, bool remov
|
||||||
NavMesh::NavMesh()
|
NavMesh::NavMesh()
|
||||||
{
|
{
|
||||||
mTypeMask |= StaticShapeObjectType | MarkerObjectType;
|
mTypeMask |= StaticShapeObjectType | MarkerObjectType;
|
||||||
mFileName = StringTable->insert("");
|
mFileName = StringTable->EmptyString();
|
||||||
mNetFlags.clear(Ghostable);
|
mNetFlags.clear(Ghostable);
|
||||||
|
|
||||||
mSaveIntermediates = false;
|
mSaveIntermediates = false;
|
||||||
|
|
@ -211,7 +211,7 @@ NavMesh::NavMesh()
|
||||||
mLargeCharacters = false;
|
mLargeCharacters = false;
|
||||||
mVehicles = false;
|
mVehicles = false;
|
||||||
|
|
||||||
mCoverSet = StringTable->insert("");
|
mCoverSet = StringTable->EmptyString();
|
||||||
mInnerCover = false;
|
mInnerCover = false;
|
||||||
mCoverDist = 1.0f;
|
mCoverDist = 1.0f;
|
||||||
mPeekDist = 0.7f;
|
mPeekDist = 0.7f;
|
||||||
|
|
|
||||||
|
|
@ -170,7 +170,7 @@ const char *NavPath::getProtectedFrom(void *obj, const char *data)
|
||||||
if(object->mFromSet)
|
if(object->mFromSet)
|
||||||
return data;
|
return data;
|
||||||
else
|
else
|
||||||
return StringTable->insert("");
|
return StringTable->EmptyString();
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *NavPath::getProtectedTo(void *obj, const char *data)
|
const char *NavPath::getProtectedTo(void *obj, const char *data)
|
||||||
|
|
@ -180,7 +180,7 @@ const char *NavPath::getProtectedTo(void *obj, const char *data)
|
||||||
if(object->mToSet)
|
if(object->mToSet)
|
||||||
return data;
|
return data;
|
||||||
else
|
else
|
||||||
return StringTable->insert("");
|
return StringTable->EmptyString();
|
||||||
}
|
}
|
||||||
|
|
||||||
IRangeValidator ValidIterations(1, S32_MAX);
|
IRangeValidator ValidIterations(1, S32_MAX);
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ PopupMenu::PopupMenu() : mCanvas(NULL)
|
||||||
mSubmenus = new SimSet;
|
mSubmenus = new SimSet;
|
||||||
mSubmenus->registerObject();
|
mSubmenus->registerObject();
|
||||||
|
|
||||||
mBarTitle = StringTable->insert("");
|
mBarTitle = StringTable->EmptyString();
|
||||||
mIsPopup = false;
|
mIsPopup = false;
|
||||||
|
|
||||||
mPopupGUID = sMaxPopupGUID++;
|
mPopupGUID = sMaxPopupGUID++;
|
||||||
|
|
|
||||||
|
|
@ -48,10 +48,10 @@ FileDialogData::FileDialogData()
|
||||||
if (mDefaultPath == StringTable->lookup("") || !Platform::isDirectory(mDefaultPath))
|
if (mDefaultPath == StringTable->lookup("") || !Platform::isDirectory(mDefaultPath))
|
||||||
mDefaultPath = Platform::getCurrentDirectory();
|
mDefaultPath = Platform::getCurrentDirectory();
|
||||||
|
|
||||||
mDefaultFile = StringTable->insert("");
|
mDefaultFile = StringTable->EmptyString();
|
||||||
mFilters = StringTable->insert("");
|
mFilters = StringTable->EmptyString();
|
||||||
mFile = StringTable->insert("");
|
mFile = StringTable->EmptyString();
|
||||||
mTitle = StringTable->insert("");
|
mTitle = StringTable->EmptyString();
|
||||||
|
|
||||||
mStyle = 0;
|
mStyle = 0;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue