Exemple #1
0
        public VillagerMemoryEditor(IVillager villager)
        {
            InitializeComponent();
            this.TranslateInterface(GameInfo.CurrentLanguage);

            Greetings = new[]
            {
                TB_Greeting,
                TB_Greeting1, TB_Greeting2, TB_Greeting3, TB_Greeting4, TB_Greeting5,
                TB_Greeting6, TB_Greeting7, TB_Greeting8, TB_Greeting9, TB_Greeting10
            };

            Villager = villager;
            Memories = villager.GetMemories();

            for (int i = 0; i < Memories.Length; i++)
            {
                LB_Players.Items.Add($"{i} - {Memories[i].PlayerName} ({Memories[i].TownName})");
            }

            LB_Players.SelectedIndex = 0;

            DialogResult            = DialogResult.Cancel;
            LB_Counts.SelectedIndex = 0;
        }
Exemple #2
0
        public VillagerMemoryEditor(IVillager villager)
        {
            InitializeComponent();
            this.TranslateInterface(GameInfo.CurrentLanguage);

            Greetings = new[]
            {
                TB_Greeting,
                TB_Greeting1, TB_Greeting2, TB_Greeting3, TB_Greeting4, TB_Greeting5,
                TB_Greeting6, TB_Greeting7, TB_Greeting8, TB_Greeting9, TB_Greeting10
            };

            Villager = villager;
            Memories = villager.GetMemories();

            UpdatePlayerIslandStrings();

            LB_Players.SelectedIndex = 0;

            DialogResult            = DialogResult.Cancel;
            LB_Counts.SelectedIndex = 0;
        }