Skip to content

Commit

Permalink
increase time reset for message box
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Gatto <uso.cosmo.ray@gmail.com>
  • Loading branch information
cosmo-ray committed May 7, 2024
1 parent a588da2 commit ea0e802
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function getMainWid(wid)
end

local function backToGameReset(main)
local TIME_RESET = 1000000
local TIME_RESET = 2000000

main.pj.move.up_down = 0
main.pj.move.left_right = 0
Expand Down Expand Up @@ -819,7 +819,7 @@ end

function printMessage(_main, _obj, msg)
local txt = yLuaString(msg)
local TIME_RESET = 1000000
local TIME_RESET = 2000000

main = main_widget

Expand Down Expand Up @@ -851,7 +851,7 @@ function printMessage(_main, _obj, msg)
dialogue_box.new_text(main.upCanvas, 0, 0,
txt, main, "box")

if main.box_t and main.box_t < 1500000 then
if main.box_t and (main.box_t < 2000000 or main.box_t < TIME_RESET) then
main.box_t = main.box_t + TIME_RESET
else
main.box_t = TIME_RESET
Expand Down
2 changes: 1 addition & 1 deletion phq.lua
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ function phq_action(entity, eve)
box_loading_bar = nil
elseif isNewlyLoad == false then
entity.box_t = entity.box_t - ywidGetTurnTimer()
loading_bar.setPercent(box_loading_bar, 100 - (100 * yeGetInt(entity.box_t) / 4000000))
loading_bar.setPercent(box_loading_bar, 100 - (100 * yeGetInt(entity.box_t) / 8000000))
end
end

Expand Down

0 comments on commit ea0e802

Please sign in to comment.