mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
add ship attach/detach prompts to localization
This commit is contained in:
parent
a3a3a729f5
commit
0d795091f0
@ -47,5 +47,7 @@ public class Translation
|
||||
public string YouAreDead;
|
||||
public string WaitingForRespawn;
|
||||
public string WaitingForAllToDie;
|
||||
public string AttachToShip;
|
||||
public string DetachFromShip;
|
||||
public Dictionary<DeathType, string[]> DeathMessages;
|
||||
}
|
||||
|
@ -1,12 +1,20 @@
|
||||
using UnityEngine;
|
||||
using QSB.Localization;
|
||||
using UnityEngine;
|
||||
|
||||
namespace QSB.ShipSync;
|
||||
|
||||
public class ShipCustomAttach : MonoBehaviour
|
||||
{
|
||||
private static readonly ScreenPrompt _attachPrompt = new(InputLibrary.interactSecondary, InputLibrary.interact,
|
||||
"Attach to ship" + " <CMD>", ScreenPrompt.MultiCommandType.HOLD_ONE_AND_PRESS_2ND);
|
||||
private static readonly ScreenPrompt _detachPrompt = new(InputLibrary.cancel, "Detach from ship" + " <CMD>");
|
||||
private static readonly ScreenPrompt _attachPrompt = new(
|
||||
InputLibrary.interactSecondary,
|
||||
InputLibrary.interact,
|
||||
QSBLocalization.Current.AttachToShip + " <CMD>",
|
||||
ScreenPrompt.MultiCommandType.HOLD_ONE_AND_PRESS_2ND);
|
||||
|
||||
private static readonly ScreenPrompt _detachPrompt = new(
|
||||
InputLibrary.cancel,
|
||||
QSBLocalization.Current.DetachFromShip + " <CMD>");
|
||||
|
||||
private PlayerAttachPoint _playerAttachPoint;
|
||||
|
||||
private void Awake()
|
||||
|
@ -42,6 +42,8 @@
|
||||
"YouAreDead": "You are dead.",
|
||||
"WaitingForRespawn": "Waiting for someone to respawn you...",
|
||||
"WaitingForAllToDie": "Waiting for {0} player(s) to die...",
|
||||
"AttachToShip": "Attach to ship",
|
||||
"DetachFromShip": "Detach from ship",
|
||||
"DeathMessages": {
|
||||
"Default": [
|
||||
"{0} died",
|
||||
|
Loading…
Reference in New Issue
Block a user