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.

Parameters:

  • WindowIndex, ControlIndex - the control’s reference
  • PictureResRef - the name of the picture (a .bmp resref)
  • 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.