Class ProvinceInfoUI
- Namespace
- StarterKit
- Assembly
- StarterKit.dll
STARTERKIT - Province information panel (Pure View) Pattern: UI Presenter Pattern - View Component
Architecture:
- ProvinceInfoUI (this file) - Pure view (UI creation, show/hide)
- ProvinceInfoPresenter - Presentation logic (data formatting)
public class ProvinceInfoUI : StarterKitPanel
- Inheritance
-
objectProvinceInfoUI
- 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, ProvinceSelector, ProvinceHighlighter, EconomySystem, PlayerState, ProvinceHistorySystem, DiplomacyPanel)
public void Initialize(GameState gameStateRef, ProvinceSelector provinceSelectorRef, ProvinceHighlighter highlighterRef = null, EconomySystem economySystemRef = null, PlayerState playerStateRef = null, ProvinceHistorySystem historySystemRef = null, DiplomacyPanel diplomacyPanelRef = null)
Parameters
gameStateRefGameStateprovinceSelectorRefProvinceSelectorhighlighterRefProvinceHighlightereconomySystemRefEconomySystemplayerStateRefPlayerStatehistorySystemRefProvinceHistorySystemdiplomacyPanelRefDiplomacyPanel
OnDestroy()
Called when the panel is destroyed. Disposes event subscriptions. Override to add cleanup, but always call base.OnDestroy().
protected override void OnDestroy()