From 186e25d72f276d63a223d95ece88db9e4a84076f Mon Sep 17 00:00:00 2001 From: frog8412 <160930327+frog8412@users.noreply.github.com> Date: Sun, 1 Sep 2024 19:45:22 +0300 Subject: [PATCH 1/2] Fixed "RULES" text in Rules menu for Russian language (#262) These kind of texts don't have cyrillic letters, so they display weirdly --- lang/Russian.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/Russian.ini b/lang/Russian.ini index 5fbf4ced..6670df39 100644 --- a/lang/Russian.ini +++ b/lang/Russian.ini @@ -237,7 +237,7 @@ PRIVATE_LOBBIES = "Закрытая группа" DIRECT = "По адресу" [RULES] -RULES_TITLE = "ПРАВИЛА" +RULES_TITLE = "RULES" RULE_1 = "1. Вам должно быть не менее 13 лет." RULE_2 = "2. Никаких оскорблений или высказываний, вызывающих ненависть" RULE_3 = "3. Не используйте модифицированную сборку." From af509462a40eb09afbbdf2f09af21e7d3cd0cd5c Mon Sep 17 00:00:00 2001 From: ThePlayerRolo Date: Sun, 1 Sep 2024 13:43:08 -0400 Subject: [PATCH 2/2] Add files via upload (#286) --- docs/lua/examples/Custom Text Example.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 docs/lua/examples/Custom Text Example.lua diff --git a/docs/lua/examples/Custom Text Example.lua b/docs/lua/examples/Custom Text Example.lua new file mode 100644 index 00000000..cd249f1d --- /dev/null +++ b/docs/lua/examples/Custom Text Example.lua @@ -0,0 +1,19 @@ +-- name: Custom Text +-- description: Replaces The King Bobomb Intro Dialog with custom text. Credit: ThePlayerRolo + ManIsCat2 (For fixing issues) + +smlua_text_utils_dialog_replace(gBehaviorValues.dialogs.KingBobombIntroDialog, 1, 4, 100, 175, ("Hello.\ + I'm doing good,\ + Are you doing good?\ + No?\ + Then DIE!" +)) + +-- First Paramater is what text you want to replace. To find the full table go to here: https://github.com/coop-deluxe/sm64coopdx/blob/main/docs/lua/functions-5.md +-- Second Parameter is unused in the game. +-- Third paramater defines how many lines your dialog has per box. +-- Fourth paramater sets how much you want to offset you text to the left (higher number moves to the right- lower to the left.). +-- Fifth Paramater is the width. +-- Sixth paramater is your text. +-- Have Fun! + +-- The Function in C for Reference: #define DEFINE_DIALOG(id, unused, linesPerBox, leftOffset, width, text)