
Prototype: GemRB.SetButtonBAM(WindowIndex, ControlIndex, BAMResRef, CycleIndex, FrameIndex, col1)

Metaclass Prototype: SetBAM(BAMResRef, CycleIndex, FrameIndex, col1)

Description: Sets the Picture of a Button Control from a BAM file. If the supplied color gradient value is -1, then no palette change, if it is >=0, then it changes the 4-16 palette entries of the bam.

Parameters:
WindowIndex, ControlIndex  - the control's reference
BAMResRef                  - the name of the BAM animation (a .bam resref)
CycleIndex, FrameIndex     - the cycle and frame index of the picture in the bam
col1                       - the gradient number, (-1 no gradient)

Return value: N/A

See also: SetButtonPLT, SetButtonPicture, SetButtonSprites

