Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 public ViewDelegate(CombatListView state)
 {
     this.state = state;
 }
Ejemplo n.º 3
0
 public ViewDataSource(CombatListView state)
 {
     this.state = state;
 }