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

Petlevels #2

Open
wants to merge 2 commits into
base: petlevels
Choose a base branch
from
Open

Conversation

legowxelab2z8
Copy link

Fixes for two bugs with the refactor of UpdateButton.

Fix 1 Changes SetOptionAndUpdate to update each displayed button not just buttons that there is an existing text for. This fixes item levels not showing when changing settings that would cause more text to be displayed.

Fix 2 Wipe cache OnEnable. Going through a load screen doesn't do a full reloadUI, but adibags handles the changes by calling Disable and then Enable. OnDisable all the text is hidden, so OnEnable the cache needs to be wiped so that the text can be shown as needed. This fixes item levels not being show after a loading screen.

Update for each display button not just buttons that there is an existing text for.  This fixes item levels not showing when changing settings that would display more labels.
Going through a load screen doesn't do a full reloadUI, but adibags handles the changes by calling Disable and then Enable.  OnDisable all the text is hidden, so OnEnable the cache needs to be wiped so that the text can be shown as needed.  This fixes item levels not being show after a loading screen.
@ntowle
Copy link
Member

ntowle commented Dec 2, 2020

Ah @legowxelab2z8 I missed the notification for this pull request somehow - sorry.

Up to you how to proceed - as petlevels was already merged and the "wipe cache OnEnable" bit was fixed already (except onDisable). I was planning this week to open a PR from this branch with some additional improvements to the item level calculation if you wanted to submit the SetOptionAndUpdate changes there.

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

Successfully merging this pull request may close these issues.

2 participants