Button_SetPicture
Prototype: GemRB.SetButtonPicture (WindowIndex, ControlIndex, PictureResRef, DefaultResRef)
Metaclass Prototype: SetPicture (PictureResRef, DefaultResRef)
Description: Sets the Picture of a Button Control from a BMP file or a Sprite2D.
Parameters:
- WindowIndex, ControlIndex - the control’s reference
- PictureResRef - the name of the picture (a .bmp resref) or a Sprite2D object
- DefaultResRef - an alternate bmp should the picture be nonexistent
Return value: N/A
See also: Button_SetBAM, Button_SetPLT, Button_SetSprites, Button_SetPictureClipping, Window_SetPicture
Back to function index, GUIScript introduction.