Add non aggressive AI option to spawn page

This commit is contained in:
2023-10-18 22:19:08 +08:00
parent 0788a32158
commit 97b3a57ee1
6 changed files with 1844 additions and 1746 deletions

View File

@ -32,6 +32,8 @@
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PageSpawn));
this.TCSpawnSettings = new System.Windows.Forms.TabControl();
this.TPSpawnArgs = new System.Windows.Forms.TabPage();
this.label1 = new System.Windows.Forms.Label();
this.ChkNoAggressiveness = new System.Windows.Forms.CheckBox();
this.NUDEntityDef = new System.Windows.Forms.NumericUpDown();
this.NUDEntityAtk = new System.Windows.Forms.NumericUpDown();
this.NUDEntityHp = new System.Windows.Forms.NumericUpDown();
@ -41,7 +43,6 @@
this.NUDEntityPosX = new System.Windows.Forms.NumericUpDown();
this.NUDEntityAmout = new System.Windows.Forms.NumericUpDown();
this.NUDEntityLevel = new System.Windows.Forms.NumericUpDown();
this.LblSpawnVersionRequireTip = new System.Windows.Forms.Label();
this.LblInfiniteHpTip = new System.Windows.Forms.Label();
this.LblEntityDef = new System.Windows.Forms.Label();
this.LblEntityAtk = new System.Windows.Forms.Label();
@ -89,6 +90,7 @@
this.TPSpawnItems = new System.Windows.Forms.TabPage();
this.ListEntity = new System.Windows.Forms.ListBox();
this.PanelEntityFilterBar = new System.Windows.Forms.Panel();
this.LblClearFilter = new System.Windows.Forms.Label();
this.TxtEntityFilter = new System.Windows.Forms.TextBox();
this.CmbFilterEntity = new System.Windows.Forms.ComboBox();
this.TPSpawnRecords = new System.Windows.Forms.TabPage();
@ -137,6 +139,9 @@
//
// TPSpawnArgs
//
resources.ApplyResources(this.TPSpawnArgs, "TPSpawnArgs");
this.TPSpawnArgs.Controls.Add(this.label1);
this.TPSpawnArgs.Controls.Add(this.ChkNoAggressiveness);
this.TPSpawnArgs.Controls.Add(this.NUDEntityDef);
this.TPSpawnArgs.Controls.Add(this.NUDEntityAtk);
this.TPSpawnArgs.Controls.Add(this.NUDEntityHp);
@ -146,7 +151,6 @@
this.TPSpawnArgs.Controls.Add(this.NUDEntityPosX);
this.TPSpawnArgs.Controls.Add(this.NUDEntityAmout);
this.TPSpawnArgs.Controls.Add(this.NUDEntityLevel);
this.TPSpawnArgs.Controls.Add(this.LblSpawnVersionRequireTip);
this.TPSpawnArgs.Controls.Add(this.LblInfiniteHpTip);
this.TPSpawnArgs.Controls.Add(this.LblEntityDef);
this.TPSpawnArgs.Controls.Add(this.LblEntityAtk);
@ -155,10 +159,21 @@
this.TPSpawnArgs.Controls.Add(this.LblEntitySpawnPostion);
this.TPSpawnArgs.Controls.Add(this.LblEntityLevel);
this.TPSpawnArgs.Controls.Add(this.LblEntityAmount);
resources.ApplyResources(this.TPSpawnArgs, "TPSpawnArgs");
this.TPSpawnArgs.Name = "TPSpawnArgs";
this.TPSpawnArgs.UseVisualStyleBackColor = true;
//
// label1
//
resources.ApplyResources(this.label1, "label1");
this.label1.Name = "label1";
//
// ChkNoAggressiveness
//
resources.ApplyResources(this.ChkNoAggressiveness, "ChkNoAggressiveness");
this.ChkNoAggressiveness.Name = "ChkNoAggressiveness";
this.ChkNoAggressiveness.UseVisualStyleBackColor = true;
this.ChkNoAggressiveness.CheckedChanged += new System.EventHandler(this.SpawnEntityInputChanged);
//
// NUDEntityDef
//
resources.ApplyResources(this.NUDEntityDef, "NUDEntityDef");
@ -333,12 +348,6 @@
0});
this.NUDEntityLevel.ValueChanged += new System.EventHandler(this.SpawnEntityInputChanged);
//
// LblSpawnVersionRequireTip
//
resources.ApplyResources(this.LblSpawnVersionRequireTip, "LblSpawnVersionRequireTip");
this.LblSpawnVersionRequireTip.ForeColor = System.Drawing.SystemColors.GrayText;
this.LblSpawnVersionRequireTip.Name = "LblSpawnVersionRequireTip";
//
// LblInfiniteHpTip
//
resources.ApplyResources(this.LblInfiniteHpTip, "LblInfiniteHpTip");
@ -382,6 +391,7 @@
//
// TPAttackModArgs
//
resources.ApplyResources(this.TPAttackModArgs, "TPAttackModArgs");
this.TPAttackModArgs.Controls.Add(this.LblAMPluginTip);
this.TPAttackModArgs.Controls.Add(this.LblAMPluginIntroduction);
this.TPAttackModArgs.Controls.Add(this.LblAMPlugin);
@ -391,7 +401,6 @@
this.TPAttackModArgs.Controls.Add(this.BtnAtClear);
this.TPAttackModArgs.Controls.Add(this.LnkAttackModifierPlugin);
this.TPAttackModArgs.Controls.Add(this.GrpAMSkills);
resources.ApplyResources(this.TPAttackModArgs, "TPAttackModArgs");
this.TPAttackModArgs.Name = "TPAttackModArgs";
this.TPAttackModArgs.UseVisualStyleBackColor = true;
//
@ -452,13 +461,13 @@
//
// GrpAMSkills
//
resources.ApplyResources(this.GrpAMSkills, "GrpAMSkills");
this.GrpAMSkills.Controls.Add(this.TxtAtEntityQ);
this.GrpAMSkills.Controls.Add(this.TxtAtEntityE);
this.GrpAMSkills.Controls.Add(this.TxtAtEntityN);
this.GrpAMSkills.Controls.Add(this.RbAtQ);
this.GrpAMSkills.Controls.Add(this.RbAtE);
this.GrpAMSkills.Controls.Add(this.RbAtN);
resources.ApplyResources(this.GrpAMSkills, "GrpAMSkills");
this.GrpAMSkills.Name = "GrpAMSkills";
this.GrpAMSkills.TabStop = false;
//
@ -505,6 +514,7 @@
//
// TPAttackInfusedArgs
//
resources.ApplyResources(this.TPAttackInfusedArgs, "TPAttackInfusedArgs");
this.TPAttackInfusedArgs.Controls.Add(this.NUDAiwiRotateZ);
this.TPAttackInfusedArgs.Controls.Add(this.NUDAiwiRotateY);
this.TPAttackInfusedArgs.Controls.Add(this.NUDAiwiRotateX);
@ -523,7 +533,6 @@
this.TPAttackInfusedArgs.Controls.Add(this.BtnAiwiReset);
this.TPAttackInfusedArgs.Controls.Add(this.LblAiwiPlugin);
this.TPAttackInfusedArgs.Controls.Add(this.LnkAttackInfusedWithItem);
resources.ApplyResources(this.TPAttackInfusedArgs, "TPAttackInfusedArgs");
this.TPAttackInfusedArgs.Name = "TPAttackInfusedArgs";
this.TPAttackInfusedArgs.UseVisualStyleBackColor = true;
//
@ -579,8 +588,8 @@
//
// NUDAiwiSpread
//
this.NUDAiwiSpread.DecimalPlaces = 2;
resources.ApplyResources(this.NUDAiwiSpread, "NUDAiwiSpread");
this.NUDAiwiSpread.DecimalPlaces = 2;
this.NUDAiwiSpread.Maximum = new decimal(new int[] {
2147483647,
0,
@ -691,9 +700,9 @@
//
// TPSpawnItems
//
resources.ApplyResources(this.TPSpawnItems, "TPSpawnItems");
this.TPSpawnItems.Controls.Add(this.ListEntity);
this.TPSpawnItems.Controls.Add(this.PanelEntityFilterBar);
resources.ApplyResources(this.TPSpawnItems, "TPSpawnItems");
this.TPSpawnItems.Name = "TPSpawnItems";
this.TPSpawnItems.UseVisualStyleBackColor = true;
//
@ -706,11 +715,20 @@
//
// PanelEntityFilterBar
//
resources.ApplyResources(this.PanelEntityFilterBar, "PanelEntityFilterBar");
this.PanelEntityFilterBar.Controls.Add(this.LblClearFilter);
this.PanelEntityFilterBar.Controls.Add(this.TxtEntityFilter);
this.PanelEntityFilterBar.Controls.Add(this.CmbFilterEntity);
resources.ApplyResources(this.PanelEntityFilterBar, "PanelEntityFilterBar");
this.PanelEntityFilterBar.Name = "PanelEntityFilterBar";
//
// LblClearFilter
//
resources.ApplyResources(this.LblClearFilter, "LblClearFilter");
this.LblClearFilter.BackColor = System.Drawing.Color.White;
this.LblClearFilter.Cursor = System.Windows.Forms.Cursors.Hand;
this.LblClearFilter.Name = "LblClearFilter";
this.LblClearFilter.Click += new System.EventHandler(this.LblClearFilter_Click);
//
// TxtEntityFilter
//
resources.ApplyResources(this.TxtEntityFilter, "TxtEntityFilter");
@ -719,16 +737,16 @@
//
// CmbFilterEntity
//
this.CmbFilterEntity.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
resources.ApplyResources(this.CmbFilterEntity, "CmbFilterEntity");
this.CmbFilterEntity.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.CmbFilterEntity.Name = "CmbFilterEntity";
this.CmbFilterEntity.SelectedIndexChanged += new System.EventHandler(this.CmbFilterEntity_SelectedIndexChanged);
//
// TPSpawnRecords
//
resources.ApplyResources(this.TPSpawnRecords, "TPSpawnRecords");
this.TPSpawnRecords.Controls.Add(this.ListSpawnLogs);
this.TPSpawnRecords.Controls.Add(this.FLPSpawnRecordControls);
resources.ApplyResources(this.TPSpawnRecords, "TPSpawnRecords");
this.TPSpawnRecords.Name = "TPSpawnRecords";
this.TPSpawnRecords.UseVisualStyleBackColor = true;
//
@ -770,8 +788,8 @@
//
// MenuSpawnEntityFilter
//
this.MenuSpawnEntityFilter.Name = "MenuSpawnEntityFilter";
resources.ApplyResources(this.MenuSpawnEntityFilter, "MenuSpawnEntityFilter");
this.MenuSpawnEntityFilter.Name = "MenuSpawnEntityFilter";
//
// PageSpawn
//
@ -830,7 +848,6 @@
private System.Windows.Forms.NumericUpDown NUDEntityPosX;
private System.Windows.Forms.NumericUpDown NUDEntityAmout;
private System.Windows.Forms.NumericUpDown NUDEntityLevel;
private System.Windows.Forms.Label LblSpawnVersionRequireTip;
private System.Windows.Forms.Label LblInfiniteHpTip;
private System.Windows.Forms.Label LblEntityDef;
private System.Windows.Forms.Label LblEntityAtk;
@ -887,5 +904,8 @@
private System.Windows.Forms.Button BtnRemoveSpawnLog;
private System.Windows.Forms.Label LblClearSpawnLogs;
private System.Windows.Forms.ContextMenuStrip MenuSpawnEntityFilter;
private System.Windows.Forms.CheckBox ChkNoAggressiveness;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label LblClearFilter;
}
}

View File

@ -114,6 +114,15 @@ namespace GrasscutterTools.Pages
private void TxtEntityFilter_TextChanged(object sender, EventArgs e)
{
LoadEntityList();
LblClearFilter.Visible = TxtEntityFilter.Text.Length > 0;
}
/// <summary>
/// 点击清空过滤栏标签时触发
/// </summary>
private void LblClearFilter_Click(object sender, EventArgs e)
{
TxtEntityFilter.Clear();
}
@ -267,6 +276,8 @@ namespace GrasscutterTools.Pages
CheckAndConnect(NUDEntityDef, -1, " def");
if (NUDEntityPosX.Value != 0 || NUDEntityPosY.Value != 0 || NUDEntityPosZ.Value != 0)
args += $" {NUDEntityPosX.Value} {NUDEntityPosY.Value} {NUDEntityPosZ.Value}";
if (ChkNoAggressiveness.Checked)
args += " ai12001001";
SetCommand("/spawn", args);
}
else
@ -373,6 +384,5 @@ namespace GrasscutterTools.Pages
}
#endregion -- --
}
}

View File

@ -127,11 +127,17 @@
<value>AttackInfused</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="LblSpawnVersionRequireTip.Size" type="System.Drawing.Size, System.Drawing">
<value>144, 17</value>
<data name="label1.Size" type="System.Drawing.Size, System.Drawing">
<value>23, 17</value>
</data>
<data name="LblSpawnVersionRequireTip.Text" xml:space="preserve">
<value>v Require GC &gt; v1.3.1 v</value>
<data name="label1.Text" xml:space="preserve">
<value>AI:</value>
</data>
<data name="ChkNoAggressiveness.Size" type="System.Drawing.Size, System.Drawing">
<value>138, 21</value>
</data>
<data name="ChkNoAggressiveness.Text" xml:space="preserve">
<value>No aggressiveness</value>
</data>
<data name="LblInfiniteHpTip.Size" type="System.Drawing.Size, System.Drawing">
<value>98, 17</value>
@ -158,7 +164,7 @@
<value>HP</value>
</data>
<data name="LblEntityMaxHp.Location" type="System.Drawing.Point, System.Drawing">
<value>182, 82</value>
<value>181, 56</value>
</data>
<data name="LblEntityMaxHp.Size" type="System.Drawing.Size, System.Drawing">
<value>53, 17</value>

File diff suppressed because it is too large Load Diff

View File

@ -127,11 +127,17 @@
<value>Элем. инфузия</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="LblSpawnVersionRequireTip.Size" type="System.Drawing.Size, System.Drawing">
<value>149, 17</value>
<data name="label1.Size" type="System.Drawing.Size, System.Drawing">
<value>20, 17</value>
</data>
<data name="LblSpawnVersionRequireTip.Text" xml:space="preserve">
<value>Требуется GC &gt;= v1.3.1</value>
<data name="label1.Text" xml:space="preserve">
<value>AI</value>
</data>
<data name="ChkNoAggressiveness.Size" type="System.Drawing.Size, System.Drawing">
<value>86, 21</value>
</data>
<data name="ChkNoAggressiveness.Text" xml:space="preserve">
<value>Без атаки</value>
</data>
<data name="LblInfiniteHpTip.Size" type="System.Drawing.Size, System.Drawing">
<value>157, 17</value>

View File

@ -117,8 +117,20 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="LblSpawnVersionRequireTip.Text" xml:space="preserve">
<value>以下參數至少要求 GC v1.3.1</value>
<data name="TPSpawnArgs.Text" xml:space="preserve">
<value>生成參數</value>
</data>
<data name="TPAttackModArgs.Text" xml:space="preserve">
<value>攻擊修改參數</value>
</data>
<data name="TPAttackInfusedArgs.Text" xml:space="preserve">
<value>攻擊注入參數</value>
</data>
<data name="label1.Text" xml:space="preserve">
<value>特性:</value>
</data>
<data name="ChkNoAggressiveness.Text" xml:space="preserve">
<value>無攻擊性</value>
</data>
<data name="LblInfiniteHpTip.Text" xml:space="preserve">
<value>血量為 0 表示無限</value>
@ -135,9 +147,6 @@
<data name="LblEntityAmount.Text" xml:space="preserve">
<value>數量:</value>
</data>
<data name="TPSpawnArgs.Text" xml:space="preserve">
<value>生成參數</value>
</data>
<data name="LblAMPluginTip.Text" xml:space="preserve">
<value>見識一下真正的雷神吧!</value>
</data>
@ -159,9 +168,6 @@
<data name="GrpAMSkills.Text" xml:space="preserve">
<value>替換技能</value>
</data>
<data name="TPAttackModArgs.Text" xml:space="preserve">
<value>攻擊修改參數</value>
</data>
<data name="LblAiwiRotate.Text" xml:space="preserve">
<value>旋轉: x: y: z:</value>
</data>
@ -183,23 +189,16 @@
<data name="BtnAiwiClear.Text" xml:space="preserve">
<value>清空實體</value>
</data>
<data name="TPAttackInfusedArgs.Text" xml:space="preserve">
<value>攻擊注入參數</value>
</data>
<data name="TPSpawnItems.Text" xml:space="preserve">
<value>實體列表</value>
</data>
<data name="TPSpawnRecords.Text" xml:space="preserve">
<value>生成記錄本</value>
</data>
<data name="BtnSaveSpawnLog.Text" xml:space="preserve">
<value>√ 記錄</value>
</data>
<data name="BtnRemoveSpawnLog.Text" xml:space="preserve">
<value>× 刪除</value>
</data>
<data name="TPSpawnRecords.Text" xml:space="preserve">
<value>生成記錄本</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="MenuSpawnEntityFilter.Size" type="System.Drawing.Size, System.Drawing">
<value>61, 4</value>
</data>
</root>