Esempio n. 1
0
        public PartyDialog(List <Combatant> party)
        {
            InitializeComponent();

            _party = party;

            _characterDialogs = new List <CharacterDialog>();

            for (var i = 0; i < _party.Count; i++)
            {
                var character = _party[i];
                var dialog    = new CharacterDialog(character);
                dialog.Bounds = new UniRectangle(
                    new UniScalar(0.2f * i, 10), new UniScalar(10),
                    new UniScalar(0.2f, -20), new UniScalar(1.0f, -20)
                    );
                Children.Add(dialog);

                _characterDialogs.Add(dialog);
            }
        }
Esempio n. 2
0
        public PartyDialog(List<Combatant> party)
        {
            InitializeComponent();

            _party = party;

            _characterDialogs = new List<CharacterDialog>();

            for (var i = 0; i < _party.Count; i++)
            {
                var character = _party[i];
                var dialog = new CharacterDialog(character);
                dialog.Bounds = new UniRectangle(
                    new UniScalar(0.2f * i, 10), new UniScalar(10),
                    new UniScalar(0.2f, -20), new UniScalar(1.0f, -20)
                );
                Children.Add(dialog);

                _characterDialogs.Add(dialog);
            }
        }