Exemplo n.º 1
0
        public ViewModel()
        {
            String[] names = { "VAAN", "ASHE", "FRAN", "BALTHIER", "BASCH", "PENELO" };
            for (uint i = 0; i < names.Length; i++)
            {
                Party.Add(new Charactor(0x2210 + i * 456, names[i]));
            }

            for (uint i = 0; i < 64; i++)
            {
                Consumable.Add(new Item(0xDACC + i * 2, 0x6948, 0));
            }
            for (uint i = 0; i < 200; i++)
            {
                Weapon.Add(new Item(0xDB4C + i * 2, 0x69CA, 0x1001));
            }
            for (uint i = 0; i < 140; i++)
            {
                Armor.Add(new Item(0xDCDC + i * 2, 0x6B58, 0x10C8));
            }
            for (uint i = 0; i < 120; i++)
            {
                Accessorie.Add(new Item(0xDDF4 + i * 2, 0x6C70, 0x1154));
            }
            for (uint i = 0; i < 24; i++)
            {
                Technique.Add(new Technique(i));
            }
            for (uint i = 0; i < 81; i++)
            {
                Magic.Add(new Magic(i));
            }
        }
Exemplo n.º 2
0
        private void ButtonChoiceTechnique_Click(object sender, RoutedEventArgs e)
        {
            Technique technique = (sender as Button)?.DataContext as Technique;

            ChoiceWindow dlg = new ChoiceWindow();

            dlg.Type = ChoiceWindow.eType.eTechnique;
            dlg.ID   = technique.ID;
            dlg.ShowDialog();

            if (dlg.ID == technique.ID)
            {
                return;
            }

            technique.Learning = false;
            technique.ID       = dlg.ID;
            technique.Learning = true;
        }