mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-08-02 16:59:14 +08:00
Clean up code
This commit is contained in:
parent
e797032216
commit
0d1d15529d
@ -16,14 +16,13 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using System.Windows.Forms.DataVisualization.Charting;
|
||||
|
||||
using GrasscutterTools.Game;
|
||||
using GrasscutterTools.Game.Gacha;
|
||||
@ -47,7 +46,6 @@ namespace GrasscutterTools.Forms
|
||||
InitBannerPrefab();
|
||||
InitCheckedListBoxs();
|
||||
|
||||
|
||||
ShowBanner(new GachaBanner2());
|
||||
}
|
||||
|
||||
@ -57,7 +55,6 @@ namespace GrasscutterTools.Forms
|
||||
CmbPrefab.Items.AddRange(GameData.GachaBannerPrefabs.Names);
|
||||
}
|
||||
|
||||
|
||||
private void LnkWeightHelp_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
System.Diagnostics.Process.Start("https://github.com/Grasscutters/Grasscutter/pull/639");
|
||||
@ -94,7 +91,6 @@ namespace GrasscutterTools.Forms
|
||||
ListFallbackItems.Items.Clear();
|
||||
ListFallbackItems.Items.AddRange(avatars.Concat(weapons).ToArray());
|
||||
|
||||
|
||||
ListUpItems.BeginUpdate();
|
||||
var ua5 = ListUpItems.Groups["GroupUpA5"];
|
||||
var ua4 = ListUpItems.Groups["GroupUpA4"];
|
||||
@ -166,11 +162,11 @@ namespace GrasscutterTools.Forms
|
||||
yield return int.Parse(item.Text);
|
||||
}
|
||||
|
||||
#endregion
|
||||
#endregion - 卡池 -
|
||||
|
||||
#region - 权重 -
|
||||
|
||||
struct GachaWeight
|
||||
private struct GachaWeight
|
||||
{
|
||||
public int Count;
|
||||
public int Weight;
|
||||
@ -201,7 +197,7 @@ namespace GrasscutterTools.Forms
|
||||
return JsonConvert.DeserializeObject<int[,]>(weights);
|
||||
}
|
||||
|
||||
#endregion
|
||||
#endregion - 权重 -
|
||||
|
||||
#region - 序列化 -
|
||||
|
||||
@ -248,7 +244,6 @@ namespace GrasscutterTools.Forms
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
var prefabId = GameData.GachaBannerPrefabs.Ids[CmbPrefab.SelectedIndex];
|
||||
var banner = new GachaBanner2
|
||||
{
|
||||
@ -317,7 +312,6 @@ namespace GrasscutterTools.Forms
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion - 序列化 -
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user