Class CountrySelectionUI
- Namespace
- StarterKit
- Assembly
- StarterKit.dll
STARTERKIT - Simple country selection UI. Click map to select country, click Start to begin. Emits PlayerCountrySelectedEvent when started.
public class CountrySelectionUI : StarterKitPanel
- Inheritance
-
objectCountrySelectionUI
- Inherited Members
Properties
HasSelectedCountry
public bool HasSelectedCountry { get; }
Property Value
- bool
SelectedCountryId
public ushort SelectedCountryId { get; }
Property Value
- ushort
Methods
CreateUI()
Override to create your panel's UI elements. Set panelContainer to your main container element.
protected override void CreateUI()
Hide()
Hide the panel.
public override void Hide()
Initialize(GameState, PlayerState)
public void Initialize(GameState gameStateRef, PlayerState playerStateRef)
Parameters
gameStateRefGameStateplayerStateRefPlayerState
OnDestroy()
Called when the panel is destroyed. Disposes event subscriptions. Override to add cleanup, but always call base.OnDestroy().
protected override void OnDestroy()
Show()
Show the panel.
public override void Show()