From 64119c06947a908bb53bcc317f736464c5ad0745 Mon Sep 17 00:00:00 2001 From: UserK <111083281+FatalUserK@users.noreply.github.com> Date: Mon, 3 Aug 2026 03:53:34 +0100 Subject: [PATCH] added GameTextGetTranslatedOrNot info --- .gitignore | 1 + main.py | 3 +++ out.lua | 2 ++ 3 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index bee8a64..3afd512 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ __pycache__ +config.py diff --git a/main.py b/main.py index 05d8beb..6e40a9d 100644 --- a/main.py +++ b/main.py @@ -666,6 +666,9 @@ def callback_fn(src: str): "DoesWorldExistAt": { "comment": "Returns true if the area inside the bounding box has been streamed in and no pixel scenes are loading in the area (pixel scenes may not be loaded)." }, + "GameTextGetTranslatedOrNot": { + "comment": "If the string begins with `$`, it will try to parse it as a key, and otherwise will return the raw string provided. \nIf recognised as a key and the translation key is invalid, it will log it and return `\"\"`, otherwise it will return the translation.", + }, "GuiImage": { "args": 'gui:obj, id:int, x:number, y:number, sprite_filename:string, alpha:number = 0, scale:number = 1, scale_y:number = 0, rotation:number = 0, rect_animation_playback_type:int = GUI_RECT_ANIMATION_PLAYBACK.PlayToEndAndHide, rect_animation_name:string = ""', }, diff --git a/out.lua b/out.lua index fb1f6b2..07def60 100644 --- a/out.lua +++ b/out.lua @@ -2261,6 +2261,8 @@ function GameSetPostFxTextureParameter(parameter_name, texture_filename, filteri ---@param name string function GameUnsetPostFxTextureParameter(name) end +---If the string begins with `$`, it will try to parse it as a key, and otherwise will return the raw string provided. +---If recognised as a key and the translation key is invalid, it will log it and return `""`, otherwise it will return the translation. ---@param text_or_key string ---@return string ---@nodiscard