Skip to content

Commit

Permalink
Update scene
Browse files Browse the repository at this point in the history
  • Loading branch information
SweetSea-ButImNotSweet committed Oct 18, 2023
1 parent 2c72217 commit 22b0f0e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions parts/scenes/dict.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ local result -- Result Lable
local localeFile -- Language file name, used for force reload

local lastTickInput
local searchWait -- Searching animation timer
local searchWait -- Searching animation timer
local defaultSearchWait=MOBILE and 2.6 or 0.8 -- Default time to wait from the last key before searching

local lastSearch -- Last searched string
local lastSelected -- Last selected item
local lastSearch -- Last searched string
local lastSelected -- Last selected item

local currentFontSize=25 -- Current font size, default: 25
local currentFontSize=25 -- Current font size, default: 25

local typeColor={
help=COLOR.Y,
Expand Down Expand Up @@ -288,7 +289,7 @@ function scene.update(dt)
_clearResult()
listBox:setList(_getList())
else
searchWait=.8
searchWait=defaultSearchWait
end
lastTickInput=input
end
Expand Down

0 comments on commit 22b0f0e

Please sign in to comment.