mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
Changes GuiIconButtonCtrl to relative paths that can be opened by the mount system.
This commit is contained in:
parent
0ece989560
commit
fd85491ed7
1 changed files with 2 additions and 2 deletions
|
|
@ -201,13 +201,13 @@ bool GuiIconButtonCtrl::resize(const Point2I &newPosition, const Point2I &newExt
|
||||||
|
|
||||||
void GuiIconButtonCtrl::setBitmap(const char *name)
|
void GuiIconButtonCtrl::setBitmap(const char *name)
|
||||||
{
|
{
|
||||||
mBitmapName = StringTable->insert(name);
|
mBitmapName = Platform::makeRelativePathName(name, NULL);
|
||||||
if(!isAwake())
|
if(!isAwake())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (*mBitmapName)
|
if (*mBitmapName)
|
||||||
{
|
{
|
||||||
mTextureNormal = GFXTexHandle( name, &GFXTexturePersistentSRGBProfile, avar("%s() - mTextureNormal (line %d)", __FUNCTION__, __LINE__) );
|
mTextureNormal = GFXTexHandle(mBitmapName, &GFXTexturePersistentSRGBProfile, avar("%s() - mTextureNormal (line %d)", __FUNCTION__, __LINE__) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue