make screen prompts not static so it recreates it every loop in case language changes

This commit is contained in:
JohnCorby 2022-08-16 16:22:22 -07:00
parent bdb6ccfa4f
commit fde9c49193

View File

@ -5,15 +5,17 @@ namespace QSB.ShipSync;
public class ShipCustomAttach : MonoBehaviour
{
private static readonly ScreenPrompt _attachPrompt = new(
private readonly ScreenPrompt _attachPrompt = new(
InputLibrary.interactSecondary,
InputLibrary.interact,
QSBLocalization.Current.AttachToShip + " <CMD>",
ScreenPrompt.MultiCommandType.HOLD_ONE_AND_PRESS_2ND);
ScreenPrompt.MultiCommandType.HOLD_ONE_AND_PRESS_2ND
);
private static readonly ScreenPrompt _detachPrompt = new(
private readonly ScreenPrompt _detachPrompt = new(
InputLibrary.cancel,
QSBLocalization.Current.DetachFromShip + " <CMD>");
QSBLocalization.Current.DetachFromShip + " <CMD>"
);
private PlayerAttachPoint _playerAttachPoint;