From ea0e802df0c254e55db3fe3f0600138d05eecc16 Mon Sep 17 00:00:00 2001 From: Matthias Gatto Date: Tue, 7 May 2024 04:16:12 +0200 Subject: [PATCH] increase time reset for message box Signed-off-by: Matthias Gatto --- actions.lua | 6 +++--- phq.lua | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/actions.lua b/actions.lua index e523ae9..733bdf6 100644 --- a/actions.lua +++ b/actions.lua @@ -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 @@ -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 @@ -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 diff --git a/phq.lua b/phq.lua index 153594b..3474098 100644 --- a/phq.lua +++ b/phq.lua @@ -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