コード例 #1
0
 private void statsListView_DoubleClick(object sender, EventArgs e)
 {
     if (statsListView.SelectedItems.Count > 0)
     {
         var nodeDetails = new StatDetails();
         nodeDetails.LoadStat(((Handle <GameStatModifierData>)statsListView.SelectedItems[0].Tag), ReloadData);
     }
 }
コード例 #2
0
        private void addCurveStatButton_Click(object sender, EventArgs e)
        {
            var newId = activeSaveFile.AddStat(typeof(GameCurveStatModifierData), 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);
        }
コード例 #3
0
        private void addCurveStatButton_Click(object sender, EventArgs e)
        {
            var newId = activeSaveFile.AddStat(typeof(gameCurveStatModifierData_Deprecated), activeSaveFile.GetItemStatData(activeItem));

            ReloadData();

            var statDialog = new StatDetails();

            statDialog.LoadStat(newId, ReloadData);
        }