diff --git a/layouts/retro/styles/40-inventory.otui b/layouts/retro/styles/40-inventory.otui index 4e173a0..4d81dcd 100644 --- a/layouts/retro/styles/40-inventory.otui +++ b/layouts/retro/styles/40-inventory.otui @@ -100,7 +100,7 @@ InventoryButton < Button text-align: center font: cipsoftFont color: white - size: 45 20 + size: 45 18 text-offset: 2 2 SoulCapLabel < GameLabel diff --git a/modules/client_entergame/characterlist.otui b/modules/client_entergame/characterlist.otui index 36911e4..135dd5e 100644 --- a/modules/client_entergame/characterlist.otui +++ b/modules/client_entergame/characterlist.otui @@ -103,15 +103,18 @@ StaticMainWindow Button id: autoReconnect - !text: tr('Auto reconnect: On') width: 140 anchors.left: parent.left anchors.bottom: parent.bottom - image-color: green + $!on: image-color: red !text: tr('Auto reconnect: Off') + $on: + !text: tr('Auto reconnect: On') + image-color: green + Button id: buttonOk !text: tr('Ok') diff --git a/modules/game_prey/prey.lua b/modules/game_prey/prey.lua index bdd139c..3f61c0e 100644 --- a/modules/game_prey/prey.lua +++ b/modules/game_prey/prey.lua @@ -140,6 +140,7 @@ function terminate() end end +local n = 0 function setUnsupportedSettings() local t = {"slot1", "slot2", "slot3"} for i, slot in pairs(t) do @@ -192,7 +193,7 @@ function show() preyWindow:show() preyWindow:raise() preyWindow:focus() - --g_game.preyRequest() -- update preys, it's for tibia 12 + g_game.preyRequest() -- update preys, it's for tibia 12 end function toggle() @@ -205,7 +206,7 @@ end function onPreyFreeRolls(slot, timeleft) local prey = preyWindow["slot" .. (slot + 1)] local percent = (timeleft / (20 * 60)) * 100 - local desc = timeleftTranslation(timeleft * 60, true) + local desc = timeleftTranslation(timeleft * 60) if not prey then return end for i, panel in pairs({prey.active, prey.inactive}) do local progressBar = panel.reroll.button.time @@ -213,7 +214,7 @@ function onPreyFreeRolls(slot, timeleft) progressBar:setPercent(percent) progressBar:setText(desc) if timeleft == 0 then - price:setText("Free") + price:setText("0") end end end @@ -421,7 +422,7 @@ function onItemBoxChecked(widget) widget:setChecked(true) end -function onPreyActive(slot, currentHolderName, currentHolderOutfit, bonusType, bonusValue, bonusGrade, timeLeft, timeUntilFreeReroll) +function onPreyActive(slot, currentHolderName, currentHolderOutfit, bonusType, bonusValue, bonusGrade, timeLeft, timeUntilFreeReroll, lockType) -- locktype always 0 for protocols <12 local tracker = preyTracker.contentsPanel["slot"..(slot + 1)] currentHolderName = capitalFormatStr(currentHolderName) local percent = (timeLeft / (2 * 60 * 60)) * 100 @@ -493,8 +494,9 @@ function onPreySelection(slot, bonusType, bonusValue, bonusGrade, names, outfits prey.inactive:show() prey.title:setText(tr("Select monster")) local rerollButton = prey.inactive.reroll.button.rerollButton - rerollButton:setImageSource("/images/game/prey/prey_reroll_blocked") - rerollButton:disable() + rerollButton.onClick = function() + g_game.preyAction(slot, PREY_ACTION_LISTREROLL, 0) + end local list = prey.inactive.list list:destroyChildren() for i, name in ipairs(names) do diff --git a/modules/game_prey/prey.otui b/modules/game_prey/prey.otui index de2d4f5..4e0793a 100644 --- a/modules/game_prey/prey.otui +++ b/modules/game_prey/prey.otui @@ -435,7 +435,6 @@ RerollButton < FlatPanel $pressed: image-clip: 0 46 60 47 - GoldLabel id: price anchors.top: prev.bottom diff --git a/modules/game_skills/skills.lua b/modules/game_skills/skills.lua index c68b53b..c7f0e9b 100644 --- a/modules/game_skills/skills.lua +++ b/modules/game_skills/skills.lua @@ -299,7 +299,7 @@ end function onLevelChange(localPlayer, value, percent) setSkillValue('level', value) local text = tr('You have %s percent to go', 100 - percent) .. '\n' .. - tr('%s of experience left', expToAdvance(localPlayer:getLevel(), localPlayer:getExperience())) + tr('%s of experience left', comma_value(expToAdvance(localPlayer:getLevel(), localPlayer:getExperience()))) if localPlayer.expSpeed ~= nil then local expPerHour = math.floor(localPlayer.expSpeed * 3600) @@ -308,7 +308,7 @@ function onLevelChange(localPlayer, value, percent) local hoursLeft = (nextLevelExp - localPlayer:getExperience()) / expPerHour local minutesLeft = math.floor((hoursLeft - math.floor(hoursLeft))*60) hoursLeft = math.floor(hoursLeft) - text = text .. '\n' .. tr('%d of experience per hour', expPerHour) + text = text .. '\n' .. tr('%d of experience per hour', comma_value(expPerHour)) text = text .. '\n' .. tr('Next level in %d hours and %d minutes', hoursLeft, minutesLeft) end end diff --git a/otclient_dx.exe b/otclient_dx.exe index 05df6e3..01c6c84 100644 Binary files a/otclient_dx.exe and b/otclient_dx.exe differ diff --git a/otclient_gl.exe b/otclient_gl.exe index e2f240e..2aaf45c 100644 Binary files a/otclient_gl.exe and b/otclient_gl.exe differ diff --git a/otclient_linux b/otclient_linux index ee2da4b..028b5b5 100644 Binary files a/otclient_linux and b/otclient_linux differ diff --git a/otclient_mac b/otclient_mac index 3e46363..ebad6fb 100644 Binary files a/otclient_mac and b/otclient_mac differ diff --git a/otclientv8.apk b/otclientv8.apk index 418b209..f6ed2d4 100644 Binary files a/otclientv8.apk and b/otclientv8.apk differ