rwork on kulemak bot and cleanup
This commit is contained in:
parent
c75b2b27f0
commit
053a016c8b
15 changed files with 727 additions and 160 deletions
|
|
@ -189,7 +189,7 @@ public sealed class D2dOverlay
|
|||
InferenceMs: detection.InferenceMs,
|
||||
Hud: _bot.HudReader.Current,
|
||||
NavState: _bot.Navigation.State,
|
||||
NavPosition: _bot.Navigation.Position,
|
||||
NavPosition: _bot.Navigation.WorldPosition,
|
||||
IsExploring: _bot.Navigation.IsExploring,
|
||||
ShowHudDebug: _bot.Store.Settings.ShowHudDebug,
|
||||
Fps: fps,
|
||||
|
|
|
|||
|
|
@ -323,4 +323,22 @@ public partial class DebugViewModel : ObservableObject
|
|||
catch (Exception ex) { DebugResult = $"Failed: {ex.Message}"; }
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
private async Task LootTest()
|
||||
{
|
||||
try
|
||||
{
|
||||
DebugResult = "Loot test: focusing game...";
|
||||
await _bot.Game.FocusGame();
|
||||
await Task.Delay(300);
|
||||
await _bot.BossRunExecutor.Loot();
|
||||
DebugResult = "Loot test: complete";
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
DebugResult = $"Loot test failed: {ex.Message}";
|
||||
Log.Error(ex, "Loot test failed");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ public partial class MappingViewModel : ObservableObject, IDisposable
|
|||
[ObservableProperty] private MapType _selectedMapType;
|
||||
[ObservableProperty] private bool _isFrameSaverEnabled;
|
||||
[ObservableProperty] private int _framesSaved;
|
||||
[ObservableProperty] private bool _isDetectionEnabled;
|
||||
[ObservableProperty] private int _enemiesDetected;
|
||||
[ObservableProperty] private float _inferenceMs;
|
||||
[ObservableProperty] private bool _hasModel;
|
||||
|
|
@ -106,12 +105,6 @@ public partial class MappingViewModel : ObservableObject, IDisposable
|
|||
_bot.FrameSaver.Enabled = value;
|
||||
}
|
||||
|
||||
partial void OnIsDetectionEnabledChanged(bool value)
|
||||
{
|
||||
_bot.EnemyDetector.Enabled = value;
|
||||
_bot.BossDetector.Enabled = value;
|
||||
}
|
||||
|
||||
private void OnDetectionUpdated(DetectionSnapshot snapshot)
|
||||
{
|
||||
Dispatcher.UIThread.Post(() =>
|
||||
|
|
|
|||
|
|
@ -287,9 +287,6 @@
|
|||
<StackPanel Spacing="8">
|
||||
<TextBlock Text="ENEMY DETECTION" FontSize="11" FontWeight="SemiBold"
|
||||
Foreground="#8b949e" />
|
||||
<ToggleSwitch IsChecked="{Binding IsDetectionEnabled}"
|
||||
IsEnabled="{Binding HasModel}"
|
||||
OnContent="Detection On" OffContent="Detection Off" />
|
||||
<StackPanel Orientation="Horizontal" Spacing="16"
|
||||
IsVisible="{Binding HasModel}">
|
||||
<TextBlock Text="{Binding EnemiesDetected, StringFormat='{}{0} enemies'}"
|
||||
|
|
@ -329,6 +326,7 @@
|
|||
<Button Content="STASH" Command="{Binding ClickStashCommand}" />
|
||||
<Button Content="SALVAGE" Command="{Binding ClickSalvageCommand}" />
|
||||
<Button Content="Attack Test" Command="{Binding AttackTestCommand}" />
|
||||
<Button Content="Loot" Command="{Binding LootTestCommand}" />
|
||||
<Button Content="Detection?" Command="{Binding DetectionStatusCommand}" />
|
||||
<Button Content="{Binding BurstCaptureLabel}"
|
||||
Command="{Binding ToggleBurstCaptureCommand}" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue