Table of Contents

Class ClientNetworkStatsSettings

Namespace
FishMMO.Client
Assembly
FishMMO.Client.dll

Whether the network statistics overlay is drawn, and whether it draws its traffic graph.

public static class ClientNetworkStatsSettings
Inheritance
ClientNetworkStatsSettings
Inherited Members

Remarks

Off by default. The overlay is a diagnostic: a player who has never asked how much the game sends has no use for a table of byte counts in the corner of the screen, and a fresh install should look the way it did before the overlay existed.

Why the settings live here rather than on the panel. For the reason ClientCrosshairSettings gives: UITKNetworkStats is a panel whose OnStarting can re-run, and the options panel must be able to read and write the choice in a scene where the overlay has not started yet. These are plain reads off ClientSettings, so neither side has to wait for the other.

Visibility is the only thing the setting owns. Sampling follows it: the overlay reads the transport's counters only while it is shown, so turning it off also stops the once-a-second connection statistics read the transport makes on its behalf (see TransportTraffic.Capture).

Fields

DefaultEnabled

Whether a fresh install draws the overlay.

public const bool DefaultEnabled = false

Field Value

bool

DefaultShowGraph

Whether a fresh install draws the traffic graph inside the overlay.

public const bool DefaultShowGraph = true

Field Value

bool

Remarks

On, because a player who has turned the overlay on has asked to see the traffic, and the graph is the part that shows a spike after it has passed. It is a separate choice for the player who wants the numbers in less screen space.

Properties

Enabled

Whether the overlay is drawn at all.

public static bool Enabled { get; }

Property Value

bool

ShowGraph

Whether the overlay draws its traffic graph.

public static bool ShowGraph { get; }

Property Value

bool

Methods

SetEnabled(bool)

Writes whether the overlay is drawn and notifies it.

public static void SetEnabled(bool value)

Parameters

value bool

SetShowGraph(bool)

Writes whether the traffic graph is drawn and notifies the overlay.

public static void SetShowGraph(bool value)

Parameters

value bool

Events

OnChanged

Raised when either setting changes.

public static event Action OnChanged

Event Type

Action

Remarks

The overlay subscribes; the options panel raises. Neither holds a reference to the other, which matters because the options panel can be open while the overlay's tree has not been built.