add ship attach/detach prompts to localization

This commit is contained in:
Mister_Nebula 2022-08-16 22:18:44 +01:00
parent a3a3a729f5
commit 0d795091f0
3 changed files with 16 additions and 4 deletions

View File

@ -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;
}

View File

@ -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()

View File

@ -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",