fix GuiBitmapButtonCtrl setBitmap script command

it was pointing at the macro method direct, not the bespoke case that *also* calls the macro method.
This commit is contained in:
AzaezelX 2025-12-25 17:47:31 -06:00
parent 7bca1dba53
commit d50161d296
3 changed files with 61 additions and 20 deletions

View file

@ -464,4 +464,10 @@ void GuiIconButtonCtrl::renderBitmapArray(RectI &bounds, S32 state)
}
}
DEF_ASSET_BINDS_REFACTOR(GuiIconButtonCtrl, Bitmap)
DefineEngineMethod(GuiIconButtonCtrl, getBitmap, StringTableEntry, (), , "get name") {
return object->getBitmapFile();
}DefineEngineMethod(GuiIconButtonCtrl, getBitmapAsset, StringTableEntry, (), , assetText(Bitmap, asset reference)) {
return object->_getBitmap();
}DefineEngineMethod(GuiIconButtonCtrl, setBitmap, void, (const char* assetName), , assetText(Bitmap, assignment.first tries asset then flat file.)) {
object->setBitmap(StringTable->insert(assetName));
}