diff --git a/Source/GrasscutterTools/Forms/FormGachaBannerEditor.Designer.cs b/Source/GrasscutterTools/Forms/FormGachaBannerEditor.Designer.cs index 7963956..2dc17f4 100644 --- a/Source/GrasscutterTools/Forms/FormGachaBannerEditor.Designer.cs +++ b/Source/GrasscutterTools/Forms/FormGachaBannerEditor.Designer.cs @@ -31,7 +31,6 @@ namespace GrasscutterTools.Forms { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormGachaBannerEditor)); this.GrpBannerValues = new System.Windows.Forms.GroupBox(); - this.LblBannerEditorOldTip = new System.Windows.Forms.Label(); this.CmbPrefab = new System.Windows.Forms.ComboBox(); this.LblEventChanceTip = new System.Windows.Forms.Label(); this.NUDEventChance = new System.Windows.Forms.NumericUpDown(); @@ -98,7 +97,6 @@ namespace GrasscutterTools.Forms // GrpBannerValues // resources.ApplyResources(this.GrpBannerValues, "GrpBannerValues"); - this.GrpBannerValues.Controls.Add(this.LblBannerEditorOldTip); this.GrpBannerValues.Controls.Add(this.CmbPrefab); this.GrpBannerValues.Controls.Add(this.LblEventChanceTip); this.GrpBannerValues.Controls.Add(this.NUDEventChance); @@ -141,17 +139,11 @@ namespace GrasscutterTools.Forms this.GrpBannerValues.Name = "GrpBannerValues"; this.GrpBannerValues.TabStop = false; // - // LblBannerEditorOldTip - // - resources.ApplyResources(this.LblBannerEditorOldTip, "LblBannerEditorOldTip"); - this.LblBannerEditorOldTip.ForeColor = System.Drawing.Color.Red; - this.LblBannerEditorOldTip.Name = "LblBannerEditorOldTip"; - // // CmbPrefab // - resources.ApplyResources(this.CmbPrefab, "CmbPrefab"); this.CmbPrefab.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.CmbPrefab.FormattingEnabled = true; + resources.ApplyResources(this.CmbPrefab, "CmbPrefab"); this.CmbPrefab.Name = "CmbPrefab"; // // LblEventChanceTip @@ -181,8 +173,8 @@ namespace GrasscutterTools.Forms // // NUDBaseYellowWeight // - resources.ApplyResources(this.NUDBaseYellowWeight, "NUDBaseYellowWeight"); this.NUDBaseYellowWeight.DecimalPlaces = 2; + resources.ApplyResources(this.NUDBaseYellowWeight, "NUDBaseYellowWeight"); this.NUDBaseYellowWeight.Name = "NUDBaseYellowWeight"; this.NUDBaseYellowWeight.Value = new decimal(new int[] { 6, @@ -197,8 +189,8 @@ namespace GrasscutterTools.Forms // // TxtRateUpItems2 // - resources.ApplyResources(this.TxtRateUpItems2, "TxtRateUpItems2"); this.TxtRateUpItems2.BackColor = System.Drawing.Color.White; + resources.ApplyResources(this.TxtRateUpItems2, "TxtRateUpItems2"); this.TxtRateUpItems2.Name = "TxtRateUpItems2"; this.TxtRateUpItems2.ReadOnly = true; // @@ -294,8 +286,8 @@ namespace GrasscutterTools.Forms // // TxtRateUpItems1 // - resources.ApplyResources(this.TxtRateUpItems1, "TxtRateUpItems1"); this.TxtRateUpItems1.BackColor = System.Drawing.Color.White; + resources.ApplyResources(this.TxtRateUpItems1, "TxtRateUpItems1"); this.TxtRateUpItems1.Name = "TxtRateUpItems1"; this.TxtRateUpItems1.ReadOnly = true; // @@ -381,13 +373,13 @@ namespace GrasscutterTools.Forms // // CmbBannerType // - resources.ApplyResources(this.CmbBannerType, "CmbBannerType"); this.CmbBannerType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.CmbBannerType.FormattingEnabled = true; this.CmbBannerType.Items.AddRange(new object[] { resources.GetString("CmbBannerType.Items"), resources.GetString("CmbBannerType.Items1"), resources.GetString("CmbBannerType.Items2")}); + resources.ApplyResources(this.CmbBannerType, "CmbBannerType"); this.CmbBannerType.Name = "CmbBannerType"; // // LblSortIdTip @@ -397,8 +389,8 @@ namespace GrasscutterTools.Forms // // NUDBasePurpleWeight // - resources.ApplyResources(this.NUDBasePurpleWeight, "NUDBasePurpleWeight"); this.NUDBasePurpleWeight.DecimalPlaces = 2; + resources.ApplyResources(this.NUDBasePurpleWeight, "NUDBasePurpleWeight"); this.NUDBasePurpleWeight.Name = "NUDBasePurpleWeight"; this.NUDBasePurpleWeight.Value = new decimal(new int[] { 51, @@ -455,8 +447,8 @@ namespace GrasscutterTools.Forms // // ListPurplePool // - resources.ApplyResources(this.ListPurplePool, "ListPurplePool"); this.ListPurplePool.CheckOnClick = true; + resources.ApplyResources(this.ListPurplePool, "ListPurplePool"); this.ListPurplePool.FormattingEnabled = true; this.ListPurplePool.Name = "ListPurplePool"; this.ListPurplePool.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.ListPurplePool_ItemCheck); @@ -470,8 +462,8 @@ namespace GrasscutterTools.Forms // // ListYellowPool // - resources.ApplyResources(this.ListYellowPool, "ListYellowPool"); this.ListYellowPool.CheckOnClick = true; + resources.ApplyResources(this.ListYellowPool, "ListYellowPool"); this.ListYellowPool.FormattingEnabled = true; this.ListYellowPool.Name = "ListYellowPool"; this.ListYellowPool.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.ListYellowPool_ItemCheck); @@ -583,6 +575,5 @@ namespace GrasscutterTools.Forms private System.Windows.Forms.Button BtnGen; private System.Windows.Forms.Button BtnParse; private System.Windows.Forms.ComboBox CmbPrefab; - private System.Windows.Forms.Label LblBannerEditorOldTip; } } \ No newline at end of file diff --git a/Source/GrasscutterTools/Forms/FormGachaBannerEditor.resx b/Source/GrasscutterTools/Forms/FormGachaBannerEditor.resx index a21a913..ec8122e 100644 --- a/Source/GrasscutterTools/Forms/FormGachaBannerEditor.resx +++ b/Source/GrasscutterTools/Forms/FormGachaBannerEditor.resx @@ -117,1273 +117,1249 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 74, 118 - - - GrpBannerValues - - - System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 50, 87 - - - System.Windows.Forms.RadioButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - - True - - - 14 - - - 3, 19 - - - 75, 17 - - - 软保底 - - - GrpBannerValues - - - 34, 28 - - - 31 - - - System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - LblBeginTime - - - 21 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 56, 17 - - - 112, 318 - - - 卡池参数 - - - System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - GrpBannerValues - - - 20 - - - True - - - 71 - - - 3 - - - System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 连续非的次数达到该值,增加抽中概率 - - - LblEndTime - - - Top, Bottom, Right - - - 89 - - - System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 74 - - - 100, 23 - - - $this - Top, Bottom, Left - - 280, 174 - - - True - - - 36 - - - True - - - 50 - - - NUDBasePurpleWeight - - - LblBannerType - - - GrpBannerValues - - - GrpBannerValues - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - GrpBannerValues - - - 限时角色祈愿池 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 72, 17 - - - True - - - 69 - - - 75, 17 - - - 纠缠之缘 - - - 生成Json - - - 31, 234 - - - 从400开始,顺序递增 - - - 31, 350 - - - 祈愿道具 - - - 51 - - - 29 - - - LblSoftPityTip - - - 68 - - - 112, 173 - - - LblBaseYellowWeightTip - - - GrpBannerValues - - - System.Windows.Forms.CheckedListBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - GrpBannerValues - - - LblHardPityTip - - - % - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - True - - - GrpBannerValues - - - True - - - LblRateUpItems1 - - - 52 - - - 218, 378 - - - 74, 21 - - - 70 - - - 10 - - - 解析Json - - - 58 - - - 243, 262 - - - 0 - - - GrpBannerValues - - - 934, 486 - - - GrpJson - - - GrpBannerValues - - - GrpBannerValues - - - 2 - - - LblEventChanceTip - - - True - - - True - - - 112, 376 - - - LblBaseYellowWeight - + 112, 115 - - 3 - - - True - - - % - - - ListPurplePool - - - 18 - - - 61 - - - 结束时间 - - - 73 - - - 440, 466 - - - 300, 25 - - - 112, 231 - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 19 - - - NUDSortId - - - GrpPurplePool - - - True - - - 81 - - - GrpBannerValues - - - 32 - - - True - - - 35 - - - GrpBannerValues - - - 26 - - - 212, 17 - - - 34 - - - 53 - - - 300, 23 - - - 1 - - - 100, 23 - - - System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 60 - - - 3, 19 - - - System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 218, 176 - - - GrpBannerValues - - - 76 - - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 0 - - - 125, 17 - - - 硬保底 - - - 90 - - - True - - - 300, 466 - - - System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 59 - - - BtnGen - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 62, 320 - - - True - - - NUDEventChance - - - GrpBannerValues - - - 38 - - - LblSortIdTip - - - 100, 23 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 218, 320 - - - 31, 437 - - - 37 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 218, 291 - - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - LblSortId - - - GrpBannerValues - - - 100, 23 - - - GrpBannerValues - - - 6 - - - System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - GrpBannerValues - - - 33 - - - ListYellowPool - - - 300, 23 - - - 提示:当前不支持最新版dev奖池,等一个有缘人PR - - - $this - - - RbCostItem223 - - - 15 - - - True - - - 3, 4, 3, 4 - - - System.Windows.Forms.CheckedListBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 87 - - - 12 - - - 83 - - - 56 - - - LblCostItem - - - GrpBannerValues - - - 6, 19 - - - 27 - - - 19, 17 - - - 0 - - - Fill - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - True - - - 458, 248 - - - 64 - - - 44 - - - 31, 378 - - - 88 - - - 23 - - - GrpBannerValues - - - 324, 260 - - - System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 393, 262 - - - True - - - GrpBannerValues - - - LblBasePurpleWeight - - - 219, 437 - - - LblScheduleId - - - GrpJson - - - 56, 17 - - - 顺序 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 11 - - - 75, 17 - - - 0 - - - 1 - - - GrpPurplePool - - - 160, 230 - - - System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 24 - - - 112, 202 - - - 34, 57 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 288, 412 - - - 8 - - - True - - - GrpBannerValues - - - 112, 260 - - - GrpBannerValues - - - 2 - - - 284, 17 - - - TxtJson - - - 77 - - - GrpBannerValues - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 22 - - - 458, 12 - - - 47 - - - 75, 17 - - - 112, 55 - - - 154, 208 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - NUDHardPity - - - 4星活动奖池 - - - 84 - - - True - - - 39 - - - 218, 57 - - - RbCostItem224 - - - 100, 23 - - - System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - GrpBannerValues - - - 7 - - - 624, 12 - - - GrpBannerValues - - - 1 - - - 4星基础爆率 - - - 19, 17 - - - LblPrefabPath - - - True - - - GrpBannerValues - - - 31, 262 - - - LblEventChance - - - FormGachaBannerEditor - - - 100, 23 - - - NUDEndTime - - - ID要求唯一 - - - BtnParse - - - LblGachaType - - - 0 - - - 218, 204 - - - GrpBannerValues - 300, 25 - - 112, 347 - - - 预制 - - - GrpBannerValues - - - 17 - - - System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - LblScheduleIdTip - - - LblHardPity - - - True - - - 相遇之缘 - - - GrpBannerValues - - - 32, 17 - - - 50, 176 - - - True - - - 连续非的次数达到该值,必得5星 - - - 56, 17 - - - 160, 230 - - - 62, 291 - - - Top, Bottom, Left, Right - - - LblBannerEditorOldTip - - - NUDGachaType - - - LblSoftPity - - - GrpBannerValues - - - GrpJson - - - 0 - - - 63, 23 - - - True - - - LblRateUpItems2 - - - 86 - - - 112, 84 - - - System.Windows.Forms.RadioButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 218, 262 - - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 微软雅黑, 9pt - - - 91 - - - 75, 23 - - - 112, 26 - - - GrpYellowPool - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - GrpBannerValues - - - 19, 17 - - - GrpBannerValues - - - 72, 17 - - - True - - - 56, 17 - - - Fill - - - 57 - - - True - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 30 - - - 0 - - - GrpBannerValues - - - CmbBannerType - - - 218, 28 - - - 112, 289 - - - 6, 437 - - - $this - - - 69, 17 - - - 116, 17 - - - 25 - - - 74, 21 - - - GrpJson - - - 4 - - - GrpBannerValues - - - GrpBannerValues - - - GachaType - - - Top, Bottom, Left, Right - - - System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 5星基础爆率 - - - 9 - - - True - - - CenterScreen - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 75, 23 - - - 限时武器祈愿池 - - - 50 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - LblBasePurpleWeightTip - - - System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 奖池类型 - - - GrpYellowPool - - - % - - - 79 - - - 74, 204 - - - 85 - - - TxtRateUpItems2 - - - 4星活动卡池 - - - 44, 17 - - - GrpBannerValues - - - 183, 17 - - - 72 - - - 2 - - - 75, 17 - - - 51 - - - 5星活动爆率 - - - GrpBannerValues - - - 客户端中显示的顺序 - - - 32, 17 - - - System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 常驻池 - - - 7, 17 + + + 90 CmbPrefab - - 16 + + System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 49 + + GrpBannerValues - - NUDSoftPity + + 0 + + + True + + + 393, 262 + + + 19, 17 + + + 89 + + + % + + + LblEventChanceTip + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 1 + + + 324, 260 + + + 63, 23 + + + 68 + + + NUDEventChance + + + System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 2 + + + True + + + 34, 28 + + + 72, 17 + + + 48 + + + GachaType + + + LblGachaType + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 3 + + + True + + + 243, 262 + + + 75, 17 + + + 88 + + + 5星活动爆率 + + + LblEventChance + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 4 + + + 112, 260 + + + 100, 23 + + + 66 + + + NUDBaseYellowWeight + + + System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 5 + + + True + + + 74, 204 + + + 32, 17 + + + 75 + + + 顺序 + + + LblSortId + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 6 + + + 112, 347 + + + 300, 23 + + + 71 + + + TxtRateUpItems2 + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 7 + + + True + + + 31, 262 + + + 75, 17 + + + 76 + + + 5星基础爆率 + + + LblBaseYellowWeight + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 8 + + + 112, 26 + + + 100, 23 + + + 47 + + + NUDGachaType + + + System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 9 + + + 112, 202 + + + 100, 23 + + + 64 + + + NUDSortId + + + System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 10 + + + True + + + 31, 350 + + + 75, 17 + + + 87 + + + 4星活动奖池 + + + LblRateUpItems2 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 11 + + + True + + + 62, 291 + + + 44, 17 + + + 77 + + + 软保底 + + + LblSoftPity + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 12 + + + True + + + 218, 28 + + + 125, 17 + + + 51 + + + 从400开始,顺序递增 + + + LblGachaTypeTip System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + + GrpBannerValues + + 13 - + + True + + + 218, 176 + + + 56, 17 + + + 74 + + + 结束时间 + + + LblEndTime + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 14 + + + True + + + 31, 234 + + + 75, 17 + + + 86 + + + 5星活动奖池 + + + LblRateUpItems1 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 15 + + + 112, 289 + + 100, 23 - + + 69 + + + NUDSoftPity + + + System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 16 + + + True + + + 34, 57 + + + 72, 17 + + + 53 + + + ScheduleId + + + LblScheduleId + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 17 + + + True + + + 50, 176 + + + 56, 17 + + + 72 + + + 开始时间 + + + LblBeginTime + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 18 + + + 112, 231 + + + 300, 23 + + + 65 + + + TxtRateUpItems1 + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 19 + + + True + + + 62, 320 + + + 44, 17 + + + 78 + + + 硬保底 + + + LblHardPity + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 20 + + + 112, 55 + + + 100, 23 + + + 49 + + + NUDScheduleId + + + System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 21 + + + 280, 174 + + 100, 23 62 - - 75 + + NUDEndTime - - 28 + + System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 65 + + GrpBannerValues - - 0 + + 22 - - 5星活动奖池 - - - 48 - - - 154, 208 - - - 50, 148 - - - 78 - - - 5星活动奖池 - - - NUDBaseYellowWeight - - - NUDScheduleId - - - 49 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - $this - - - 82 - - - 192, 146 - - + True - - 100, 23 + + 218, 320 - - 5 + + 183, 17 - - 开始时间 + + 85 - - System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 连续非的次数达到该值,必得5星 - - 112, 146 + + LblHardPityTip System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - Json + + GrpBannerValues - - 卡池编辑器 + + 23 - - 44, 17 + + 112, 318 - - TxtRateUpItems1 + + 100, 23 - + + 70 + + + NUDHardPity + + + System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 24 + + + True + + + 218, 57 + + + 69, 17 + + + 56 + + + ID要求唯一 + + + LblScheduleIdTip + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + GrpBannerValues + + + 25 + + + 112, 173 + + + 100, 23 + + + 60 + NUDBeginTime - - 12, 12 + + System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + GrpBannerValues - - ScheduleId + + 26 - - Top, Left, Right + + True - - LblGachaTypeTip + + 218, 291 - - 53 + + 212, 17 + + + 84 + + + 连续非的次数达到该值,增加抽中概率 + + + LblSoftPityTip + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 27 + + + True + + + 31, 378 + + + 75, 17 + + + 79 + + + 4星基础爆率 + + + LblBasePurpleWeight + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 28 + + + 常驻池 + + + 限时角色祈愿池 + + + 限时武器祈愿池 + + + 112, 84 + + + 300, 25 + + + 50 + + + CmbBannerType + + + System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 29 + + + True + + + 218, 204 + + + 116, 17 + + + 83 + + + 客户端中显示的顺序 + + + LblSortIdTip + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 30 + + + 112, 376 + + + 100, 23 + + + 73 + + + NUDBasePurpleWeight + + + System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 31 + + + True + + + 50, 87 + + + 56, 17 + + + 59 + + + 奖池类型 + + + LblBannerType + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 32 + + + True + + + 218, 378 + + + 19, 17 + + + 81 + + + % + + + LblBasePurpleWeightTip + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 33 + + + True + + + 112, 146 + + + 74, 21 + + + 57 + + + 相遇之缘 + + + RbCostItem224 + + + System.Windows.Forms.RadioButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 34 + + + True + + + 218, 262 + + + 19, 17 + + + 82 + + + % + + + LblBaseYellowWeightTip + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 35 + + + True + + + 50, 148 + + + 56, 17 80 - + + 祈愿道具 + + + LblCostItem + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + GrpBannerValues - - 66 + + 36 + + + True + + + 74, 118 + + + 32, 17 + + + 61 + + + 预制 + + + LblPrefabPath + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 37 + + + True + + + 192, 146 + + + 74, 21 + + + 58 + + + 纠缠之缘 + + + RbCostItem223 + + + System.Windows.Forms.RadioButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 38 + + + 12, 12 + + + 440, 466 + + + 44 + + + 卡池参数 + + + GrpBannerValues + + + System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 3 + + + Top, Bottom, Left, Right + + + Fill + + + 3, 19 + + + 154, 208 + + + 0 + + + ListPurplePool + + + System.Windows.Forms.CheckedListBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpPurplePool + + + 0 + + + 458, 248 + + + 160, 230 + + + 50 + + + 4星活动卡池 + + + GrpPurplePool + + + System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 1 + + + Top, Left, Right + + + Fill + + + 3, 19 + + + 154, 208 + + + 0 + + + ListYellowPool + + + System.Windows.Forms.CheckedListBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpYellowPool + + + 0 + + + 458, 12 + + + 160, 230 + + + 49 + + + 5星活动奖池 + + + GrpYellowPool + + + System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 2 + + + Top, Bottom, Right + + + Bottom, Left + + + 6, 437 + + + 75, 23 + + + 53 + + + 生成Json + + + BtnGen + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpJson + + + 0 + + + Top, Bottom, Left, Right + + + 6, 19 + + + True + + + 288, 412 + + + 0 + + + TxtJson + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpJson + + + 1 + + + Bottom, Right + + + 219, 437 + + + 75, 23 + + + 52 + + + 解析Json + + + BtnParse + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpJson + + + 2 + + + 624, 12 + + + 300, 466 + + + 51 + + + Json + + + GrpJson + + + System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 0 True - - ru-RU - + + 7, 17 + + + 934, 486 + + + 微软雅黑, 9pt + + + 3, 4, 3, 4 + + + CenterScreen + + + 卡池编辑器 + + + FormGachaBannerEditor + + + System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + \ No newline at end of file diff --git a/Source/GrasscutterTools/Forms/FormGachaBannerEditor2.Designer.cs b/Source/GrasscutterTools/Forms/FormGachaBannerEditor2.Designer.cs new file mode 100644 index 0000000..b06ac21 --- /dev/null +++ b/Source/GrasscutterTools/Forms/FormGachaBannerEditor2.Designer.cs @@ -0,0 +1,603 @@ + +namespace GrasscutterTools.Forms +{ + partial class FormGachaBannerEditor2 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormGachaBannerEditor2)); + this.GrpBannerValues = new System.Windows.Forms.GroupBox(); + this.ChkAutoStripRateUpFromFallback = new System.Windows.Forms.CheckBox(); + this.LblOptions = new System.Windows.Forms.Label(); + this.ChkRemoveC6FormPool = new System.Windows.Forms.CheckBox(); + this.LnkOpenOldEditor = new System.Windows.Forms.LinkLabel(); + this.DTPEndTime = new System.Windows.Forms.DateTimePicker(); + this.DTPBeginTime = new System.Windows.Forms.DateTimePicker(); + this.CmbPrefab = new System.Windows.Forms.ComboBox(); + this.LblEventChance4Tip = new System.Windows.Forms.Label(); + this.LblEventChance5Tip = new System.Windows.Forms.Label(); + this.NUDEventChance4 = new System.Windows.Forms.NumericUpDown(); + this.NUDEventChance5 = new System.Windows.Forms.NumericUpDown(); + this.LblGachaType = new System.Windows.Forms.Label(); + this.LblEventChance4 = new System.Windows.Forms.Label(); + this.LblEventChance5 = new System.Windows.Forms.Label(); + this.LblSortId = new System.Windows.Forms.Label(); + this.NUDGachaType = new System.Windows.Forms.NumericUpDown(); + this.NUDSortId = new System.Windows.Forms.NumericUpDown(); + this.LblGachaTypeTip = new System.Windows.Forms.Label(); + this.LblEndTime = new System.Windows.Forms.Label(); + this.LblScheduleId = new System.Windows.Forms.Label(); + this.LblBeginTime = new System.Windows.Forms.Label(); + this.NUDScheduleId = new System.Windows.Forms.NumericUpDown(); + this.LblScheduleIdTip = new System.Windows.Forms.Label(); + this.CmbBannerType = new System.Windows.Forms.ComboBox(); + this.LblSortIdTip = new System.Windows.Forms.Label(); + this.LblBannerType = new System.Windows.Forms.Label(); + this.RbCostItem224 = new System.Windows.Forms.RadioButton(); + this.LblCostItem = new System.Windows.Forms.Label(); + this.LblPrefabPath = new System.Windows.Forms.Label(); + this.RbCostItem223 = new System.Windows.Forms.RadioButton(); + this.GrpFallbackPool = new System.Windows.Forms.GroupBox(); + this.ListFallbackItems = new System.Windows.Forms.ListView(); + this.ColFallbackId = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.ColFallbackName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.GrpUpPool = new System.Windows.Forms.GroupBox(); + this.ListUpItems = new System.Windows.Forms.ListView(); + this.ColUpId = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.ColUpName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.GrpJson = new System.Windows.Forms.GroupBox(); + this.BtnGen = new System.Windows.Forms.Button(); + this.TxtJson = new System.Windows.Forms.TextBox(); + this.BtnParse = new System.Windows.Forms.Button(); + this.GrpWeights = new System.Windows.Forms.GroupBox(); + this.LnkWeightHelp = new System.Windows.Forms.LinkLabel(); + this.TxtWeight4 = new System.Windows.Forms.TextBox(); + this.TxtWeight5 = new System.Windows.Forms.TextBox(); + this.LblWeight4 = new System.Windows.Forms.Label(); + this.LblWeight5 = new System.Windows.Forms.Label(); + this.GrpBalance = new System.Windows.Forms.GroupBox(); + this.TxtPoolWeight4 = new System.Windows.Forms.TextBox(); + this.TxtPoolWeight5 = new System.Windows.Forms.TextBox(); + this.LblPoolWeight4 = new System.Windows.Forms.Label(); + this.LblPoolWeight5 = new System.Windows.Forms.Label(); + this.GrpBannerValues.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.NUDEventChance4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUDEventChance5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUDGachaType)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUDSortId)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUDScheduleId)).BeginInit(); + this.GrpFallbackPool.SuspendLayout(); + this.GrpUpPool.SuspendLayout(); + this.GrpJson.SuspendLayout(); + this.GrpWeights.SuspendLayout(); + this.GrpBalance.SuspendLayout(); + this.SuspendLayout(); + // + // GrpBannerValues + // + resources.ApplyResources(this.GrpBannerValues, "GrpBannerValues"); + this.GrpBannerValues.Controls.Add(this.ChkAutoStripRateUpFromFallback); + this.GrpBannerValues.Controls.Add(this.LblOptions); + this.GrpBannerValues.Controls.Add(this.ChkRemoveC6FormPool); + this.GrpBannerValues.Controls.Add(this.LnkOpenOldEditor); + this.GrpBannerValues.Controls.Add(this.DTPEndTime); + this.GrpBannerValues.Controls.Add(this.DTPBeginTime); + this.GrpBannerValues.Controls.Add(this.CmbPrefab); + this.GrpBannerValues.Controls.Add(this.LblEventChance4Tip); + this.GrpBannerValues.Controls.Add(this.LblEventChance5Tip); + this.GrpBannerValues.Controls.Add(this.NUDEventChance4); + this.GrpBannerValues.Controls.Add(this.NUDEventChance5); + this.GrpBannerValues.Controls.Add(this.LblGachaType); + this.GrpBannerValues.Controls.Add(this.LblEventChance4); + this.GrpBannerValues.Controls.Add(this.LblEventChance5); + this.GrpBannerValues.Controls.Add(this.LblSortId); + this.GrpBannerValues.Controls.Add(this.NUDGachaType); + this.GrpBannerValues.Controls.Add(this.NUDSortId); + this.GrpBannerValues.Controls.Add(this.LblGachaTypeTip); + this.GrpBannerValues.Controls.Add(this.LblEndTime); + this.GrpBannerValues.Controls.Add(this.LblScheduleId); + this.GrpBannerValues.Controls.Add(this.LblBeginTime); + this.GrpBannerValues.Controls.Add(this.NUDScheduleId); + this.GrpBannerValues.Controls.Add(this.LblScheduleIdTip); + this.GrpBannerValues.Controls.Add(this.CmbBannerType); + this.GrpBannerValues.Controls.Add(this.LblSortIdTip); + this.GrpBannerValues.Controls.Add(this.LblBannerType); + this.GrpBannerValues.Controls.Add(this.RbCostItem224); + this.GrpBannerValues.Controls.Add(this.LblCostItem); + this.GrpBannerValues.Controls.Add(this.LblPrefabPath); + this.GrpBannerValues.Controls.Add(this.RbCostItem223); + this.GrpBannerValues.Name = "GrpBannerValues"; + this.GrpBannerValues.TabStop = false; + // + // ChkAutoStripRateUpFromFallback + // + resources.ApplyResources(this.ChkAutoStripRateUpFromFallback, "ChkAutoStripRateUpFromFallback"); + this.ChkAutoStripRateUpFromFallback.Name = "ChkAutoStripRateUpFromFallback"; + this.ChkAutoStripRateUpFromFallback.UseVisualStyleBackColor = true; + // + // LblOptions + // + resources.ApplyResources(this.LblOptions, "LblOptions"); + this.LblOptions.Name = "LblOptions"; + // + // ChkRemoveC6FormPool + // + resources.ApplyResources(this.ChkRemoveC6FormPool, "ChkRemoveC6FormPool"); + this.ChkRemoveC6FormPool.Name = "ChkRemoveC6FormPool"; + this.ChkRemoveC6FormPool.UseVisualStyleBackColor = true; + // + // LnkOpenOldEditor + // + resources.ApplyResources(this.LnkOpenOldEditor, "LnkOpenOldEditor"); + this.LnkOpenOldEditor.Name = "LnkOpenOldEditor"; + this.LnkOpenOldEditor.TabStop = true; + this.LnkOpenOldEditor.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LnkOpenOldEditor_LinkClicked); + // + // DTPEndTime + // + resources.ApplyResources(this.DTPEndTime, "DTPEndTime"); + this.DTPEndTime.MaxDate = new System.DateTime(2038, 1, 19, 0, 0, 0, 0); + this.DTPEndTime.MinDate = new System.DateTime(1970, 1, 1, 0, 0, 0, 0); + this.DTPEndTime.Name = "DTPEndTime"; + // + // DTPBeginTime + // + resources.ApplyResources(this.DTPBeginTime, "DTPBeginTime"); + this.DTPBeginTime.MaxDate = new System.DateTime(2038, 1, 19, 0, 0, 0, 0); + this.DTPBeginTime.MinDate = new System.DateTime(1970, 1, 1, 0, 0, 0, 0); + this.DTPBeginTime.Name = "DTPBeginTime"; + // + // CmbPrefab + // + resources.ApplyResources(this.CmbPrefab, "CmbPrefab"); + this.CmbPrefab.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.CmbPrefab.FormattingEnabled = true; + this.CmbPrefab.Name = "CmbPrefab"; + // + // LblEventChance4Tip + // + resources.ApplyResources(this.LblEventChance4Tip, "LblEventChance4Tip"); + this.LblEventChance4Tip.Name = "LblEventChance4Tip"; + // + // LblEventChance5Tip + // + resources.ApplyResources(this.LblEventChance5Tip, "LblEventChance5Tip"); + this.LblEventChance5Tip.Name = "LblEventChance5Tip"; + // + // NUDEventChance4 + // + resources.ApplyResources(this.NUDEventChance4, "NUDEventChance4"); + this.NUDEventChance4.Name = "NUDEventChance4"; + this.NUDEventChance4.Value = new decimal(new int[] { + 50, + 0, + 0, + 0}); + // + // NUDEventChance5 + // + resources.ApplyResources(this.NUDEventChance5, "NUDEventChance5"); + this.NUDEventChance5.Name = "NUDEventChance5"; + this.NUDEventChance5.Value = new decimal(new int[] { + 50, + 0, + 0, + 0}); + // + // LblGachaType + // + resources.ApplyResources(this.LblGachaType, "LblGachaType"); + this.LblGachaType.Name = "LblGachaType"; + // + // LblEventChance4 + // + resources.ApplyResources(this.LblEventChance4, "LblEventChance4"); + this.LblEventChance4.Name = "LblEventChance4"; + // + // LblEventChance5 + // + resources.ApplyResources(this.LblEventChance5, "LblEventChance5"); + this.LblEventChance5.Name = "LblEventChance5"; + // + // LblSortId + // + resources.ApplyResources(this.LblSortId, "LblSortId"); + this.LblSortId.Name = "LblSortId"; + // + // NUDGachaType + // + resources.ApplyResources(this.NUDGachaType, "NUDGachaType"); + this.NUDGachaType.Maximum = new decimal(new int[] { + 10000, + 0, + 0, + 0}); + this.NUDGachaType.Name = "NUDGachaType"; + this.NUDGachaType.Value = new decimal(new int[] { + 400, + 0, + 0, + 0}); + // + // NUDSortId + // + resources.ApplyResources(this.NUDSortId, "NUDSortId"); + this.NUDSortId.Maximum = new decimal(new int[] { + 9999, + 0, + 0, + 0}); + this.NUDSortId.Minimum = new decimal(new int[] { + 1000, + 0, + 0, + 0}); + this.NUDSortId.Name = "NUDSortId"; + this.NUDSortId.Value = new decimal(new int[] { + 1000, + 0, + 0, + 0}); + // + // LblGachaTypeTip + // + resources.ApplyResources(this.LblGachaTypeTip, "LblGachaTypeTip"); + this.LblGachaTypeTip.Name = "LblGachaTypeTip"; + // + // LblEndTime + // + resources.ApplyResources(this.LblEndTime, "LblEndTime"); + this.LblEndTime.Name = "LblEndTime"; + // + // LblScheduleId + // + resources.ApplyResources(this.LblScheduleId, "LblScheduleId"); + this.LblScheduleId.Name = "LblScheduleId"; + // + // LblBeginTime + // + resources.ApplyResources(this.LblBeginTime, "LblBeginTime"); + this.LblBeginTime.Name = "LblBeginTime"; + // + // NUDScheduleId + // + resources.ApplyResources(this.NUDScheduleId, "NUDScheduleId"); + this.NUDScheduleId.Maximum = new decimal(new int[] { + 10000, + 0, + 0, + 0}); + this.NUDScheduleId.Name = "NUDScheduleId"; + this.NUDScheduleId.Value = new decimal(new int[] { + 800, + 0, + 0, + 0}); + // + // LblScheduleIdTip + // + resources.ApplyResources(this.LblScheduleIdTip, "LblScheduleIdTip"); + this.LblScheduleIdTip.Name = "LblScheduleIdTip"; + // + // CmbBannerType + // + resources.ApplyResources(this.CmbBannerType, "CmbBannerType"); + this.CmbBannerType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.CmbBannerType.FormattingEnabled = true; + this.CmbBannerType.Items.AddRange(new object[] { + resources.GetString("CmbBannerType.Items"), + resources.GetString("CmbBannerType.Items1"), + resources.GetString("CmbBannerType.Items2")}); + this.CmbBannerType.Name = "CmbBannerType"; + // + // LblSortIdTip + // + resources.ApplyResources(this.LblSortIdTip, "LblSortIdTip"); + this.LblSortIdTip.Name = "LblSortIdTip"; + // + // LblBannerType + // + resources.ApplyResources(this.LblBannerType, "LblBannerType"); + this.LblBannerType.Name = "LblBannerType"; + // + // RbCostItem224 + // + resources.ApplyResources(this.RbCostItem224, "RbCostItem224"); + this.RbCostItem224.Checked = true; + this.RbCostItem224.Name = "RbCostItem224"; + this.RbCostItem224.TabStop = true; + this.RbCostItem224.UseVisualStyleBackColor = true; + // + // LblCostItem + // + resources.ApplyResources(this.LblCostItem, "LblCostItem"); + this.LblCostItem.Name = "LblCostItem"; + // + // LblPrefabPath + // + resources.ApplyResources(this.LblPrefabPath, "LblPrefabPath"); + this.LblPrefabPath.Name = "LblPrefabPath"; + // + // RbCostItem223 + // + resources.ApplyResources(this.RbCostItem223, "RbCostItem223"); + this.RbCostItem223.Name = "RbCostItem223"; + this.RbCostItem223.TabStop = true; + this.RbCostItem223.UseVisualStyleBackColor = true; + // + // GrpFallbackPool + // + resources.ApplyResources(this.GrpFallbackPool, "GrpFallbackPool"); + this.GrpFallbackPool.Controls.Add(this.ListFallbackItems); + this.GrpFallbackPool.Name = "GrpFallbackPool"; + this.GrpFallbackPool.TabStop = false; + // + // ListFallbackItems + // + resources.ApplyResources(this.ListFallbackItems, "ListFallbackItems"); + this.ListFallbackItems.CheckBoxes = true; + this.ListFallbackItems.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { + this.ColFallbackId, + this.ColFallbackName}); + this.ListFallbackItems.FullRowSelect = true; + this.ListFallbackItems.Groups.AddRange(new System.Windows.Forms.ListViewGroup[] { + ((System.Windows.Forms.ListViewGroup)(resources.GetObject("ListFallbackItems.Groups"))), + ((System.Windows.Forms.ListViewGroup)(resources.GetObject("ListFallbackItems.Groups1"))), + ((System.Windows.Forms.ListViewGroup)(resources.GetObject("ListFallbackItems.Groups2"))), + ((System.Windows.Forms.ListViewGroup)(resources.GetObject("ListFallbackItems.Groups3"))), + ((System.Windows.Forms.ListViewGroup)(resources.GetObject("ListFallbackItems.Groups4"))), + ((System.Windows.Forms.ListViewGroup)(resources.GetObject("ListFallbackItems.Groups5")))}); + this.ListFallbackItems.HideSelection = false; + this.ListFallbackItems.Name = "ListFallbackItems"; + this.ListFallbackItems.UseCompatibleStateImageBehavior = false; + this.ListFallbackItems.View = System.Windows.Forms.View.Details; + // + // ColFallbackId + // + resources.ApplyResources(this.ColFallbackId, "ColFallbackId"); + // + // ColFallbackName + // + resources.ApplyResources(this.ColFallbackName, "ColFallbackName"); + // + // GrpUpPool + // + resources.ApplyResources(this.GrpUpPool, "GrpUpPool"); + this.GrpUpPool.Controls.Add(this.ListUpItems); + this.GrpUpPool.Name = "GrpUpPool"; + this.GrpUpPool.TabStop = false; + // + // ListUpItems + // + resources.ApplyResources(this.ListUpItems, "ListUpItems"); + this.ListUpItems.CheckBoxes = true; + this.ListUpItems.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { + this.ColUpId, + this.ColUpName}); + this.ListUpItems.FullRowSelect = true; + this.ListUpItems.Groups.AddRange(new System.Windows.Forms.ListViewGroup[] { + ((System.Windows.Forms.ListViewGroup)(resources.GetObject("ListUpItems.Groups"))), + ((System.Windows.Forms.ListViewGroup)(resources.GetObject("ListUpItems.Groups1"))), + ((System.Windows.Forms.ListViewGroup)(resources.GetObject("ListUpItems.Groups2"))), + ((System.Windows.Forms.ListViewGroup)(resources.GetObject("ListUpItems.Groups3")))}); + this.ListUpItems.HideSelection = false; + this.ListUpItems.Name = "ListUpItems"; + this.ListUpItems.UseCompatibleStateImageBehavior = false; + this.ListUpItems.View = System.Windows.Forms.View.Details; + // + // ColUpId + // + resources.ApplyResources(this.ColUpId, "ColUpId"); + // + // ColUpName + // + resources.ApplyResources(this.ColUpName, "ColUpName"); + // + // GrpJson + // + resources.ApplyResources(this.GrpJson, "GrpJson"); + this.GrpJson.Controls.Add(this.BtnGen); + this.GrpJson.Controls.Add(this.TxtJson); + this.GrpJson.Controls.Add(this.BtnParse); + this.GrpJson.Name = "GrpJson"; + this.GrpJson.TabStop = false; + // + // BtnGen + // + resources.ApplyResources(this.BtnGen, "BtnGen"); + this.BtnGen.Name = "BtnGen"; + this.BtnGen.UseVisualStyleBackColor = true; + this.BtnGen.Click += new System.EventHandler(this.BtnGen_Click); + // + // TxtJson + // + resources.ApplyResources(this.TxtJson, "TxtJson"); + this.TxtJson.Name = "TxtJson"; + // + // BtnParse + // + resources.ApplyResources(this.BtnParse, "BtnParse"); + this.BtnParse.Name = "BtnParse"; + this.BtnParse.UseVisualStyleBackColor = true; + this.BtnParse.Click += new System.EventHandler(this.BtnParse_Click); + // + // GrpWeights + // + resources.ApplyResources(this.GrpWeights, "GrpWeights"); + this.GrpWeights.Controls.Add(this.LnkWeightHelp); + this.GrpWeights.Controls.Add(this.TxtWeight4); + this.GrpWeights.Controls.Add(this.TxtWeight5); + this.GrpWeights.Controls.Add(this.LblWeight4); + this.GrpWeights.Controls.Add(this.LblWeight5); + this.GrpWeights.Name = "GrpWeights"; + this.GrpWeights.TabStop = false; + // + // LnkWeightHelp + // + resources.ApplyResources(this.LnkWeightHelp, "LnkWeightHelp"); + this.LnkWeightHelp.Name = "LnkWeightHelp"; + this.LnkWeightHelp.TabStop = true; + this.LnkWeightHelp.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LnkWeightHelp_LinkClicked); + // + // TxtWeight4 + // + resources.ApplyResources(this.TxtWeight4, "TxtWeight4"); + this.TxtWeight4.Name = "TxtWeight4"; + // + // TxtWeight5 + // + resources.ApplyResources(this.TxtWeight5, "TxtWeight5"); + this.TxtWeight5.Name = "TxtWeight5"; + // + // LblWeight4 + // + resources.ApplyResources(this.LblWeight4, "LblWeight4"); + this.LblWeight4.Name = "LblWeight4"; + // + // LblWeight5 + // + resources.ApplyResources(this.LblWeight5, "LblWeight5"); + this.LblWeight5.Name = "LblWeight5"; + // + // GrpBalance + // + resources.ApplyResources(this.GrpBalance, "GrpBalance"); + this.GrpBalance.Controls.Add(this.TxtPoolWeight4); + this.GrpBalance.Controls.Add(this.TxtPoolWeight5); + this.GrpBalance.Controls.Add(this.LblPoolWeight4); + this.GrpBalance.Controls.Add(this.LblPoolWeight5); + this.GrpBalance.Name = "GrpBalance"; + this.GrpBalance.TabStop = false; + // + // TxtPoolWeight4 + // + resources.ApplyResources(this.TxtPoolWeight4, "TxtPoolWeight4"); + this.TxtPoolWeight4.Name = "TxtPoolWeight4"; + // + // TxtPoolWeight5 + // + resources.ApplyResources(this.TxtPoolWeight5, "TxtPoolWeight5"); + this.TxtPoolWeight5.Name = "TxtPoolWeight5"; + // + // LblPoolWeight4 + // + resources.ApplyResources(this.LblPoolWeight4, "LblPoolWeight4"); + this.LblPoolWeight4.Name = "LblPoolWeight4"; + // + // LblPoolWeight5 + // + resources.ApplyResources(this.LblPoolWeight5, "LblPoolWeight5"); + this.LblPoolWeight5.Name = "LblPoolWeight5"; + // + // FormGachaBannerEditor2 + // + resources.ApplyResources(this, "$this"); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.GrpBalance); + this.Controls.Add(this.GrpWeights); + this.Controls.Add(this.GrpJson); + this.Controls.Add(this.GrpFallbackPool); + this.Controls.Add(this.GrpUpPool); + this.Controls.Add(this.GrpBannerValues); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; + this.Name = "FormGachaBannerEditor2"; + this.GrpBannerValues.ResumeLayout(false); + this.GrpBannerValues.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.NUDEventChance4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUDEventChance5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUDGachaType)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUDSortId)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUDScheduleId)).EndInit(); + this.GrpFallbackPool.ResumeLayout(false); + this.GrpUpPool.ResumeLayout(false); + this.GrpJson.ResumeLayout(false); + this.GrpJson.PerformLayout(); + this.GrpWeights.ResumeLayout(false); + this.GrpWeights.PerformLayout(); + this.GrpBalance.ResumeLayout(false); + this.GrpBalance.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + private System.Windows.Forms.GroupBox GrpBannerValues; + private System.Windows.Forms.Label LblEventChance5Tip; + private System.Windows.Forms.NumericUpDown NUDEventChance5; + private System.Windows.Forms.Label LblGachaType; + private System.Windows.Forms.Label LblEventChance5; + private System.Windows.Forms.Label LblSortId; + private System.Windows.Forms.NumericUpDown NUDGachaType; + private System.Windows.Forms.NumericUpDown NUDSortId; + private System.Windows.Forms.Label LblGachaTypeTip; + private System.Windows.Forms.Label LblEndTime; + private System.Windows.Forms.Label LblScheduleId; + private System.Windows.Forms.Label LblBeginTime; + private System.Windows.Forms.NumericUpDown NUDScheduleId; + private System.Windows.Forms.Label LblScheduleIdTip; + private System.Windows.Forms.ComboBox CmbBannerType; + private System.Windows.Forms.Label LblSortIdTip; + private System.Windows.Forms.Label LblBannerType; + private System.Windows.Forms.RadioButton RbCostItem224; + private System.Windows.Forms.Label LblCostItem; + private System.Windows.Forms.Label LblPrefabPath; + private System.Windows.Forms.RadioButton RbCostItem223; + private System.Windows.Forms.GroupBox GrpFallbackPool; + private System.Windows.Forms.GroupBox GrpUpPool; + private System.Windows.Forms.GroupBox GrpJson; + private System.Windows.Forms.TextBox TxtJson; + private System.Windows.Forms.Button BtnGen; + private System.Windows.Forms.Button BtnParse; + private System.Windows.Forms.ComboBox CmbPrefab; + private System.Windows.Forms.Label LblEventChance4; + private System.Windows.Forms.Label LblEventChance4Tip; + private System.Windows.Forms.NumericUpDown NUDEventChance4; + private System.Windows.Forms.DateTimePicker DTPEndTime; + private System.Windows.Forms.DateTimePicker DTPBeginTime; + private System.Windows.Forms.ListView ListFallbackItems; + private System.Windows.Forms.ListView ListUpItems; + private System.Windows.Forms.ColumnHeader ColFallbackId; + private System.Windows.Forms.ColumnHeader ColFallbackName; + private System.Windows.Forms.ColumnHeader ColUpId; + private System.Windows.Forms.ColumnHeader ColUpName; + private System.Windows.Forms.GroupBox GrpWeights; + private System.Windows.Forms.GroupBox GrpBalance; + private System.Windows.Forms.TextBox TxtWeight4; + private System.Windows.Forms.TextBox TxtWeight5; + private System.Windows.Forms.Label LblWeight4; + private System.Windows.Forms.Label LblWeight5; + private System.Windows.Forms.LinkLabel LnkWeightHelp; + private System.Windows.Forms.LinkLabel LnkOpenOldEditor; + private System.Windows.Forms.TextBox TxtPoolWeight4; + private System.Windows.Forms.TextBox TxtPoolWeight5; + private System.Windows.Forms.Label LblPoolWeight4; + private System.Windows.Forms.Label LblPoolWeight5; + private System.Windows.Forms.CheckBox ChkRemoveC6FormPool; + private System.Windows.Forms.CheckBox ChkAutoStripRateUpFromFallback; + private System.Windows.Forms.Label LblOptions; + } +} \ No newline at end of file diff --git a/Source/GrasscutterTools/Forms/FormGachaBannerEditor2.cs b/Source/GrasscutterTools/Forms/FormGachaBannerEditor2.cs new file mode 100644 index 0000000..cb12a77 --- /dev/null +++ b/Source/GrasscutterTools/Forms/FormGachaBannerEditor2.cs @@ -0,0 +1,317 @@ +/** + * Grasscutter Tools + * Copyright (C) 2022 jie65535 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + **/ + +using System; +using System.Collections.Generic; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Windows.Forms; + +using GrasscutterTools.Game; +using GrasscutterTools.Game.Gacha; +using GrasscutterTools.Properties; + +using Newtonsoft.Json; + +namespace GrasscutterTools.Forms +{ + /// + /// 卡池编辑器 + /// + public partial class FormGachaBannerEditor2 : Form + { + public FormGachaBannerEditor2() + { + InitializeComponent(); + + Icon = Resources.IconGrasscutter; + CmbBannerType.SelectedIndex = 0; + InitBannerPrefab(); + InitCheckedListBoxs(); + + ShowBanner(new GachaBanner2()); + } + + private void InitBannerPrefab() + { + CmbPrefab.Items.Clear(); + 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"); + } + + private void LnkOpenOldEditor_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + { + new FormGachaBannerEditor().ShowDialog(); + } + + #region - 卡池 - + + private void InitCheckedListBoxs() + { + ListFallbackItems.BeginUpdate(); + var a5 = ListFallbackItems.Groups["GroupA5"]; + var a4 = ListFallbackItems.Groups["GroupA4"]; + var a3 = ListFallbackItems.Groups["GroupA3"]; + var w5 = ListFallbackItems.Groups["GroupW5"]; + var w4 = ListFallbackItems.Groups["GroupW4"]; + var w3 = ListFallbackItems.Groups["GroupW3"]; + var avatars = GetAvatarsByColor("yellow") + .Select(it => new ListViewItem(new string[] { it.Item1.ToString(), it.Item2 }, a5) { ForeColor = Color.OrangeRed }) + .Concat(GetAvatarsByColor("purple") + .Select(it => new ListViewItem(new string[] { it.Item1.ToString(), it.Item2 }, a4) { ForeColor = Color.Purple })) + .Concat(GetAvatarsByColor("blue") + .Select(it => new ListViewItem(new string[] { it.Item1.ToString(), it.Item2 }, a3) { ForeColor = Color.Blue })); + var weapons = GetWeaponsByColor("yellow") + .Select(it => new ListViewItem(new string[] { it.Item1.ToString(), it.Item2 }, w5) { ForeColor = Color.OrangeRed }) + .Concat(GetWeaponsByColor("purple") + .Select(it => new ListViewItem(new string[] { it.Item1.ToString(), it.Item2 }, w4) { ForeColor = Color.Purple })) + .Concat(GetWeaponsByColor("blue") + .Select(it => new ListViewItem(new string[] { it.Item1.ToString(), it.Item2 }, w3) { ForeColor = Color.Blue })); + ListFallbackItems.Items.Clear(); + ListFallbackItems.Items.AddRange(avatars.Concat(weapons).ToArray()); + + ListUpItems.BeginUpdate(); + var ua5 = ListUpItems.Groups["GroupUpA5"]; + var ua4 = ListUpItems.Groups["GroupUpA4"]; + var uw5 = ListUpItems.Groups["GroupUpW5"]; + var uw4 = ListUpItems.Groups["GroupUpW4"]; + var upAvatars = GetAvatarsByColor("yellow") + .Select(it => new ListViewItem(new string[] { it.Item1.ToString(), it.Item2 }, ua5) { ForeColor = Color.OrangeRed }) + .Concat(GetAvatarsByColor("purple") + .Select(it => new ListViewItem(new string[] { it.Item1.ToString(), it.Item2 }, ua4) { ForeColor = Color.Purple })); + var upWeapons = GetWeaponsByColor("yellow") + .Select(it => new ListViewItem(new string[] { it.Item1.ToString(), it.Item2 }, uw5) { ForeColor = Color.OrangeRed }) + .Concat(GetWeaponsByColor("purple") + .Select(it => new ListViewItem(new string[] { it.Item1.ToString(), it.Item2 }, uw4) { ForeColor = Color.Purple })); + ListUpItems.Items.Clear(); + ListUpItems.Items.AddRange(upAvatars.Concat(upWeapons).ToArray()); + + ListFallbackItems.EndUpdate(); + ListUpItems.EndUpdate(); + } + + private IEnumerable<(int, string)> GetAvatarsByColor(string color) + { + for (int i = 0; i < GameData.AvatarColors.Count; i++) + { + if (GameData.AvatarColors.Names[i] == color) + { + var id = GameData.AvatarColors.Ids[i]; + var index = Array.IndexOf(GameData.Avatars.Ids, id % 1000 + 10000000); + if (index >= 0) + yield return (id, GameData.Avatars.Names[index]); + } + } + } + + private IEnumerable<(int, string)> GetWeaponsByColor(string color) + { + for (int i = 0; i < GameData.WeaponColors.Count; i++) + { + if (GameData.WeaponColors.Names[i] == color) + { + var id = GameData.WeaponColors.Ids[i]; + var index = Array.IndexOf(GameData.Weapons.Ids, id); + if (index >= 0) + yield return (id, GameData.Weapons.Names[index]); + } + } + } + + private void InitItems(GachaBanner2 banner) + { + var f = banner.FallbackItems3 + .Concat(banner.FallbackItems4Pool1) + .Concat(banner.FallbackItems4Pool2) + .Concat(banner.FallbackItems5Pool1) + .Concat(banner.FallbackItems5Pool2) + .ToArray(); + foreach (ListViewItem item in ListFallbackItems.Items) + item.Checked = Array.IndexOf(f, int.Parse(item.Text)) >= 0; + + var u = banner.RateUpItems4.Concat(banner.RateUpItems5).ToArray(); + foreach (ListViewItem item in ListUpItems.Items) + item.Checked = Array.IndexOf(u, int.Parse(item.Text)) >= 0; + } + + private IEnumerable GetCheckedItems(ListView list, ListViewGroup group) + { + foreach (ListViewItem item in list.CheckedItems) + if (item.Group == group) + yield return int.Parse(item.Text); + } + + #endregion - 卡池 - + + #region - 权重 - + + private struct GachaWeight + { + public int Count; + public int Weight; + + public GachaWeight(int count, int weight) + { + Count = count; + Weight = weight; + } + } + + private void InitWeights(GachaBanner2 banner) + { + TxtWeight5.Text = '[' + string.Join(", ", SelectWeights(banner.Weights5).Select(w => $"[{w.Count}, {w.Weight}]")) + ']'; + TxtWeight4.Text = '[' + string.Join(", ", SelectWeights(banner.Weights4).Select(w => $"[{w.Count}, {w.Weight}]")) + ']'; + TxtPoolWeight5.Text = '[' + string.Join(", ", SelectWeights(banner.PoolBalanceWeights5).Select(w => $"[{w.Count}, {w.Weight}]")) + ']'; + TxtPoolWeight4.Text = '[' + string.Join(", ", SelectWeights(banner.PoolBalanceWeights4).Select(w => $"[{w.Count}, {w.Weight}]")) + ']'; + } + + private IEnumerable SelectWeights(int[,] weights) + { + for (int i = 0; i < weights.GetLength(0); i++) + yield return new GachaWeight(weights[i, 0], weights[i, 1]); + } + + private int[,] GetWeights(string weights) + { + return JsonConvert.DeserializeObject(weights); + } + + #endregion - 权重 - + + #region - 序列化 - + + private void ShowBanner(GachaBanner2 banner) + { + try + { + NUDGachaType.Value = banner.GachaType; + NUDScheduleId.Value = banner.ScheduleId; + CmbBannerType.SelectedIndex = (int)banner.BannerType; + if (string.IsNullOrEmpty(banner.TitlePath) || !int.TryParse(banner.TitlePath.Substring("UI_GACHA_SHOW_PANEL_A".Length, 3), out int prefabId)) + CmbPrefab.SelectedIndex = -1; + else + CmbPrefab.SelectedIndex = Array.IndexOf(GameData.GachaBannerPrefabs.Ids, prefabId); + RbCostItem224.Checked = banner.CostItem == 224; + RbCostItem223.Checked = banner.CostItem == 223; + DTPBeginTime.Value = DateTimeOffset.FromUnixTimeSeconds(banner.BeginTime).DateTime; + DTPEndTime.Value = DateTimeOffset.FromUnixTimeSeconds(banner.EndTime).DateTime; + NUDSortId.Value = banner.SortId; + NUDEventChance5.Value = banner.EventChance5; + NUDEventChance4.Value = banner.EventChance4; + ChkRemoveC6FormPool.Checked = banner.RemoveC6FromPool; + ChkAutoStripRateUpFromFallback.Checked = banner.AutoStripRateUpFromFallback; + InitItems(banner); + InitWeights(banner); + } + catch (Exception ex) + { + MessageBox.Show("UI更新失败:" + ex.Message, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private GachaBanner2 ParseBanner() + { + if (CmbBannerType.SelectedIndex < 0) + { + MessageBox.Show("请选择奖池类型", Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error); + return null; + } + + if (CmbPrefab.SelectedIndex < 0) + { + MessageBox.Show("请选择奖池预制", Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error); + return null; + } + + var prefabId = GameData.GachaBannerPrefabs.Ids[CmbPrefab.SelectedIndex]; + var banner = new GachaBanner2 + { + GachaType = (int)NUDGachaType.Value, + ScheduleId = (int)NUDScheduleId.Value, + BannerType = (BannerType)CmbBannerType.SelectedIndex, + PrefabPath = $"GachaShowPanel_A{prefabId:000}", + PreviewPrefabPath = $"UI_Tab_GachaShowPanel_A{prefabId:000}", + TitlePath = $"UI_GACHA_SHOW_PANEL_A{prefabId:000}_TITLE", + CostItem = RbCostItem224.Checked ? 224 : 223, + BeginTime = (int)new DateTimeOffset(DTPBeginTime.Value, TimeSpan.Zero).ToUnixTimeSeconds(), + EndTime = (int)new DateTimeOffset(DTPEndTime.Value, TimeSpan.Zero).ToUnixTimeSeconds(), + SortId = (int)NUDSortId.Value, + EventChance5 = (int)NUDEventChance5.Value, + EventChance4 = (int)NUDEventChance4.Value, + + RateUpItems4 = GetCheckedItems(ListUpItems, ListUpItems.Groups["GroupUpA4"]) + .Concat(GetCheckedItems(ListUpItems, ListUpItems.Groups["GroupUpW4"])) + .ToArray(), + RateUpItems5 = GetCheckedItems(ListUpItems, ListUpItems.Groups["GroupUpA5"]) + .Concat(GetCheckedItems(ListUpItems, ListUpItems.Groups["GroupUpW5"])) + .ToArray(), + + FallbackItems3 = GetCheckedItems(ListFallbackItems, ListFallbackItems.Groups["GroupA3"]) + .Concat(GetCheckedItems(ListFallbackItems, ListFallbackItems.Groups["GroupW3"])) + .ToArray(), + FallbackItems4Pool1 = GetCheckedItems(ListFallbackItems, ListFallbackItems.Groups["GroupA4"]).ToArray(), + FallbackItems4Pool2 = GetCheckedItems(ListFallbackItems, ListFallbackItems.Groups["GroupW4"]).ToArray(), + FallbackItems5Pool1 = GetCheckedItems(ListFallbackItems, ListFallbackItems.Groups["GroupA5"]).ToArray(), + FallbackItems5Pool2 = GetCheckedItems(ListFallbackItems, ListFallbackItems.Groups["GroupW5"]).ToArray(), + + RemoveC6FromPool = ChkRemoveC6FormPool.Checked, + AutoStripRateUpFromFallback = ChkAutoStripRateUpFromFallback.Checked, + + Weights4 = GetWeights(TxtWeight4.Text), + Weights5 = GetWeights(TxtWeight5.Text), + PoolBalanceWeights4 = GetWeights(TxtPoolWeight4.Text), + PoolBalanceWeights5 = GetWeights(TxtPoolWeight5.Text), + }; + return banner; + } + + private void BtnGen_Click(object sender, EventArgs e) + { + try + { + var banner = ParseBanner(); + if (banner != null) + TxtJson.Text = JsonConvert.SerializeObject(banner, Formatting.Indented); + } + catch (Exception ex) + { + MessageBox.Show(ex.Message, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void BtnParse_Click(object sender, EventArgs e) + { + try + { + ShowBanner(JsonConvert.DeserializeObject(TxtJson.Text)); + } + catch (Exception ex) + { + MessageBox.Show(ex.Message, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + #endregion - 序列化 - + } +} \ No newline at end of file diff --git a/Source/GrasscutterTools/Forms/FormGachaBannerEditor2.en-us.resx b/Source/GrasscutterTools/Forms/FormGachaBannerEditor2.en-us.resx new file mode 100644 index 0000000..aefb744 --- /dev/null +++ b/Source/GrasscutterTools/Forms/FormGachaBannerEditor2.en-us.resx @@ -0,0 +1,437 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + 112, 287 + + + 225, 21 + + + Auto Strip Rate Up From Fall back + + + 60, 260 + + + 46, 17 + + + Optins + + + 157, 21 + + + Remove C6 Form Pool + + + 102, 17 + + + Open old editor + + + 200, 233 + + + 96, 17 + + + Event Chance 4 + + + 10, 233 + + + 96, 17 + + + Event Chance 5 + + + 72, 204 + + + Sort + + + 123, 17 + + + Increment from 400 + + + 62, 17 + + + End Time + + + 32, 175 + + + 73, 17 + + + Begin Time + + + 49, 17 + + + Unique + + + Standard Wish + + + Character Event Wish + + + Weapon Event Wish + + + 76, 17 + + + Show order + + + 25, 87 + + + 81, 17 + + + Banner Type + + + 104, 21 + + + Acquaint Fate + + + 41, 148 + + + 64, 17 + + + Cost Item + + + 59, 118 + + + 46, 17 + + + Prefab + + + 222, 146 + + + 119, 21 + + + Intertwined Fate + + + Banner + + + + AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w + LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACJTeXN0 + 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wBAAAAAZIZWFkZXIPSGVhZGVyQWxpZ25tZW50A1Rh + ZwROYW1lAQQCAShTeXN0ZW0uV2luZG93cy5Gb3Jtcy5Ib3Jpem9udGFsQWxpZ25tZW50AgAAAAIAAAAG + AwAAAAo05pif5q2m5ZmoBfz///8oU3lzdGVtLldpbmRvd3MuRm9ybXMuSG9yaXpvbnRhbEFsaWdubWVu + dAEAAAAHdmFsdWVfXwAIAgAAAAAAAAAKBgUAAAAJR3JvdXBVcFc0Cw== + + + + Up Pool + + + 85, 23 + + + Gen Json + + + 209, 437 + + + 85, 23 + + + Parse Json + + + 399, 0 + + + 35, 17 + + + Help + + + 40, 61 + + + 66, 17 + + + Weights 4 + + + 40, 32 + + + 66, 17 + + + Weights 5 + + + Gacha weights + + + 16, 61 + + + 90, 17 + + + Pool Weight 4 + + + 16, 32 + + + 90, 17 + + + Pool Weight 5 + + + Character and weapon balance (only mixed pools work) + + + Gacha Banner Editor + + \ No newline at end of file diff --git a/Source/GrasscutterTools/Forms/FormGachaBannerEditor2.resx b/Source/GrasscutterTools/Forms/FormGachaBannerEditor2.resx new file mode 100644 index 0000000..53a3e0c --- /dev/null +++ b/Source/GrasscutterTools/Forms/FormGachaBannerEditor2.resx @@ -0,0 +1,1591 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + True + + + GrpBannerValues + + + System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + Bottom, Left + + + True + + + System.Windows.Forms.RadioButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + 112, 58 + + + 2 + + + True + + + GrpBannerValues + + + 100, 23 + + + 34, 28 + + + 24 + + + 65 + + + 17 + + + LblBeginTime + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 相遇之缘 + + + 卡池参数 + + + System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 2 + + + 371, 233 + + + 2 + + + LblEventChance5Tip + + + Fill + + + GrpBannerValues + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Top, Bottom, Right + + + ColUpName + + + LblEventChance4 + + + GrpBannerValues + + + BtnParse + + + True + + + 5 + + + % + + + True + + + 2 + + + Fill + + + System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 12, 347 + + + GrpBannerValues + + + LblBannerType + + + + AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w + LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACJTeXN0 + ZW0uV2luZG93cy5Gb3Jtcy5MaXN0Vmlld0dyb3VwBAAAAAZIZWFkZXIPSGVhZGVyQWxpZ25tZW50A1Rh + ZwROYW1lAQQCAShTeXN0ZW0uV2luZG93cy5Gb3Jtcy5Ib3Jpem9udGFsQWxpZ25tZW50AgAAAAIAAAAG + AwAAAAo15pif6KeS6ImyBfz///8oU3lzdGVtLldpbmRvd3MuRm9ybXMuSG9yaXpvbnRhbEFsaWdubWVu + dAEAAAAHdmFsdWVfXwAIAgAAAAAAAAAKBgUAAAAHR3JvdXBBNQs= + + + + 0 + + + GrpWeights + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w + LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACJTeXN0 + ZW0uV2luZG93cy5Gb3Jtcy5MaXN0Vmlld0dyb3VwBAAAAAZIZWFkZXIPSGVhZGVyQWxpZ25tZW50A1Rh + ZwROYW1lAQQCAShTeXN0ZW0uV2luZG93cy5Gb3Jtcy5Ib3Jpem9udGFsQWxpZ25tZW50AgAAAAIAAAAG + AwAAAAo15pif5q2m5ZmoBfz///8oU3lzdGVtLldpbmRvd3MuRm9ybXMuSG9yaXpvbnRhbEFsaWdubWVu + dAEAAAAHdmFsdWVfXwAIAgAAAAAAAAAKBgUAAAAHR3JvdXBXNQs= + + + + 19, 17 + + + + AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w + LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACJTeXN0 + ZW0uV2luZG93cy5Gb3Jtcy5MaXN0Vmlld0dyb3VwBAAAAAZIZWFkZXIPSGVhZGVyQWxpZ25tZW50A1Rh + ZwROYW1lAQQCAShTeXN0ZW0uV2luZG93cy5Gb3Jtcy5Ib3Jpem9udGFsQWxpZ25tZW50AgAAAAIAAAAG + AwAAAAo05pif5q2m5ZmoBfz///8oU3lzdGVtLldpbmRvd3MuRm9ybXMuSG9yaXpvbnRhbEFsaWdubWVu + dAEAAAAHdmFsdWVfXwAIAgAAAAAAAAAKBgUAAAAHR3JvdXBXNAs= + + + + + AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w + LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACJTeXN0 + ZW0uV2luZG93cy5Gb3Jtcy5MaXN0Vmlld0dyb3VwBAAAAAZIZWFkZXIPSGVhZGVyQWxpZ25tZW50A1Rh + ZwROYW1lAQQCAShTeXN0ZW0uV2luZG93cy5Gb3Jtcy5Ib3Jpem9udGFsQWxpZ25tZW50AgAAAAIAAAAG + AwAAAAo05pif6KeS6ImyBfz///8oU3lzdGVtLldpbmRvd3MuRm9ybXMuSG9yaXpvbnRhbEFsaWdubWVu + dAEAAAAHdmFsdWVfXwAIAgAAAAAAAAAKBgUAAAAHR3JvdXBBNAs= + + + + + AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w + LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACJTeXN0 + ZW0uV2luZG93cy5Gb3Jtcy5MaXN0Vmlld0dyb3VwBAAAAAZIZWFkZXIPSGVhZGVyQWxpZ25tZW50A1Rh + ZwROYW1lAQQCAShTeXN0ZW0uV2luZG93cy5Gb3Jtcy5Ib3Jpem9udGFsQWxpZ25tZW50AgAAAAIAAAAG + AwAAAAoz5pif6KeS6ImyBfz///8oU3lzdGVtLldpbmRvd3MuRm9ybXMuSG9yaXpvbnRhbEFsaWdubWVu + dAEAAAAHdmFsdWVfXwAIAgAAAAAAAAAKBgUAAAAHR3JvdXBXMws= + + + + 限时角色祈愿池 + + + 110, 23 + + + LblEventChance5 + + + 72, 17 + + + 12, 453 + + + 1 + + + 纠缠之缘 + + + 4 + + + GrpWeights + + + CmbBannerType + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 32, 17 + + + 300, 23 + + + 9 + + + 9 + + + Bottom, Left + + + 89 + + + 55, 32 + + + 22 + + + True + + + 1 + + + DTPBeginTime + + + 88 + + + 3 + + + 预制 + + + UP池 + + + 1 + + + 6 + + + 74, 21 + + + 300, 23 + + + 15 + + + LblPoolWeight5 + + + 解析Json + + + 53 + + + GrpWeights + + + NUDEventChance5 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 16 + + + 0 + + + 984, 561 + + + GrpJson + + + GrpBalance + + + GrpBannerValues + + + GrpFallbackPool + + + 112, 115 + + + True + + + % + + + True + + + 4星权重 + + + 4 + + + ListUpItems + + + 结束时间 + + + 7 + + + 10 + + + 458, 12 + + + 顺序 + + + 440, 329 + + + 63, 23 + + + 300, 25 + + + 角色和武器平衡机制(仅混合池有效) + + + 20 + + + NUDSortId + + + 8 + + + True + + + + AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w + LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACJTeXN0 + ZW0uV2luZG93cy5Gb3Jtcy5MaXN0Vmlld0dyb3VwBAAAAAZIZWFkZXIPSGVhZGVyQWxpZ25tZW50A1Rh + ZwROYW1lAQQCAShTeXN0ZW0uV2luZG93cy5Gb3Jtcy5Ib3Jpem9udGFsQWxpZ25tZW50AgAAAAIAAAAG + AwAAAAo05pif5q2m5ZmoBfz///8oU3lzdGVtLldpbmRvd3MuRm9ybXMuSG9yaXpvbnRhbEFsaWdubWVu + dAEAAAAHdmFsdWVfXwAIAgAAAAAAAAAKBgUAAAAJR3JvdXBVcFc0Cw== + + + + + AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w + LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACJTeXN0 + ZW0uV2luZG93cy5Gb3Jtcy5MaXN0Vmlld0dyb3VwBAAAAAZIZWFkZXIPSGVhZGVyQWxpZ25tZW50A1Rh + ZwROYW1lAQQCAShTeXN0ZW0uV2luZG93cy5Gb3Jtcy5Ib3Jpem9udGFsQWxpZ25tZW50AgAAAAIAAAAG + AwAAAAo05pif6KeS6ImyBfz///8oU3lzdGVtLldpbmRvd3MuRm9ybXMuSG9yaXpvbnRhbEFsaWdubWVu + dAEAAAAHdmFsdWVfXwAIAgAAAAAAAAAKBgUAAAAJR3JvdXBVcEE0Cw== + + + + + AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w + LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACJTeXN0 + ZW0uV2luZG93cy5Gb3Jtcy5MaXN0Vmlld0dyb3VwBAAAAAZIZWFkZXIPSGVhZGVyQWxpZ25tZW50A1Rh + ZwROYW1lAQQCAShTeXN0ZW0uV2luZG93cy5Gb3Jtcy5Ib3Jpem9udGFsQWxpZ25tZW50AgAAAAIAAAAG + AwAAAAo15pif5q2m5ZmoBfz///8oU3lzdGVtLldpbmRvd3MuRm9ybXMuSG9yaXpvbnRhbEFsaWdubWVu + dAEAAAAHdmFsdWVfXwAIAgAAAAAAAAAKBgUAAAAJR3JvdXBVcFc1Cw== + + + + GrpBannerValues + + + 帮助 + + + System.Windows.Forms.ColumnHeader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + 26 + + + 210, 230 + + + GrpBannerValues + + + 91 + + + True + + + 0 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 110 + + + 6 + + + 0 + + + 112, 173 + + + 1 + + + 112, 146 + + + 5 + + + True + + + 458, 248 + + + 0 + + + GrpBalance + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 112, 260 + + + 客户端中显示的顺序 + + + 112, 29 + + + True + + + 125, 17 + + + GrpBannerValues + + + 3 + + + 4 + + + ListFallbackItems + + + 300, 541 + + + 6, 309 + + + LblEndTime + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + BtnGen + + + 5 + + + Json + + + 0 + + + System.Windows.Forms.ListView, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 23 + + + Bottom, Left + + + 204, 208 + + + 28 + + + LblSortIdTip + + + System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 104, 17 + + + 88 + + + 27 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 204, 283 + + + LblSortId + + + GrpWeights + + + 65 + + + 避免命座溢出 + + + NoControl + + + Name + + + Top, Bottom, Left + + + GrpBannerValues + + + System.Windows.Forms.DateTimePicker, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w + LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACJTeXN0 + ZW0uV2luZG93cy5Gb3Jtcy5MaXN0Vmlld0dyb3VwBAAAAAZIZWFkZXIPSGVhZGVyQWxpZ25tZW50A1Rh + ZwROYW1lAQQCAShTeXN0ZW0uV2luZG93cy5Gb3Jtcy5Ib3Jpem9udGFsQWxpZ25tZW50AgAAAAIAAAAG + AwAAAAoz5pif6KeS6ImyBfz///8oU3lzdGVtLldpbmRvd3MuRm9ybXMuSG9yaXpvbnRhbEFsaWdubWVu + dAEAAAAHdmFsdWVfXwAIAgAAAAAAAAAKBgUAAAAHR3JvdXBBMws= + + + + System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 1 + + + 25 + + + 5星活动爆率 + + + 5 + + + $this + + + RbCostItem223 + + + 181, 233 + + + 18 + + + True + + + 19, 17 + + + True + + + 112, 29 + + + 210, 305 + + + + AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w + LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACJTeXN0 + ZW0uV2luZG93cy5Gb3Jtcy5MaXN0Vmlld0dyb3VwBAAAAAZIZWFkZXIPSGVhZGVyQWxpZ25tZW50A1Rh + ZwROYW1lAQQCAShTeXN0ZW0uV2luZG93cy5Gb3Jtcy5Ib3Jpem9udGFsQWxpZ25tZW50AgAAAAIAAAAG + AwAAAAo15pif6KeS6ImyBfz///8oU3lzdGVtLldpbmRvd3MuRm9ybXMuSG9yaXpvbnRhbEFsaWdubWVu + dAEAAAAHdmFsdWVfXwAIAgAAAAAAAAAKBgUAAAAJR3JvdXBVcEE1Cw== + + + + 302, 231 + + + 74, 261 + + + 83 + + + 56 + + + LblCostItem + + + GrpBannerValues + + + GrpBannerValues + + + 6, 19 + + + 440, 100 + + + LblEventChance4Tip + + + LblWeight4 + + + True + + + 112, 231 + + + Vertical + + + 8 + + + NoControl + + + 0 + + + 0 + + + GrpBannerValues + + + GrpBannerValues + + + 2 + + + 3 + + + System.Windows.Forms.ColumnHeader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + NUDEventChance4 + + + $this + + + 219, 512 + + + True + + + LblScheduleId + + + 56, 17 + + + 0 + + + 90 + + + 19 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GachaType + + + 51, 17 + + + Top, Bottom, Left, Right + + + 2 + + + 110, 23 + + + 打开旧版本编辑器 + + + System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 1 + + + 55, 61 + + + System.Windows.Forms.LinkLabel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 5 + + + 112, 202 + + + 34, 57 + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 3, 19 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 288, 487 + + + ID + + + 32, 17 + + + 2 + + + 生成Json + + + TxtJson + + + 74 + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 自动避免UP被基础抽中 + + + True + + + 21 + + + GrpBalance + + + 祈愿道具 + + + 100, 23 + + + 112, 55 + + + 选项 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + TxtWeight4 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBalance + + + 10 + + + 240, 176 + + + System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.ColumnHeader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBannerValues + + + 89 + + + GrpBannerValues + + + LnkWeightHelp + + + 218, 57 + + + RbCostItem224 + + + 1 + + + ChkRemoveC6FormPool + + + 14 + + + 674, 12 + + + GrpBannerValues + + + 4 + + + 卡池权重与保底机制 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 112, 58 + + + 80 + + + GrpBannerValues + + + 限时武器祈愿池 + + + System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 基础池 + + + 3 + + + ID要求唯一 + + + DTPEndTime + + + LblGachaType + + + 0 + + + 218, 204 + + + GrpBannerValues + + + 300, 25 + + + TxtWeight5 + + + GrpBannerValues + + + 217, 260 + + + 0 + + + System.Windows.Forms.DateTimePicker, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpBalance + + + True + + + True + + + 3 + + + GrpWeights + + + 51, 17 + + + 32, 17 + + + 50, 176 + + + 12 + + + 56, 17 + + + ID + + + 0 + + + TxtPoolWeight4 + + + ColUpId + + + NoControl + + + NUDGachaType + + + LblScheduleIdTip + + + GrpBannerValues + + + $this + + + GrpJson + + + 3, 4, 3, 4 + + + True + + + Top, Left, Right + + + 56, 17 + + + System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpUpPool + + + True + + + 112, 84 + + + 50, 87 + + + System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 4星活动爆率 + + + True + + + 302, 173 + + + 151, 21 + + + LnkOpenOldEditor + + + 75, 23 + + + Name + + + 112, 26 + + + 300, 23 + + + GrpBannerValues + + + GrpBannerValues + + + 72, 17 + + + 99, 21 + + + System.Windows.Forms.RadioButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 3 + + + ColFallbackName + + + GrpUpPool + + + 微软雅黑, 9pt + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrpJson + + + $this + + + 50, 148 + + + LblGachaTypeTip + + + 218, 28 + + + 2 + + + 4星池权重 + + + 6, 512 + + + 69, 17 + + + 7 + + + 116, 17 + + + 74, 21 + + + 1 + + + GrpJson + + + 11 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.ListView, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Top, Bottom, Left, Right + + + 43, 32 + + + 从400开始,顺序递增 + + + 20 + + + 1 + + + 5星池权重 + + + 2 + + + True + + + CenterScreen + + + 75, 17 + + + Bottom, Right + + + LblOptions + + + LblWeight5 + + + 75, 23 + + + 1 + + + GrpFallbackPool + + + 56, 17 + + + 0 + + + 13 + + + 74, 118 + + + System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 4 + + + GrpBannerValues + + + 74, 204 + + + LblPrefabPath + + + 4 + + + GrpBannerValues + + + GrpBannerValues + + + 72 + + + System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + 51 + + + 43, 61 + + + LblPoolWeight4 + + + 300, 23 + + + 常驻池 + + + 7, 17 + + + 5星权重 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 92 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 1000, 600 + + + 31, 233 + + + ColFallbackId + + + 75 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 221, 233 + + + 440, 100 + + + 48 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 61 + + + 29 + + + GrpWeights + + + $this + + + System.Windows.Forms.ColumnHeader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + NUDScheduleId + + + 110 + + + FormGachaBannerEditor2 + + + ChkAutoStripRateUpFromFallback + + + 6 + + + 192, 146 + + + True + + + 75, 17 + + + GrpBannerValues + + + 100, 23 + + + 开始时间 + + + System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 63, 17 + + + TxtPoolWeight5 + + + 卡池编辑器 + + + 63, 23 + + + CmbPrefab + + + GrpBannerValues + + + 12, 12 + + + 63, 17 + + + ScheduleId + + + System.Windows.Forms.LinkLabel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 402, 0 + + + 32, 17 + + + 奖池类型 + + + 59 + + + NoControl + + + GrpBannerValues + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 2 + + + 3, 19 + + + 1 + + + True + + \ No newline at end of file diff --git a/Source/GrasscutterTools/Forms/FormGachaBannerEditor2.ru-ru.resx b/Source/GrasscutterTools/Forms/FormGachaBannerEditor2.ru-ru.resx new file mode 100644 index 0000000..ae87d7e --- /dev/null +++ b/Source/GrasscutterTools/Forms/FormGachaBannerEditor2.ru-ru.resx @@ -0,0 +1,461 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + 112, 287 + + + 225, 21 + + + Auto Strip Rate Up From Fall back + + + 52, 260 + + + 54, 17 + + + Options + + + 157, 21 + + + Remove C6 Form Pool + + + 102, 17 + + + Open old editor + + + 43, 28 + + + 63, 17 + + + Тип Гачи + + + 203, 233 + + + 93, 17 + + + EventChance4* + + + 13, 233 + + + 93, 17 + + + EventChance5* + + + 66, 204 + + + 40, 17 + + + Сорт. + + + 116, 17 + + + Увеличение с 400 + + + 234, 176 + + + 47, 17 + + + Конец + + + 8, 57 + + + 98, 17 + + + ID расписания + + + 53, 176 + + + 53, 17 + + + Начало + + + 84, 17 + + + Уникальный + + + Стандартная Молитва + + + Молитва события персонажа + + + Молитва события с оружием + + + 101, 17 + + + Показать заказ + + + 18, 87 + + + 88, 17 + + + Тип баннера + + + 116, 21 + + + Судьбоносные + + + 34, 148 + + + 72, 17 + + + Стоимость + + + 47, 118 + + + 59, 17 + + + Готовый + + + 234, 146 + + + 141, 21 + + + Переплетающиеся + + + Баннеп + + + Fallback Pool + + + + AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00Lj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tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACJTeXN0 + ZW0uV2luZG93cy5Gb3Jtcy5MaXN0Vmlld0dyb3VwBAAAAAZIZWFkZXIPSGVhZGVyQWxpZ25tZW50A1Rh + ZwROYW1lAQQCAShTeXN0ZW0uV2luZG93cy5Gb3Jtcy5Ib3Jpem9udGFsQWxpZ25tZW50AgAAAAIAAAAG + AwAAAAo05pif5q2m5ZmoBfz///8oU3lzdGVtLldpbmRvd3MuRm9ybXMuSG9yaXpvbnRhbEFsaWdubWVu + dAEAAAAHdmFsdWVfXwAIAgAAAAAAAAAKBgUAAAAJR3JvdXBVcFc0Cw== + + + + 85, 23 + + + Сген. Json + + + 209, 437 + + + 85, 23 + + + Загр.Json + + + Gacha Weights + + + 399, 0 + + + 35, 17 + + + Help + + + 35, 61 + + + 71, 17 + + + Weights 5* + + + 35, 32 + + + 71, 17 + + + Weights 5* + + + Character and weapon balance (only mixed pools work) + + + 5, 61 + + + 101, 17 + + + Pool Weights 4* + + + 7, 32 + + + 101, 17 + + + Pool Weights 5* + + + Редактор баннеров Gacha + + \ No newline at end of file diff --git a/Source/GrasscutterTools/Forms/FormMain.cs b/Source/GrasscutterTools/Forms/FormMain.cs index 98bb82e..4989ab0 100644 --- a/Source/GrasscutterTools/Forms/FormMain.cs +++ b/Source/GrasscutterTools/Forms/FormMain.cs @@ -162,35 +162,35 @@ namespace GrasscutterTools.Forms #region - 主页 - - private FormGachaBannerEditor FormGachaBannerEditor; + private Form GachaBannerEditor; private void BtnOpenGachaBannerEditor_Click(object sender, EventArgs e) { - if (FormGachaBannerEditor == null || FormGachaBannerEditor.IsDisposed) + if (GachaBannerEditor == null || GachaBannerEditor.IsDisposed) { - FormGachaBannerEditor = new FormGachaBannerEditor(); - FormGachaBannerEditor.Show(); + GachaBannerEditor = new FormGachaBannerEditor2(); + GachaBannerEditor.Show(); } else { - FormGachaBannerEditor.TopMost = true; - FormGachaBannerEditor.TopMost = false; + GachaBannerEditor.TopMost = true; + GachaBannerEditor.TopMost = false; } } - private FormTextMapBrowser FormTextMapBrowser; + private FormTextMapBrowser TextMapBrowser; private void BtnOpenTextMap_Click(object sender, EventArgs e) { - if (FormTextMapBrowser == null || FormTextMapBrowser.IsDisposed) + if (TextMapBrowser == null || TextMapBrowser.IsDisposed) { - FormTextMapBrowser = new FormTextMapBrowser(); - FormTextMapBrowser.Show(); + TextMapBrowser = new FormTextMapBrowser(); + TextMapBrowser.Show(); } else { - FormTextMapBrowser.TopMost = true; - FormTextMapBrowser.TopMost = false; + TextMapBrowser.TopMost = true; + TextMapBrowser.TopMost = false; } } diff --git a/Source/GrasscutterTools/Game/Gacha/GachaBanner2.cs b/Source/GrasscutterTools/Game/Gacha/GachaBanner2.cs index 89a3453..4381e79 100644 --- a/Source/GrasscutterTools/Game/Gacha/GachaBanner2.cs +++ b/Source/GrasscutterTools/Game/Gacha/GachaBanner2.cs @@ -33,40 +33,40 @@ namespace GrasscutterTools.Game.Gacha /// 如果你想添加大量卡池,请按照每次增加固定数值的id进行添加,比如:411,412,413.... /// [JsonProperty("gachaType")] - public int GachaType { get; set; } + public int GachaType { get; set; } = 400; /// /// 这个id需要每个池子不一样,如果你想添加大量卡池, /// 请按照每次增加固定数值的id进行添加,比如:2100,2200,2300.... /// [JsonProperty("scheduleId")] - public int ScheduleId { get; set; } + public int ScheduleId { get; set; } = 800; /// /// 这个是卡池的预制路径id /// [JsonProperty("prefabPath")] - public string PrefabPath { get; set; } + public string PrefabPath { get; set; } = "GachaShowPanel_A007"; /// /// 这个是抽卡的预览背景路径id /// [JsonProperty("previewPrefabPath")] - public string PreviewPrefabPath { get; set; } + public string PreviewPrefabPath { get; set; } = "UI_Tab_GachaShowPanel_A007"; /// /// 这个是抽卡的标题路径id,有可能与之前两项的id不同 /// (一般这3项的id只需保持一致即可,就是A0xx,xx为同一id) /// [JsonProperty("titlePath")] - public string TitlePath { get; set; } + public string TitlePath { get; set; } = "UI_GACHA_SHOW_PANEL_A007_TITLE"; /// /// 这个表示祈愿用的道具,224是相遇之缘,223是纠缠之缘 - 选择一个作为该卡池的抽卡道具 /// (提示:请不要随便修改祈愿道具除了蓝球和粉球,有可能会引发bug,比如修改成摩拉抽卡可能导致卡住) /// [JsonProperty("costItem")] - public int CostItem { get; set; } + public int CostItem { get; set; } = 224; /// /// 开始时间(Unix时间戳) @@ -84,85 +84,85 @@ namespace GrasscutterTools.Game.Gacha /// 卡池顺序 /// [JsonProperty("sortId")] - public int SortId { get; set; } + public int SortId { get; set; } = 1000; /// /// 4星的up角色或物品 /// [JsonProperty("rateUpItems4")] - public int[] RateUpItems4 { get; set; } + public int[] RateUpItems4 { get; set; } = { }; /// /// 5星的up物品或者角色 /// [JsonProperty("rateUpItems5")] - public int[] RateUpItems5 { get; set; } + public int[] RateUpItems5 { get; set; } = { }; /// /// 3星普通池 /// [JsonProperty("fallbackItems3")] - private int[] FallbackItems3 { get; set; } = { 11301, 11302, 11306, 12301, 12302, 12305, 13303, 14301, 14302, 14304, 15301, 15302, 15304 }; + public int[] FallbackItems3 { get; set; } = { 11301, 11302, 11306, 12301, 12302, 12305, 13303, 14301, 14302, 14304, 15301, 15302, 15304 }; /// /// 4星普通角色池 /// [JsonProperty("fallbackItems4Pool1")] - private int[] FallbackItems4Pool1 { get; set; } = { 1014, 1020, 1023, 1024, 1025, 1027, 1031, 1032, 1034, 1036, 1039, 1043, 1044, 1045, 1048, 1053, 1055, 1056, 1064 }; + public int[] FallbackItems4Pool1 { get; set; } = { 1014, 1020, 1023, 1024, 1025, 1027, 1031, 1032, 1034, 1036, 1039, 1043, 1044, 1045, 1048, 1053, 1055, 1056, 1064 }; /// /// 4星普通武器池 /// [JsonProperty("fallbackItems4Pool2")] - private int[] FallbackItems4Pool2 { get; set; } = { 11401, 11402, 11403, 11405, 12401, 12402, 12403, 12405, 13401, 13407, 14401, 14402, 14403, 14409, 15401, 15402, 15403, 15405 }; + public int[] FallbackItems4Pool2 { get; set; } = { 11401, 11402, 11403, 11405, 12401, 12402, 12403, 12405, 13401, 13407, 14401, 14402, 14403, 14409, 15401, 15402, 15403, 15405 }; /// /// 5星普通角色池 /// [JsonProperty("fallbackItems5Pool1")] - private int[] FallbackItems5Pool1 { get; set; } = { 1003, 1016, 1042, 1035, 1041 }; + public int[] FallbackItems5Pool1 { get; set; } = { 1003, 1016, 1042, 1035, 1041 }; /// /// 5星普通角色池 /// [JsonProperty("fallbackItems5Pool2")] - private int[] FallbackItems5Pool2 { get; set; } = { 11501, 11502, 12501, 12502, 13502, 13505, 14501, 14502, 15501, 15502 }; + public int[] FallbackItems5Pool2 { get; set; } = { 11501, 11502, 12501, 12502, 13502, 13505, 14501, 14502, 15501, 15502 }; /// /// 是否从奖池中移除玩家星座等级6级以上的角色 /// [JsonProperty("removeC6FromPool")] - private bool RemoveC6FromPool { get; set; } = false; + public bool RemoveC6FromPool { get; set; } = false; /// /// 自动从普通池中移除UP池物品或角色 /// [JsonProperty("autoStripRateUpFromFallback")] - private bool AutoStripRateUpFromFallback { get; set; } = true; + public bool AutoStripRateUpFromFallback { get; set; } = true; /// /// 4星权重 /// [JsonProperty("weights4")] - private int[,] Weights4 { get; set; } = { { 1, 510 }, { 8, 510 }, { 10, 10000 } }; + public int[,] Weights4 { get; set; } = { { 1, 510 }, { 8, 510 }, { 10, 10000 } }; /// /// 5星权重 /// [JsonProperty("weights5")] - private int[,] Weights5 { get; set; } = { { 1, 75 }, { 73, 150 }, { 90, 10000 } }; + public int[,] Weights5 { get; set; } = { { 1, 75 }, { 73, 150 }, { 90, 10000 } }; /// /// 4星平衡奖池权重(即中的是武器还是角色) /// [JsonProperty("poolBalanceWeights4")] - private int[,] PoolBalanceWeights4 { get; set; } = { { 1, 255 }, { 17, 255 }, { 21, 10455 } }; + public int[,] PoolBalanceWeights4 { get; set; } = { { 1, 255 }, { 17, 255 }, { 21, 10455 } }; /// /// 5星平衡奖池权重(即中的是武器还是角色) /// [JsonProperty("poolBalanceWeights5")] - private int[,] PoolBalanceWeights5 { get; set; } = { { 1, 30 }, { 147, 150 }, { 181, 10230 } }; + public int[,] PoolBalanceWeights5 { get; set; } = { { 1, 30 }, { 147, 150 }, { 181, 10230 } }; /// /// 4星事件概率(抽中后,摇1~100随机数,如果大于该值则抽中up池) diff --git a/Source/GrasscutterTools/GrasscutterTools.csproj b/Source/GrasscutterTools/GrasscutterTools.csproj index c9eb898..c6ee0c0 100644 --- a/Source/GrasscutterTools/GrasscutterTools.csproj +++ b/Source/GrasscutterTools/GrasscutterTools.csproj @@ -180,6 +180,7 @@ True True + @@ -197,6 +198,12 @@ + + Form + + + FormGachaBannerEditor2.cs + Form @@ -229,6 +236,16 @@ + + FormGachaBannerEditor2.cs + + + FormGachaBannerEditor2.cs + Designer + + + FormGachaBannerEditor2.cs + FormGachaBannerEditor.cs diff --git a/Source/GrasscutterTools/Properties/AssemblyInfo.cs b/Source/GrasscutterTools/Properties/AssemblyInfo.cs index 63e929c..aa653ff 100644 --- a/Source/GrasscutterTools/Properties/AssemblyInfo.cs +++ b/Source/GrasscutterTools/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ using System.Runtime.InteropServices; //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 //通过使用 "*",如下所示: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.3.3")] +[assembly: AssemblyVersion("1.4.0")] [assembly: AssemblyFileVersion("1.0.0")] \ No newline at end of file