Table of Contents

Class TimeUI

Namespace
StarterKit
Assembly
StarterKit.dll

STARTERKIT - Simple time control UI. Shows date/time, pause button, and speed buttons. Positioned in top-left corner.

In multiplayer: Only the host can pause/unpause and change speed. Clients see the display but controls are disabled.

public class TimeUI : StarterKitPanel
Inheritance
object
TimeUI
Inherited Members

Methods

CreateUI()

Override to create your panel's UI elements. Set panelContainer to your main container element.

protected override void CreateUI()

Initialize(GameState, TimeManager, int[])

public void Initialize(GameState gameStateRef, TimeManager timeManagerRef, int[] customSpeeds = null)

Parameters

gameStateRef GameState
timeManagerRef TimeManager
customSpeeds int[]