Skip to content

Scoreboard

namespace Griff.Scenes;
public sealed class Scoreboard : Component

Lists who’s in a network game in the entity’s Text, one player a line: name, team, score and ping, best score first. Offline it shows Offline. For a lobby, or a scoreboard on Tab.

This is a component: its saved properties are on its component page.

public Key HoldKey { get; set; }

A key that shows it while held, e.g. Tab, for a scoreboard during play. None shows it all the time.

public string? Offline { get; set; }

What it shows when not in a network game. Empty shows nothing.

public bool ShowPing { get; set; }

Show each player’s ping: how many milliseconds their connection to the host takes there and back.

public bool ShowScore { get; set; }

Show each player’s score.

public bool ShowStatus { get; set; }

The game’s state on a last line: “Hosting on 192.168.1.5:7777”, “Connecting…”, or why the connection ended.

public string? Title { get; set; }

A line on top, e.g. “Players”. Empty has none.