-
-
Notifications
You must be signed in to change notification settings - Fork 398
fix: Icon updates and equipping items via the actionbar #1119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mehah
merged 12 commits into
opentibiabr:main
from
andreoam:otclient-mehar-para-criar-prs
Mar 18, 2025
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
52d18c0
update icons
andreoam 781d3b8
Merge branch 'mehah:main' into main
andreoam 4f84016
up
andreoam 1a44229
Prey
andreoam 1ca3dcb
Update shop.png
andreoam 383b38a
up
andreoam 2a22e4a
updating suggestions
andreoam 5ffdfb4
update actionbar
andreoam 8b05e7a
Merge branch 'mehah:main' into main
andreoam 70071f2
Update game_actionbar.lua
andreoam eeca62d
Update src/client/luafunctions.cpp
andreoam 2f21b2d
Update mods/game_bot/functions/const.lua
andreoam File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -75,6 +75,17 @@ function terminate() | |||||||
| if editHotkeyWindow then | ||||||||
| closeEditHotkeyWindow() | ||||||||
| end | ||||||||
| if spellsPanel then | ||||||||
| disconnect(spellsPanel, { | ||||||||
| onChildFocusChange = function(self, focusedChild) | ||||||||
| if focusedChild == nil then | ||||||||
| return | ||||||||
| end | ||||||||
| updatePreviewSpell(focusedChild) | ||||||||
| end | ||||||||
| }) | ||||||||
| end | ||||||||
|
|
||||||||
| end | ||||||||
|
|
||||||||
| function online() | ||||||||
|
|
@@ -667,8 +678,9 @@ function setupHotkeys() | |||||||
| elseif slot.useType == 'useOnSelf' then | ||||||||
| modules.game_hotkeys.executeHotkeyItem(HOTKEY_USEONSELF, slot.itemId, slot.subType) | ||||||||
| elseif slot.useType == 'equip' then | ||||||||
| local item = g_game.findPlayerItem(slot.itemId, -1, slot.getTier) | ||||||||
| local item = Item.create(slot.itemId) | ||||||||
| if item then | ||||||||
| item:setTier(slot.getTier) | ||||||||
| g_game.equipItem(item) | ||||||||
| end | ||||||||
| end | ||||||||
|
|
@@ -710,8 +722,9 @@ function setupHotkeys() | |||||||
| elseif slot.useType == 'useOnSelf' then | ||||||||
| modules.game_hotkeys.executeHotkeyItem(HOTKEY_USEONSELF, slot.itemId, slot.subType) | ||||||||
| elseif slot.useType == 'equip' then | ||||||||
| local item = g_game.findPlayerItem(slot.itemId, -1, slot.getTier) | ||||||||
| local item = Item.create(slot.itemId) | ||||||||
| if item then | ||||||||
| item:setTier(slot.getTier) | ||||||||
| g_game.equipItem(item) | ||||||||
| end | ||||||||
| end | ||||||||
|
|
@@ -1135,4 +1148,4 @@ end | |||||||
|
|
||||||||
| function getPanelActionbar() | ||||||||
| return actionBar | ||||||||
| end | ||||||||
| end | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why create instead getting from player?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
obter do player so estava equipando os itens em backpacks abertas, Utilizei a mesma logica do otcv8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
English please