Esempio n. 1
0
        private void B_EditVillagerFlags_Click(object sender, EventArgs e)
        {
            var v     = Villagers[VillagerIndex];
            var flags = v.GetEventFlagsSave();

            using var editor = new VillagerFlagEditor(flags);
            if (editor.ShowDialog() == DialogResult.OK)
            {
                v.SetEventFlagsSave(flags);
            }
        }
Esempio n. 2
0
        private void B_EditVillagerFlags_Click(object sender, EventArgs e)
        {
            var v     = SAV.Main.GetVillager(VillagerIndex);
            var flags = v.GetEventFlagsSave();

            using var editor = new VillagerFlagEditor(flags);
            if (editor.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            v.SetEventFlagsSave(flags);
            SAV.Main.SetVillager(v, VillagerIndex);
        }