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

IconBorder Issue #3

Closed
StormFX opened this issue Aug 29, 2019 · 13 comments
Closed

IconBorder Issue #3

StormFX opened this issue Aug 29, 2019 · 13 comments

Comments

@StormFX
Copy link

StormFX commented Aug 29, 2019

It seems that under certain conditions, Bagnon_Facade's IconBorder:SetAlpha(0) isn't being applied correctly. For example, if one reloads the UI, kills a mob, loots a gray or white item and then moves an uncommon or better item to that slot, the IconBorder is still in its default state. I'm not sure why this occurring. I was able to fix it by using adding an additional method overwrite to Bagnon_Facade, like so:

-- Edited this line:
local NewItem, FreeItem, UpdateItem = Item.New, Item.Free, Item.Update

-- Added these lines:
function Item:Update()
	UpdateItem(self)
	self.IconBorder:SetAlpha(0)
end
@GreyFoxGer
Copy link

Doesen't fixed for me :(

@StormFX
Copy link
Author

StormFX commented Aug 31, 2019

Copy the code you changed and put it in a gist.

@GreyFoxGer
Copy link

@StormFX
Copy link
Author

StormFX commented Aug 31, 2019

If you're using Bagnon_Facade, you need to edit it, too. That code only affects Combuctor_Masque.

@GreyFoxGer
Copy link

i don't use bagnon at all...

@StormFX
Copy link
Author

StormFX commented Aug 31, 2019

You mentioned Bagnon in the issue you posted on Masque. The fix was made for Bagnon_Facade. I didn't test it on Combuctor because I don't use Combuctor. It worked fine with Bagnon. Outside of that, I don't know what to tell you other than it's not an issue with Masque.

@GreyFoxGer
Copy link

I just tested it with Bagnon, same thing.

Same border appears:
https://imgur.com/a/Wqf0q58

After icon get switched it appears normal:
https://imgur.com/a/1N1B1XZ

If i click on the button:
https://imgur.com/a/QDwju8O

Should be like:
https://imgur.com/a/pyFEyuJ

So,it's not 100% fixed :(

@StormFX
Copy link
Author

StormFX commented Aug 31, 2019

The first image is not the same issue you pointed out in the other report. What you're seeing there is most likely the default NewItem texture, which is the texture that appears over newly looted items and then disappears when you mouse over it. The skin doesn't seem to be applied to it, which is the fault of the skin.

The issue with the Pushed texture is caused by the same issue as the one affecting IconBorder, which seems to be related to inheritance from the parent "class".

I didn't say it was 100% fixed. I demonstrated a fix that got it working on my end. I can't account for factors other than what I experienced. I used the fix I posted and tested the same scenario as was discussed, in the same manner. With the fix, the issue was gone on my computer.

At this point, you'll probably have to wait until the author fixes it.

@Jaliborc
Copy link
Owner

Jaliborc commented Sep 1, 2019

Just fyi, I haven't read this issue yet, cause I'm dealing with some a big higher priority issues. Will try to look at it this week.

@StormFX
Copy link
Author

StormFX commented Sep 1, 2019

No problem, J.

@GreyFoxGer: Try this. (Replace the contents of Bagnon_Facade.lua)

The issue is that, in spite of calling button.IconBorder:SetAlph(0) in the Item:New() method, when one prints self.IconBorder:GetAlpha() from the :Update() method, the result is 1. Thus, the alpha has to be explicitly set to 0, after the :Update() call.

@GreyFoxGer
Copy link

@StormFX still the same problem :(

@StormFX
Copy link
Author

StormFX commented Sep 9, 2019

Don't know what to tell you, then. It's working fine on my end.

@Jaliborc
Copy link
Owner

Jaliborc commented May 9, 2024

Oh wow, forgot about this. 5 years ago!
Implemented, lmao.

@Jaliborc Jaliborc closed this as completed May 9, 2024
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

No branches or pull requests

3 participants