From 9d6dea4486acbf171acd56ae4d8bf1abaa2d8cd8 Mon Sep 17 00:00:00 2001 From: Creckeryop Date: Sat, 28 Aug 2021 16:20:04 +0500 Subject: [PATCH] 0.89 and Added mention of German translator --- source/assets/libs/catalogs.lua | 6 +++--- source/assets/libs/settings.lua | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/source/assets/libs/catalogs.lua b/source/assets/libs/catalogs.lua index 4c7567e..0151d6d 100644 --- a/source/assets/libs/catalogs.lua +++ b/source/assets/libs/catalogs.lua @@ -859,7 +859,7 @@ function Catalogs.draw() for i = start, min(#list, start + 9) do local task = list[i] if slider.ItemID == i then - local dyForTranslators = list[i] == "Translators" and 125 or 0 + local dyForTranslators = list[i] == "Translators" and 145 or 0 Graphics.fillRect(215, 945, y - 75, y - 1 + dyForTranslators, COLOR_SELECTED) end if type(task) == "table" then @@ -984,7 +984,7 @@ function Catalogs.draw() FONT16, 225, y - 44, - ("@SamuEDL :- Spanish \n@nguyenmao2101 :- Vietnamese \n@theheroGAC :- Italian \n@Cimmerian_Iter :- French \n@kemalsanli :- Turkish \n@rutantan :- PortugueseBR \n@Qingyu510 :- SimplifiedChinese &- TraditionalChinese \n@tmihai20 :- Romanian \n@tofudd :- Polish "):gsub( + ("@SamuEDL :- Spanish \n@nguyenmao2101 :- Vietnamese \n@theheroGAC :- Italian \n@Cimmerian_Iter :- French \n@kemalsanli :- Turkish \n@rutantan :- PortugueseBR \n@Qingyu510 :- SimplifiedChinese &- TraditionalChinese \n@tmihai20 :- Romanian \n@tofudd :- Polish \n@lukrynka :- German "):gsub( "%- (.-) ", function(a) return " " .. (LanguageNames[Settings.Language][a] or a) .. " " @@ -1048,7 +1048,7 @@ function Catalogs.draw() scrollHeight = elementsCount * 75 / 524 end item = settingSelector:getSelected() - itemHeight = list[item] == "Translators" and 125 or 0 + itemHeight = list[item] == "Translators" and 145 or 0 elseif status == "MANGA" or status == "LIBRARY" or status == "HISTORY" then if #currentMangaList ~= 0 then local start = max(1, floor(slider.Y / (MANGA_HEIGHT + 6)) * 4 + 1) diff --git a/source/assets/libs/settings.lua b/source/assets/libs/settings.lua index fd5f10a..ddbc6c3 100644 --- a/source/assets/libs/settings.lua +++ b/source/assets/libs/settings.lua @@ -1,7 +1,7 @@ Settings = { Language = "Default", Theme = "Light", - Version = 0.87, + Version = 0.89, NSFW = false, Orientation = "Horizontal", ZoomReader = "Smart", @@ -261,6 +261,9 @@ function settings.load() local new = suc() if type(new) == "table" then setSetting(new, "Language", Language) + if Language[settings.Language] == nil then + settings.Language = "Default" + end if NSFWLock then setSetting(new, "NSFW", {false}) if settingsListTree and settingsListTree.Catalogs and settingsListTree.Catalogs[1] then