From 6fd799ac42d72b73d2d46a792b89eb8be7fa9f78 Mon Sep 17 00:00:00 2001 From: PrairieWind Date: Thu, 5 Jan 2023 18:38:55 -0700 Subject: [PATCH 1/2] Fix Country Lode HUD Issue Fixed the error that was thrown when the advancement is unlocked and also fixed the popup HUD so the advancement title fits correctly --- mods/HUD/awards/api.lua | 8 ++++---- mods/HUD/mcl_achievements/init.lua | 2 +- mods/HUD/mcl_achievements/locale/template.txt | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mods/HUD/awards/api.lua b/mods/HUD/awards/api.lua index 2bbea3c9b..6333272bd 100644 --- a/mods/HUD/awards/api.lua +++ b/mods/HUD/awards/api.lua @@ -305,7 +305,7 @@ function awards.unlock(name, award) local one = player:hud_add({ hud_elem_type = "image", name = "award_bg", - scale = {x = 1, y = 1}, + scale = {x = 1.25, y = 1}, text = background, position = {x = 0.5, y = 0}, offset = {x = 0, y = 138}, @@ -329,7 +329,7 @@ function awards.unlock(name, award) scale = {x = 100, y = 20}, text = hud_announce, position = {x = 0.5, y = 0}, - offset = {x = 0, y = 40}, + offset = {x = 30, y = 40}, alignment = {x = 0, y = -1}, z_index = 102, }) @@ -340,7 +340,7 @@ function awards.unlock(name, award) scale = {x = 100, y = 20}, text = title, position = {x = 0.5, y = 0}, - offset = {x = 30, y = 100}, + offset = {x = 35, y = 100}, alignment = {x = 0, y = -1}, z_index = 102, }) @@ -355,7 +355,7 @@ function awards.unlock(name, award) number = 2, text = icon, position = {x = 0.5, y = 0}, - offset = {x = -110, y = 62}, + offset = {x = -138, y = 62}, alignment = {x = 0, y = 0}, direction = 0, z_index = 102, diff --git a/mods/HUD/mcl_achievements/init.lua b/mods/HUD/mcl_achievements/init.lua index ced758948..20c411bb9 100644 --- a/mods/HUD/mcl_achievements/init.lua +++ b/mods/HUD/mcl_achievements/init.lua @@ -337,7 +337,7 @@ awards.register_achievement("mcl:fishyBusiness", { -- Triggered in mcl_compass awards.register_achievement("mcl:countryLode", { - title = S("Country Lode,\nTake Me Home"), + title = S("Country Lode, Take Me Home"), description = S("Use a compass on a Lodestone."), icon = "lodestone_side4.png", type = "Advancement", diff --git a/mods/HUD/mcl_achievements/locale/template.txt b/mods/HUD/mcl_achievements/locale/template.txt index f229b2152..218288ed5 100644 --- a/mods/HUD/mcl_achievements/locale/template.txt +++ b/mods/HUD/mcl_achievements/locale/template.txt @@ -69,7 +69,7 @@ The Cutest Predator= Catch an Axolotl with a bucket! Fishy Business= Catch a fish.@nHint: Catch a fish, salmon, clownfish, or pufferfish.= -Country Lode,@nTake Me Home= +Country Lode, Take Me Home= Use a compass on a Lodestone.= Serious Dedication= Use a Netherite Ingot to upgrade a hoe, and then completely reevaluate your life choices.= From 7cb5c55d6891bea72cb155faffb7a4bf9dd7c2a2 Mon Sep 17 00:00:00 2001 From: PrairieWind Date: Mon, 9 Jan 2023 13:36:36 -0700 Subject: [PATCH 2/2] Update Translation Files Fixes the translation error for other languages --- mods/HUD/mcl_achievements/locale/mcl_achievements.fr.tr | 2 +- mods/HUD/mcl_achievements/locale/mcl_achievements.ja.tr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/HUD/mcl_achievements/locale/mcl_achievements.fr.tr b/mods/HUD/mcl_achievements/locale/mcl_achievements.fr.tr index 731d43490..d9f7e477d 100644 --- a/mods/HUD/mcl_achievements/locale/mcl_achievements.fr.tr +++ b/mods/HUD/mcl_achievements/locale/mcl_achievements.fr.tr @@ -67,7 +67,7 @@ Withering Heights=Les Witherables Summon the wither from the dead.=Invoquez le Wither d'entre les morts. Fishy Business=Merci pour le poisson Catch a fish.@nHint: Catch a fish, salmon, clownfish, or pufferfish.=Attrapez un poisson. \nAstuce : attrapez un poisson, saumon, poisson-clown, ou poisson-globe. -Country Lode,@nTake Me Home=Petit Poucet +Country Lode, Take Me Home=Petit Poucet Use a compass on a Lodestone.=utiliser une boussole sur une magnétite. Serious Dedication=Sérieux dévouement Use a Netherite Ingot to upgrade a hoe, and then completely reevaluate your life choices.=Utilisez un lingot de netherite pour améliorez une houe, puis réévaluez complètement vos choix de vie. diff --git a/mods/HUD/mcl_achievements/locale/mcl_achievements.ja.tr b/mods/HUD/mcl_achievements/locale/mcl_achievements.ja.tr index 592833cee..2e67d019e 100644 --- a/mods/HUD/mcl_achievements/locale/mcl_achievements.ja.tr +++ b/mods/HUD/mcl_achievements/locale/mcl_achievements.ja.tr @@ -69,7 +69,7 @@ The Cutest Predator=いちばんカワイイ捕食者 Catch an Axolotl with a bucket!=バケツでウーパールーパーを捕まえよう! Fishy Business=フィッシー・ビジネス Catch a fish.@nHint: Catch a fish, salmon, clownfish, or pufferfish.=魚を獲ろう。@nヒント:タラ、サケ、クマノミ、フグ等を釣ります。 -Country Lode,@nTake Me Home=この道ずっとゆけば@n鉱脈につづいてる +Country Lode, Take Me Home=この道ずっとゆけば 鉱脈につづいてる Use a compass on a Lodestone.=ロードストーンにコンパスを使おう。 Serious Dedication=真摯な取り組み Use a Netherite Ingot to upgrade a hoe, and then completely reevaluate your life choices.=ネザライトインゴットでクワをアップグレードしたら、人生設計の完全な見直しを図ろう。