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.

ScoreboardπŸ”—

Inherits: Control

This defines a scoreboard to track players, scores and teams. It is a container for ScorePanel instances.

PropertiesπŸ”—

bool

scoring

PackedScene

_SCORE_PANEL

GridContainer

panels

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)

String

_to_string()

ScorePanel

add_panel(panel_name: String = "")

void

remove_panel(panel: ScorePanel)

ScorePanel

get_panel(index: int)

bool

remove_entry_by_name(entry_name: String)

ScorePanelEntry

get_entry(peer_id: int)

Vector3i

get_score(peer_id: int)

bool

set_score(peer_id: int, score: Vector3i)

bool

add_score(peer_id: int, score: Vector3i)

void

reset_scores()

int

size()


SignalsπŸ”—

scoring_state_changed(new_scoring: bool) πŸ”—

There is currently no description for this signal. Please help us by contributing one!


EigenschaftsbeschreibungenπŸ”—

bool scoring πŸ”—

  • 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!


String _to_string() πŸ”—

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.


int size() πŸ”—

This method returns the number of ScorePanel children.