public CombatTab(CombatState state) : base(state) { _CombatList = new CombatListView(); // AddSubview(_CombatList); _PlayerList = new CharacterListView(CombatState, false); _PlayerList.CharacterSelectionChanged += HandlePlayerListCharacterSelectionChanged; AddSubview(_PlayerList); _MonsterList = new CharacterListView(CombatState, true); _MonsterList.CharacterSelectionChanged += HandlePlayerListCharacterSelectionChanged; AddSubview(_MonsterList); _MonsterView = new UIWebView(new CGRect(0, 0, 100, 100)); _MonsterView.BackgroundColor = UIColor.Brown; _MonsterView.LoadHtmlString("<html></html>", new NSUrl("http://localhost/")); AddSubview(_MonsterView); _DieView = new DieRollerView(); _DieView._CollpasedChanged += (object sender, EventArgs e) => { LayoutSubviews(); }; AddSubview(_DieView); _CombatList.CombatState = state; }
public ViewDelegate(CombatListView state) { this.state = state; }
public ViewDataSource(CombatListView state) { this.state = state; }