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🔗

Hérite: Control

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

Propriétés🔗

bool

scoring

PackedScene

_SCORE_PANEL

GridContainer

panels

Méthodes🔗

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()


Signaux🔗

scoring_state_changed(new_scoring: bool) 🔗

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


Descriptions de propriété🔗

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.


Descriptions de méthode🔗

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.