diff --git a/Desktop/GameMapTesting/GameMapController.cs b/Desktop/GameMapTesting/GameMapController.cs index fc18cef..a986ea6 100644 --- a/Desktop/GameMapTesting/GameMapController.cs +++ b/Desktop/GameMapTesting/GameMapController.cs @@ -33,11 +33,11 @@ namespace Milimoe.FunGame.Testing.Desktop.GameMapTesting ); } - public async Task RequestActionType(Character character, List availableSkills, List availableItems) + public async Task RequestActionType(Character character, List availableItems) { WriteLine($"现在是 {character.NickName} 的回合,请选择行动。"); return await _actionTypeRequester.RequestInput( - (callback) => UI.Invoke(() => UI.ShowActionButtons(character, availableSkills, availableItems, callback)) + (callback) => UI.Invoke(() => UI.ShowActionButtons(character, availableItems, callback)) ); } @@ -55,7 +55,7 @@ namespace Milimoe.FunGame.Testing.Desktop.GameMapTesting { WriteLine($"请为 {character.NickName} 选择一个技能。"); long? skillId = await _skillSelectionRequester.RequestInput( - (callback) => UI.Invoke(() => UI.ShowSkillSelectionUI(character, availableSkills, callback)) + (callback) => UI.Invoke(() => UI.ShowSkillSelectionUI(character, callback)) ); return skillId.HasValue ? availableSkills.FirstOrDefault(s => s.Id == skillId.Value) : null; } @@ -64,7 +64,7 @@ namespace Milimoe.FunGame.Testing.Desktop.GameMapTesting { WriteLine($"请为 {character.NickName} 选择一个物品。"); long? itemId = await _itemSelectionRequester.RequestInput( - (callback) => UI.Invoke(() => UI.ShowItemSelectionUI(availableItems, callback)) + (callback) => UI.Invoke(() => UI.ShowItemSelectionUI(character, callback)) ); return itemId.HasValue ? availableItems.FirstOrDefault(i => i.Id == itemId.Value) : null; } diff --git a/Desktop/GameMapTesting/GameMapTesting.cs b/Desktop/GameMapTesting/GameMapTesting.cs index ccd7572..238e306 100644 --- a/Desktop/GameMapTesting/GameMapTesting.cs +++ b/Desktop/GameMapTesting/GameMapTesting.cs @@ -2,7 +2,6 @@ // using System.Windows; // 不再需要,因为移除了 InputDialog using Milimoe.FunGame.Core.Api.Utility; using Milimoe.FunGame.Core.Entity; -using Milimoe.FunGame.Core.Interface.Entity; using Milimoe.FunGame.Core.Library.Common.Addon; using Milimoe.FunGame.Core.Library.Constant; using Milimoe.FunGame.Core.Model; @@ -137,7 +136,7 @@ namespace Milimoe.FunGame.Testing.Desktop.GameMapTesting int qWeapon = 5; int qArmor = 5; int qShoes = 5; - int qAccessory = 4; + int qAccessory = 5; WriteLine($"社区送温暖了,现在随机发放空投!!"); DropItems(_gamingQueue, qMagicCardPack, qWeapon, qArmor, qShoes, qAccessory); WriteLine(""); @@ -499,7 +498,7 @@ namespace Milimoe.FunGame.Testing.Desktop.GameMapTesting if (IsPlayer_OnlyTest(queue, character)) { // 通过UI按钮请求行动类型 - CharacterActionType actionType = await Controller.RequestActionType(character, skills, items); + CharacterActionType actionType = await Controller.RequestActionType(character, items); Controller.ResolveActionType(actionType); return actionType; } diff --git a/Desktop/GameMapTesting/GameMapViewer.xaml b/Desktop/GameMapTesting/GameMapViewer.xaml index 64f20ab..795f6cd 100644 --- a/Desktop/GameMapTesting/GameMapViewer.xaml +++ b/Desktop/GameMapTesting/GameMapViewer.xaml @@ -1,4 +1,5 @@  @@ -64,6 +65,10 @@ + + + + @@ -107,7 +123,7 @@ - + @@ -213,8 +229,6 @@ - - @@ -235,7 +249,7 @@ HorizontalAlignment="Center" VerticalAlignment="Center" Width="400" - MaxHeight="400" + MaxHeight="600" Background="#DDFFFFFF" BorderBrush="DarkBlue" BorderThickness="2" @@ -244,19 +258,38 @@ Visibility="Collapsed"> - + + Tag="{Binding}" + MouseLeftButtonDown="CharacterSelectionItem_MouseLeftButtonDown" + MouseEnter="CharacterSelectionItem_MouseEnter"> + + + + + + + 将鼠标悬停在角色名称上以查看详情。 + + + @@ -266,7 +299,7 @@ HorizontalAlignment="Center" VerticalAlignment="Center" Width="400" - MaxHeight="400" + MaxHeight="600" Background="#DDFFFFFF" BorderBrush="DarkGreen" BorderThickness="2" @@ -275,19 +308,44 @@ Visibility="Collapsed"> - + - + Tag="{Binding}" + MouseLeftButtonDown="SkillItemSelectionItem_MouseLeftButtonDown" + MouseEnter="SkillItemSelectionItem_MouseEnter"> + + + + + + + + + + + + + + 将鼠标悬停在名称上以查看详情。 + + +