Prototype: GemRB.SetWindowPicture (WindowIndex, MosResRef)

Metaclass Prototype: SetPicture (MosResRef)

Description: Changes the background of a Window.


  • WindowIndex - the index returned by LoadWindow()
  • MosResRef - the name of the background image (.mos resref)

Return value: N/A


  LoadPic = GemRB.GetGameString (STR_LOADMOS)
  if LoadPic=='':
      LoadPic = 'GUILS0' + str(GemRB.Roll (1,9,0))
  GemRB.SetWindowPicture (LoadScreen, LoadPic) The above snippet is responsible to generate a random loading screen.

See also: Button_SetPicture

Back to function index, GUIScript introduction.