Exemplo n.º 1
0
        private void addConstantStatButton_Click(object sender, EventArgs e)
        {
            var newId = activeSaveFile.AddStat(typeof(GameConstantStatModifierData), activeSaveFile.GetItemStatData(activeItem));

            ReloadData();

            var statDialog = new StatDetails();

            statDialog.LoadStat(activeSaveFile.GetItemStatData(activeItem).StatModifiers[Array.FindIndex(activeSaveFile.GetItemStatData(activeItem).StatModifiers, x => x.Id == newId)], ReloadData);
        }
Exemplo n.º 2
0
        private void addConstantStatButton_Click(object sender, EventArgs e)
        {
            var newId = activeSaveFile.AddStat(typeof(gameConstantStatModifierData_Deprecated), activeSaveFile.GetItemStatData(activeItem));

            ReloadData();

            var statDialog = new StatDetails();

            statDialog.LoadStat(newId, ReloadData);
        }