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