Key hints follow the player's own keys; down in fly mode is Ctrl only
The prompts on the HUD and in build mode named E, R, T, LMB and the rest outright, so they were wrong for anyone who had set other keys. Sixteen of them now take the key from Binds.Cap: throw / drop / turn, hop off, piece upgrades, the build help strip, belt laying and moving, the pickup's bed, 'too far', and the three opening hints. The build help strip redraws when a key is set. The English text is the key of every translation, so the eleven tables and the translators' context notes carry the same placeholders (extract.py --strict: nothing missing, no placeholder mismatch). Turkish drops the case endings that hung on the key letter. Ctl: C no longer means 'down' in the cheat fly mode (it is Cruise; the console's help already said Ctrl), and ShakePressed, which nothing called, is gone. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@ -80,7 +80,8 @@ namespace GrassCutter
|
||||
static bool s_sprintOn;
|
||||
static int s_sprintFrame = -1;
|
||||
public static bool JumpHeld => !Blocked && (Binds.Held(Act.Jump) || (G != null && G.buttonSouth.isPressed));
|
||||
public static bool DownHeld => !Blocked && ((K != null && (K.leftCtrlKey.isPressed || K.cKey.isPressed)) || (G != null && G.buttonEast.isPressed));
|
||||
/// <summary>Down while flying (the cheat fly mode). Ctrl only: C is Cruise.</summary>
|
||||
public static bool DownHeld => !Blocked && ((K != null && K.leftCtrlKey.isPressed) || (G != null && G.buttonEast.isPressed));
|
||||
/// <summary>~ / Ё (the key under Esc) or F1: the cheat console. Works even while UI is open.</summary>
|
||||
public static bool ConsolePressed => Application.isFocused && !Typing && K != null && (K.backquoteKey.wasPressedThisFrame || K.f1Key.wasPressedThisFrame);
|
||||
public static bool JumpPressed => BotJumpPressed || !Blocked && (Binds.Pressed(Act.Jump) || (G != null && G.buttonSouth.wasPressedThisFrame));
|
||||
@ -89,7 +90,6 @@ namespace GrassCutter
|
||||
public static bool AltPressed => BotAltPressed || !Blocked && (Binds.Pressed(Act.Alt) || (G != null && G.leftTrigger.wasPressedThisFrame));
|
||||
public static bool AltHeld => BotAltHeld || !Blocked && (Binds.Held(Act.Alt) || (G != null && G.leftTrigger.isPressed));
|
||||
public static bool RotatePressed => !Blocked && (Binds.Pressed(Act.Rotate) || (G != null && G.buttonNorth.wasPressedThisFrame));
|
||||
public static bool ShakePressed => !Blocked && ((K != null && K.fKey.wasPressedThisFrame) || (G != null && G.dpad.up.wasPressedThisFrame));
|
||||
public static bool BuildPressed => !Blocked && Binds.Pressed(Act.Build);
|
||||
public static bool BotMovePressed, BotCopyPressed;
|
||||
public static bool CtrlHeld => !Blocked && K != null && K.leftCtrlKey.isPressed;
|
||||
|
||||
Reference in New Issue
Block a user