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 ​
Label | title_label | |
Label | subtitle_label |
Methods ​
void | show_zone( title: String, subtitle: String = "" ) |
bool | is_showing() |
void | hide_now() |
Constants ​
floatFADE_IN =0.6- How long the banner takes to fade in, stays, and takes to fade out (seconds).floatHOLD =2.8floatFADE_OUT =1.2intTITLE_SIZE =46- The size of the big line and of the small line.intSUBTITLE_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.