mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-10-23 20:29:45 +08:00
Impl ShopEditor UI (WIP)
This commit is contained in:
@@ -65,6 +65,7 @@ namespace GrasscutterTools.Forms
|
||||
Text += " - by jie65535 - v" + AppVersion.ToString(3);
|
||||
#if DEBUG
|
||||
Text += "-debug";
|
||||
//Text += "-debug -攻击修改特供版";
|
||||
#endif
|
||||
|
||||
GameData.LoadResources();
|
||||
@@ -295,6 +296,27 @@ namespace GrasscutterTools.Forms
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 商店编辑器窗口实例
|
||||
/// </summary>
|
||||
private FormShopEditor ShopEditor;
|
||||
|
||||
/// <summary>
|
||||
/// 点击打开商店编辑器时触发
|
||||
/// </summary>
|
||||
private void BtnOpenShopEditor_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (ShopEditor == null || ShopEditor.IsDisposed)
|
||||
{
|
||||
ShopEditor = new FormShopEditor();
|
||||
ShopEditor.Show();
|
||||
}
|
||||
else
|
||||
{
|
||||
ToTop(ShopEditor);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 语言选中项改变时触发
|
||||
/// </summary>
|
||||
@@ -1184,6 +1206,11 @@ namespace GrasscutterTools.Forms
|
||||
if (!string.IsNullOrEmpty(selectedItem))
|
||||
{
|
||||
var id = ItemMap.ToId(selectedItem);
|
||||
|
||||
//// 自定义攻击Gadget特供版
|
||||
//SetCommand("/at", $"set n {id}");
|
||||
//return true;
|
||||
|
||||
if (Check(CommandVersion.V1_3_1))
|
||||
SetCommand("/spawn", $"{id} x{NUDEntityAmout.Value} lv{NUDEntityLevel.Value}" + (ChkInfiniteHP.Checked ? " hp0" : ""));
|
||||
else
|
||||
|
Reference in New Issue
Block a user