Button_SetSprite2D

Prototype: GemRB.Button.SetSprite2D (WindowIndex, ControlIndex, Sprite2D)

Metaclass Prototype: SetSprite2D (Sprite2D)

Description: Sets a Sprite2D onto a button as its picture.

Parameters:

  • WindowIndex, ControlIndex - control ID and index
  • Sprite2D - sprite object

Return value: N/A

See also:


Back to function index, GUIScript introduction.