mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-05-21 09:45:48 +08:00
Merge branch 'babalae:main' into main
This commit is contained in:
@@ -6,6 +6,7 @@ public class MoveModeEnum(string code, string msg)
|
||||
{
|
||||
public static readonly MoveModeEnum Walk = new("walk", "步行");
|
||||
public static readonly MoveModeEnum Run = new("run", "奔跑");
|
||||
public static readonly MoveModeEnum Dash = new("dash", "持续冲刺");
|
||||
public static readonly MoveModeEnum Climb = new("climb", "攀爬");
|
||||
public static readonly MoveModeEnum Fly = new("fly", "飞行");
|
||||
public static readonly MoveModeEnum Jump = new("jump", "跳跃");
|
||||
|
||||
@@ -680,7 +680,23 @@ public class PathExecutor
|
||||
// 只有设置为run才会一直疾跑
|
||||
if (waypoint.MoveMode == MoveModeEnum.Run.Code)
|
||||
{
|
||||
if (distance > 25) // 距离大于25时可以使用疾跑
|
||||
if (distance > 20 != fastMode) // 距离大于20时可以使用疾跑/自由泳
|
||||
{
|
||||
if (fastMode)
|
||||
{
|
||||
Simulation.SendInput.SimulateAction(GIActions.SprintMouse, KeyType.KeyUp);
|
||||
}
|
||||
else
|
||||
{
|
||||
Simulation.SendInput.SimulateAction(GIActions.SprintMouse, KeyType.KeyDown);
|
||||
}
|
||||
|
||||
fastMode = !fastMode;
|
||||
}
|
||||
}
|
||||
else if (waypoint.MoveMode == MoveModeEnum.Dash.Code)
|
||||
{
|
||||
if (distance > 20) // 距离大于25时可以使用疾跑
|
||||
{
|
||||
if (Math.Abs((fastModeColdTime - DateTime.UtcNow).TotalMilliseconds) > 1000) //冷却一会
|
||||
{
|
||||
|
||||
@@ -24,15 +24,16 @@ public class WindowHelper
|
||||
return;
|
||||
}
|
||||
|
||||
if (WindowBackdrop.IsSupported(WindowBackdropType.Acrylic))
|
||||
{
|
||||
window.Background = new SolidColorBrush(Color.FromArgb(100, 0, 0, 0));
|
||||
WindowBackdrop.ApplyBackdrop(window, WindowBackdropType.Acrylic);
|
||||
}
|
||||
else if (WindowBackdrop.IsSupported(WindowBackdropType.Mica))
|
||||
|
||||
if (WindowBackdrop.IsSupported(WindowBackdropType.Mica))
|
||||
{
|
||||
window.Background = new SolidColorBrush(Colors.Transparent);
|
||||
WindowBackdrop.ApplyBackdrop(window, WindowBackdropType.Mica);
|
||||
}
|
||||
else if (WindowBackdrop.IsSupported(WindowBackdropType.Acrylic))
|
||||
{
|
||||
window.Background = new SolidColorBrush(Color.FromArgb(100, 0, 0, 0));
|
||||
WindowBackdrop.ApplyBackdrop(window, WindowBackdropType.Acrylic);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user