Skip to content

Commit

Permalink
0.89 and Added mention of German translator
Browse files Browse the repository at this point in the history
  • Loading branch information
Creckeryop committed Aug 28, 2021
1 parent f388546 commit 9d6dea4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions source/assets/libs/catalogs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) .. " "
Expand Down Expand Up @@ -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)
Expand Down
5 changes: 4 additions & 1 deletion source/assets/libs/settings.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Settings = {
Language = "Default",
Theme = "Light",
Version = 0.87,
Version = 0.89,
NSFW = false,
Orientation = "Horizontal",
ZoomReader = "Smart",
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9d6dea4

Please sign in to comment.