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:
@@ -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')
|
||||
|
||||
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user