Text Variables
Jump to navigation
Jump to search
These variables are replaced from various places where localized text is supported. Can be used directly or in the localization files too.
Variables
{LOC:*}- where * is a localization key; replaced with the localized text with support for campaigns too.{LOCG:*}- same asLOCbut only generic, no campaign support.{LOCC:*}- same asLOCbut only campaign support.{CONTROL:*}- where * is a control ID (see SpaceEngineers.cfg for a list); results in printing the binds for that control depending on current input type (gamepad vs kb/m).{GAME_CONTROL:*}- same asCONTROLbut always shows kb/m binds.{GAMEPAD_CONTROL:*}- same asCONTROLbut always shows gamepad binds.{GAMEPAD:*}- where * is a gamepad button/axis.
Gamepad axis and buttons
- LS:
BUTTON_J09,AXIS_XNEG,AXIS_XPOS,AXIS_YPOS,AXIS_YNEG,LEFT_STICK_LEFTRIGHT,LEFT_STICK_UPDOWN,AXIS_MOTION,AXIS_MOTION_X,AXIS_MOTION_Y. - RS:
BUTTON_J10,AXIS_ROTATIONXNEG,AXIS_ROTATIONXPOS,AXIS_ROTATIONYNEG,AXIS_ROTATIONYPOS,RIGHT_STICK_LEFTRIGHT,RIGHT_STICK_UPDOWN,AXIS_ROTATION,AXIS_ROTATION_X,AXIS_ROTATION_Y. BUTTON_J11(RT),AXIS_ZNEG(RT),BUTTON_J12(LT),AXIS_ZPOS(LT)AXIS_DPAD,DPAD_LEFTRIGHT,DPAD_UPDOWN,BUTTON_JDLEFT,BUTTON_JDUP,BUTTON_JDRIGHT,BUTTON_JDDOWNBUTTON_J01(A),BUTTON_J02(B),BUTTON_J03(X),BUTTON_J04(Y)BUTTON_J05(LB),BUTTON_J06(RB)BUTTON_J07(View),BUTTON_J08(Menu)AXIS_SLIDER1POS,AXIS_SLIDER1NEG(specific to joysticks)
Places using these
Everywhere a localization key is expected, including ModAPI's MyTexts.GetString().
However certain things require key words to use localization:
- <DisplayName> expects
DisplayName_before it attempts to replace. - <Description> expects
Description_before it attempts to replace.
Some other places that don't have localized text but do use these variable replacements specifically:
- World's Description
- Broadcast Controller's chat messages
- Hud Definition wherever text can be entered
- Datapad's title and text
- Button Panel's button labels
- Server's message of the day (MOTD)
- VST:
- Loading screen message
SetTextPanelDescriptionSaveSessionAs