Update Vietnamese translation and fix cannot entering Zictionary's manual (#1111)

* Fix cannot enter manual

* Update Zictionary

* Update dict_vi.lua

* Update dict_vi
This commit is contained in:
Nguyễn Quốc Hưng
2024-04-24 02:37:56 +07:00
committed by GitHub
parent 0459248556
commit 9d3aeeb50b
3 changed files with 48 additions and 23 deletions

View File

@@ -159,6 +159,8 @@ function scene.enter()
lastSearch=false
listBox:setList(_getList())
_updateContentBox()
if not MOBILE then WIDGET.focus(inputBox) end
BG.set('rainbow')
end
@@ -230,10 +232,13 @@ function scene.keyDown(key)
-- else
-- local lastLscrollPos=listBox.scrollPos
-- local lastTscrollPos=contentBox.scrollPos
-- listBox:setList(_getList())
-- if #inputBox:getText()>0 then _search() end
-- listBox.selected=lastSelected<#dict and lastSelected or #dict -- In case the last item is removed!
-- listBox.scrollPos=lastLscrollPos
-- _updateContentBox()
-- contentBox.scrollPos=lastTscrollPos
-- SFX.play('pc')

View File

@@ -9,8 +9,18 @@ function scene.enter()
[3] - Background (in string format)
]]
if SCN.args[1] then
if type(SCN.args[1])=='string' then
local _
_,showingText=FONT.get(20):getWrap(SCN.args[1],960)
else
assert(type(SCN.args[1])=='table','textViewer: SCN.args[1] must be string or table of text')
showingText=SCN.args[1]
end
else showingText={'No text!'} end
textBox.font=SCN.args[2] or 20
textBox:setTexts(SCN.args[1] and SCN.args[1] or {"No text loaded"})
textBox:setTexts(showingText)
textBox:reset()
BG.set(SCN.args[3])