Skip to content

ExperienceBar ​

Inherits: MarginContainer

The experience bar of the action bar: a progress bar and a label that follow the experience of its player (entity_xp_changed).

Variables ​

Playerbars_player

Methods ​

voidsetup()
voidupdate_xp( player: Player, experience: int, experience_requirement: int )

Variable descriptions ​

Player bars_player ​

The player whose experience the bar shows.

Method descriptions ​

void setup() ​

Connects the bar to the experience of its player.

void update_xp( player: Player, experience: int, experience_requirement: int ) ​

Updates the bar: the player, the experience and what the next level needs.