Table of Contents

Class ResourceBarUI

Namespace
StarterKit
Assembly
StarterKit.dll

STARTERKIT - Simple resource bar. Shows gold at top of screen, hidden until country selected.

public class ResourceBarUI : StarterKitPanel
Inheritance
object
ResourceBarUI
Inherited Members

Methods

CreateUI()

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

protected override void CreateUI()

Initialize(EconomySystem, PlayerState, GameState)

public void Initialize(EconomySystem economySystemRef, PlayerState playerStateRef, GameState gameStateRef)

Parameters

economySystemRef EconomySystem
playerStateRef PlayerState
gameStateRef GameState

OnDestroy()

Called when the panel is destroyed. Disposes event subscriptions. Override to add cleanup, but always call base.OnDestroy().

protected override void OnDestroy()

OnShow()

Called when panel is shown. Override for refresh logic.

protected override void OnShow()

RefreshDisplay()

Force refresh the display (called after load)

public void RefreshDisplay()