mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-19 14:13:27 +02:00
Version 2.2 - retro layout + bug fixes
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user