update macro

Added get##name##File to macro that will check to make sure the asset is not null before getting the image file.
This commit is contained in:
marauder2k7 2025-05-14 00:30:47 +01:00
parent a52069bbc5
commit aa3f07e339
5 changed files with 13 additions and 9 deletions

View file

@ -701,7 +701,7 @@ DefineEngineMethod( GuiControlProfile, getStringWidth, S32, (const char* string)
DefineEngineMethod(GuiControlProfile, getBitmap, const char*, (), , "get name")
{
return object->getBitmapAsset()->getImageFile();
return object->getBitmapFile();
}
DefineEngineMethod(GuiControlProfile, getBitmapAsset, const char*, (), , "")
{