Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -514,12 +514,10 @@ https://github.com/mehah/otclient/blob/main/data/setup.otml#L21
|----------------------- |----------------------------------- |------ |
| Android compatibility | ![](https://geps.dev/progress/50) | [Branch](https://github.com/mehah/otclient/tree/mobile-working) |
| Familiar outfit | ![](https://geps.dev/progress/30) | [#39](https://github.com/Nottinghster/otclient/pull/39) |
| Cyclopedia | ![](https://geps.dev/progress/90) | [#47](https://github.com/Nottinghster/otclient/pull/47) |
| Blessing | ![](https://geps.dev/progress/100) | [#825](https://github.com/mehah/otclient/pull/825) |
| wheel_of_destiny | ![](https://geps.dev/progress/1) | None |
| Forge | ![](https://geps.dev/progress/1) | None |
| Analyzer | ![](https://geps.dev/progress/10) | [#802](https://github.com/mehah/otclient/pull/802) |
| fix Extended view new-layout | ![](https://geps.dev/progress/0) | None |
| Quickloot | ![](https://geps.dev/progress/30) | None |
| Sound tibia 13 | ![](https://geps.dev/progress/0) | None |

## <a name="supportprotocol">💯 Support Protocol</a>
Expand All @@ -537,7 +535,7 @@ https://github.com/mehah/otclient/blob/main/data/setup.otml#L21
| TFS 1.6 <br>(13.10) | Main repo <br> otland (2024) | [See wiki](https://github.com/mehah/otclient/wiki/Tutorial-to-Use-OTC-in-TFS-main) | ✅ |
| Canary 13.21 | OpenTibiaBr | [Assets , Enable HTTP login and port 80](https://docs.opentibiabr.com/opentibiabr/projects/otclient-redemption#how-to-connect-on-canary-with-otclient-redemption) | ✅ |
| Canary 13.32 | OpenTibiaBr | [Assets , Enable HTTP login and port 80](https://docs.opentibiabr.com/opentibiabr/projects/otclient-redemption#how-to-connect-on-canary-with-otclient-redemption) | ✅ |
| Canary 13.40 | OpenTibiaBr | | 〰️ |
| Canary 13.40 | OpenTibiaBr | | |



Expand Down
Binary file added data/images/game/cyclopedia/bestiary_off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/game/cyclopedia/bestiary_on.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/game/cyclopedia/bossSlot_off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/game/cyclopedia/bossSlot_on.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/game/cyclopedia/bosstiary_off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/game/cyclopedia/bosstiary_on.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/game/cyclopedia/character_off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/game/cyclopedia/character_on.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/game/cyclopedia/charms_off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/game/cyclopedia/charms_on.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/game/cyclopedia/houses_off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/game/cyclopedia/houses_on.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/game/cyclopedia/items_off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/game/cyclopedia/items_on.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/game/cyclopedia/map_off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/game/cyclopedia/map_on.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/game/cyclopedia/off.psd
Binary file not shown.
Binary file added data/images/game/cyclopedia/on.psd
Binary file not shown.
Binary file added data/images/game/slots/inventory-back.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/game/slots/inventory-feet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/game/slots/inventory-finger.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/game/slots/inventory-head.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/game/slots/inventory-hip.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/game/slots/inventory-left-hand.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/game/slots/inventory-legs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/game/slots/inventory-neck.png
Binary file added data/images/game/slots/inventory-right-hand.png
Binary file added data/images/game/slots/inventory-torso.png
Binary file added data/images/options/ButtonBossSlot.png
Binary file added data/images/options/ButtonBosstiary.png
Binary file added data/images/options/bestiaryTracker.png
Binary file added data/images/options/bosstiaryTracker.png
Binary file added data/images/topbuttons/bestiaryTracker.png
Binary file added data/images/ui/backdrop-dark-grey.png
Binary file added data/images/ui/button-9grid-idle.png
Binary file added data/images/ui/button-9grid-pressed.png
Binary file added data/images/ui/button-clear-18x18-down.png
Binary file added data/images/ui/button-clear-18x18-up.png
Binary file added data/images/ui/button-storexp-pressed.png
Binary file added data/images/ui/button-storexp.png
Binary file added data/images/ui/character/ammo.png
Binary file added data/images/ui/character/ammo2.png
Binary file added data/images/ui/character/amulet.png
Binary file added data/images/ui/character/amulet2.png
Binary file added data/images/ui/character/armor.png
Binary file added data/images/ui/character/armor2.png
Binary file added data/images/ui/character/artifact.png
Binary file added data/images/ui/character/artifact2.png
Binary file added data/images/ui/character/backpack.png
Binary file added data/images/ui/character/backpack2.png
Binary file added data/images/ui/character/blank.png
Binary file added data/images/ui/character/boots.png
Binary file added data/images/ui/character/boots2.png
Binary file added data/images/ui/character/helmet.png
Binary file added data/images/ui/character/helmet2.png
Binary file added data/images/ui/character/icon.png
Binary file added data/images/ui/character/legs.png
Binary file added data/images/ui/character/legs2.png
Binary file added data/images/ui/character/mainhand.png
Binary file added data/images/ui/character/mainhand2.png
Binary file added data/images/ui/character/offhand.png
Binary file added data/images/ui/character/offhand2.png
Binary file added data/images/ui/character/primary_backpack.png
Binary file added data/images/ui/character/ring.png
Binary file added data/images/ui/character/ring2.png
Binary file added data/images/ui/character/rune.png
Binary file added data/images/ui/character/rune2.png
Binary file added data/images/ui/character/secondary_backpack.png
Binary file added data/images/ui/character/slot.png
Binary file added data/images/ui/ditherpattern.png
Binary file modified data/images/ui/miniwindow_buttons.png
Binary file added data/images/ui/progress-separator.png
Binary file modified data/images/ui/rarity_blue.png
Binary file modified data/images/ui/rarity_green.png
Binary file added data/images/ui/rarity_grey.png
Binary file modified data/images/ui/rarity_purple.png
Binary file modified data/images/ui/rarity_white.png
Binary file added data/images/ui/rarity_yellow.png
Binary file added data/images/ui/undefined_item.png
Binary file added data/images/ui/widget-borderimage.png
30 changes: 30 additions & 0 deletions data/styles/10-checkboxes.otui
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,33 @@ QtCheckBox < UICheckBox

$checked disabled:
image-clip: 0 26 14 14

fakeCheckBox < UICheckBox
font: cipsoftFont
size: 106 23
image-source: /images/ui/button
image-clip: 0 0 22 23
image-border: 3
padding: 5 10 5 10
opacity: 1.0
color: #b9b9b9ff

$hover !disabled:
color: #ffffff

$!checked:
image-clip: 0 0 22 23

$hover !checked:
image-clip: 0 0 22 23

$checked:
image-clip: 0 46 22 23

$hover checked:
image-clip: 0 46 22 23

$disabled:
image-color: #dfdfdf88
color: #dfdfdf88
opacity: 0.8
3 changes: 1 addition & 2 deletions modules/corelib/ui/uimessagebox.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ function UIMessageBox.create(title, okCallback, cancelCallback)
return calendar
end


function UIMessageBox.display(title, message, buttons, onEnterCallback, onEscapeCallback)
local staticSizes = {
width = {
max = 616,
max = 916,
min = 116
},
height = {
Expand Down
1 change: 1 addition & 0 deletions modules/game_containers/containers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ function onContainerOpen(container, previousContainer)
local itemWidget = g_ui.createWidget('Item', containerPanel)
itemWidget:setId('item' .. slot)
itemWidget:setItem(container:getItem(slot))
ItemsDatabase.setRarityItem(itemWidget, container:getItem(slot))
itemWidget:setMargin(0)
itemWidget.position = container:getSlotPosition(slot)

Expand Down
42 changes: 3 additions & 39 deletions modules/game_cooldown/cooldown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ local ProgressCallback = {
}

cooldownWindow = nil
cooldownButton = nil

contentsPanel = nil
cooldownPanel = nil
lastPlayer = nil
Expand All @@ -20,23 +20,13 @@ function init()
onSpellCooldown = onSpellCooldown
})

cooldownButton = modules.game_mainpanel.addToggleButton('cooldownButton', tr('Cooldowns'),
'/images/options/cooldowns', toggle, false, 5)

if modules.client_options.getOption('showSpellGroupCooldowns') then
cooldownButton:setOn(true)
modules.client_options.setOption('showSpellGroupCooldowns', true)
else
cooldownButton:setOn(false)
modules.client_options.setOption('showSpellGroupCooldowns', false)
end

cooldownButton:hide()

cooldownWindow = g_ui.loadUI('cooldown', modules.game_interface.getBottomPanel())



contentsPanel = cooldownWindow:getChildById('contentsPanel2')
cooldownPanel = contentsPanel:getChildById('cooldownPanel')

Expand All @@ -59,7 +49,6 @@ function terminate()
})

cooldownWindow:destroy()
cooldownButton:destroy()

end

Expand Down Expand Up @@ -98,39 +87,21 @@ function loadIcon(iconId)
end

function onMiniWindowOpen()
cooldownButton:setOn(true)
modules.client_options.setOption('showSpellGroupCooldowns', true)
end

function onMiniWindowClose()
cooldownButton:setOn(false)
modules.client_options.setOption('showSpellGroupCooldowns', false)
end

function toggle()
local console = modules.game_console.consolePanel
if cooldownButton:isOn() then
modules.client_options.setOption('showSpellGroupCooldowns', false)
cooldownButton:setOn(false)
else
modules.client_options.setOption('showSpellGroupCooldowns', true)
cooldownButton:setOn(true)
end
end

function online()
local console = modules.game_console.consolePanel
if console then
console:addAnchor(AnchorTop, cooldownWindow:getId(), AnchorBottom)
end
if g_game.getFeature(GameSpellList) then
cooldownButton:show()
cooldownButton:setOn(true)
modules.client_options.setOption('showSpellGroupCooldowns', true)
else
cooldownButton:hide()
cooldownButton:setOn(false)
if not g_game.getFeature(GameSpellList) then
modules.client_options.setOption('showSpellGroupCooldowns', false)
return
end

if not lastPlayer or lastPlayer ~= g_game.getCharacterName() then
Expand Down Expand Up @@ -277,18 +248,11 @@ function onSpellGroupCooldown(groupId, duration)
end

function setSpellGroupCooldownsVisible(visible)
if not g_game.getFeature(GameSpellList) then
cooldownWindow:hide()
cooldownWindow:setHeight(10)
return
end
if visible then
cooldownWindow:setHeight(30)
cooldownWindow:show()
else
cooldownWindow:hide()
cooldownWindow:setHeight(10)
end

cooldownButton:setOn(visible)
end
1 change: 1 addition & 0 deletions modules/game_cyclopedia/cyclopedia_pages.otui
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CyclopediaPages < UIWidget
Loading