Skip to content

ZoneBanner ​

Inherits: Control

The banner that shows the name of a zone when the party enters it: a big line (the zone, "Elderwood") and a small line under it (the sub-zone, or the line of the zone: "Home of the old mill"). It fades in, holds and fades out. The UI manager makes one and connects it to the zone tracker of the world container (banner_requested). Replace it with your own: any node with a show_zone(title, subtitle) method can be connected to the tracker the same way.

Variables ​

Labeltitle_label
Labelsubtitle_label

Methods ​

voidshow_zone( title: String, subtitle: String = "" )
boolis_showing()
voidhide_now()

Constants ​

  • float FADE_IN = 0.6 - How long the banner takes to fade in, stays, and takes to fade out (seconds).
  • float HOLD = 2.8
  • float FADE_OUT = 1.2
  • int TITLE_SIZE = 46 - The size of the big line and of the small line.
  • int SUBTITLE_SIZE = 22

Variable descriptions ​

Label title_label ​

No description yet.

Label subtitle_label ​

No description yet.

Method descriptions ​

void show_zone( title: String, subtitle: String = "" ) ​

Shows the banner: it fades in, holds, fades out. A banner that is still showing is replaced.

bool is_showing() ​

Is the banner on the screen?

void hide_now() ​

Takes the banner away at once.