UI (functions)/Background

From PMDOWiki
Revision as of 03:43, 18 January 2026 by Imbion (talk | contribs) (Created page with "== UI:WaitShowBG == Fades in a chosen background image, with a chosen framerate, at a certain fade time, waiting until the fade-in is complete. === Arguments === * <code>bg</code>: The background to show, from the list of BG textures. * <code>frameTime</code>: Framerate of the image animation. * <code>fadeInTime</code>: Time taken to fade in the image. === Example === <pre> UI:WaitShowBG("TestBG", 3, 60) </pre> == UI:ShowBG(System.String,System.Int32,System.Int...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

UI:WaitShowBG

Fades in a chosen background image, with a chosen framerate, at a certain fade time, waiting until the fade-in is complete.


Arguments

  • bg: The background to show, from the list of BG textures.
  • frameTime: Framerate of the image animation.
  • fadeInTime: Time taken to fade in the image.

Example


UI:WaitShowBG("TestBG", 3, 60)

UI:ShowBG(System.String,System.Int32,System.Int32)

Sets an image to display. Requires WaitDialog to actually display.


Arguments

  • bg: The background to show, from the list of BG textures.
  • frameTime: Framerate of the image animation.
  • fadeInTime: Time taken to fade in the image.

UI:WaitHideBG

Fades out the current background image, waiting until the fade-out is complete.


Arguments

  • time: Time taken to fade out the image.

Example


UI:WaitHideBG(60)

UI:FadeBG(System.Int32)

Prepares a fade-out of the current image. Requires WaitDialog to actually display.


Arguments

  • time: Time taken to fade out the image.