Version 2.2 - retro layout + bug fixes

This commit is contained in:
OTCv8
2020-03-31 21:34:09 +02:00
parent 1df9b82846
commit 6b39f061ae
189 changed files with 3384 additions and 4603 deletions

View File

@@ -129,7 +129,7 @@ function show()
end
preyWindow:show()
preyWindow:raise()
preyWindow:focus()
preyWindow:focus()
--g_game.preyRequest() -- update preys, it's for tibia 12
end
@@ -201,7 +201,18 @@ function onPreyInactive(slot, timeUntilFreeReroll)
prey.description:hide()
prey.bonuses:hide()
prey.button:hide()
prey.bottomLabel:hide()
prey.bottomLabel:hide()
prey.bottomLabel:setText(tr("Free list reroll")..": \n" .. timeleftTranslation(timeUntilFreeReroll * 60))
prey.bottomLabel:show()
if timeUntilFreeReroll > 0 then
prey.bottomButton:setText(tr("Buy list reroll"))
else
prey.bottomButton:setText(tr("Free list reroll"))
end
prey.bottomButton:show()
prey.bottomButton.onClick = function()
g_game.preyAction(slot, PREY_ACTION_LISTREROLL, 0)
end
end