Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions.
See the stable version of this documentation page instead.
Scoreboardπ
Inherits: Control
This defines a scoreboard to track players, scores and teams. It is a container for ScorePanel instances.
Propertiesπ
Methodenπ
void |
set_scoring(new_scoring: bool) |
void |
_ready() |
void |
_unhandled_input(event: InputEvent) |
void |
_on_score_panel_added(panel: ScorePanel) |
void |
_on_score_panel_removed(panel: ScorePanel) |
void |
_on_entry_added(entry: ScorePanelEntry) |
void |
_on_entry_removed(entry: ScorePanelEntry) |
void |
_on_ping_sync(state: Dictionary) |
void |
remove_panel(panel: ScorePanel) |
remove_entry_by_name(entry_name: String) |
|
void |
|
size() |
Signalsπ
scoring_state_changed(new_scoring: bool) π
There is currently no description for this signal. Please help us by contributing one!
Eigenschaftsbeschreibungenπ
void set_scoring(new_scoring: bool)
This controls whether Entry scores can be updated or not.
PackedScene _SCORE_PANEL π
There is currently no description for this property. Please help us by contributing one!
GridContainer panels π
This is the container for ScorePanel child nodes.
Methodenbeschreibungenπ
void set_scoring(new_scoring: bool) π
There is currently no description for this method. Please help us by contributing one!
void _ready() π
There is currently no description for this method. Please help us by contributing one!
void _unhandled_input(event: InputEvent) π
There is currently no description for this method. Please help us by contributing one!
void _on_score_panel_added(panel: ScorePanel) π
There is currently no description for this method. Please help us by contributing one!
void _on_score_panel_removed(panel: ScorePanel) π
There is currently no description for this method. Please help us by contributing one!
void _on_entry_added(entry: ScorePanelEntry) π
There is currently no description for this method. Please help us by contributing one!
void _on_entry_removed(entry: ScorePanelEntry) π
There is currently no description for this method. Please help us by contributing one!
void _on_ping_sync(state: Dictionary) π
There is currently no description for this method. Please help us by contributing one!
There is currently no description for this method. Please help us by contributing one!
ScorePanel add_panel(panel_name: String = "") π
This method adds a ScorePanel to the Scoreboard and returns a reference to the added ScorePanel.
void remove_panel(panel: ScorePanel) π
This method removes a ScorePanel from the Scoreboard.
ScorePanel get_panel(index: int) π
This method returns a ScorePanel from the Scoreboard.
bool remove_entry_by_name(entry_name: String) π
This method removes an entry by its node name in the tree.
ScorePanelEntry get_entry(peer_id: int) π
There is currently no description for this method. Please help us by contributing one!
Vector3i get_score(peer_id: int) π
This method returns the score of the given peer_id.
bool set_score(peer_id: int, score: Vector3i) π
This method sets the score of the given peer_id.
bool add_score(peer_id: int, score: Vector3i) π
This method adds to the score of the given peer_id.
void reset_scores() π
This method resets the scores of all Entry nodes.
This method returns the number of ScorePanel children.