Skip to content
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

Options for moving Upgrade Icon #499

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

legowxelab2z8
Copy link
Contributor

Adds options for moving the Upgrade Icon.
This feature was in #206 but was omitted in #496

The options are included in the main options under Items with the rest of the item options (quest indicator, quality highlight). Most of the changes are made to widgets\ItemButton.lua
If implemented these options will share localization with #496

UpgradeIconOptions

Added options to the Item section that has other options for how item buttons are displayed like quest indicator and quality highlight.
Move UpdateUpgradeIcon to ItemButton.lua
Call UpdateUpgradeIcon in the OnEnabled in core.lua for handling profile changing
Set the Setter function on the option group that is inherited by the Anchor and Offset options instead of using a setter for each option.
Fix Whitespaces

Remove the whitespace in Options.lua to minimize changes with the master branch
Add a whitespace in Core.lua to minimize changes with the master branch
Fix whitespaces

Fix whitespaces
 ../core/Core.lua:174
../config/Options.lua:668
Actually fix whitespaces this time

perhaps it is time I installed a linter...
Change IterateActiveObjects to IterateAllObjects.  Since the buttons are already created but inactive they still need to be updated since they will be reused for new items in your bags and the icon needs to be updated.
@Alyred
Copy link

Alyred commented Nov 22, 2020

Also seems to work well, and works with no issues that I've found with #496.

@Alyred
Copy link

Alyred commented Dec 7, 2020

Any further issues? Testing for this pull has gone well and haven't seen any issues.

Copy link

@Alyred Alyred left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After manually integrating these ( as in #496 ) the code still functions fine without any conflicts with 1.9.23-3alpha, just some new line locations.
No issues or code conflicts noted with #496 or #522, other than all three of these pulls languishing long enough that code as drifted in the meantime.

@Beet4
Copy link

Beet4 commented Nov 29, 2022

Any updates on integrating this into AdiBags? It would be awesome as currently the ilvl text covers the Pawn upgrade button.

Edit: Not a huge issue anymore since AdiBags 1.9.49 moved the itemlevel text to the bottom left instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants