Custom Textures and Borders Disappearing
The close button on the addon I'm making keeps disappearing. https://imgur.com/D5kWvM9
1. After I reload the UI sometimes the button appears and sometimes it doesn't, and I'm not changing anything in the code. 2. Sometimes the Normal texture appears but the OnEnter texture doesn't. It's like sometimes certain textures are available at the time the code is run and sometimes it's not. (wtf?) -- Second problem I'm having is the 1px borders I have around certain frames disappears and reappear when I move it around the screen. https://imgur.com/yFlUQ0B In the screenshot you'll see the top border is gone but if I drag the frame around then the top border may appear again.. and sometimes the top will appear but then the bottom will disappear. I'm pretty new to coding. Any help is appreciated! |
the first issue is probably a layering problem, make sure the button texture is attached to something on a higher frame level than whatever the background is.
https://wow.gamepedia.com/Widget_API#LayeredRegion the second issue is most likely sub-pixel errors, when relying on single pixel accuracy you'll need to "pad" your dimensions and/or positions to account for floating point errors. increase the frame size by 0.1 px or shift it a similar amount in both directions. |
This is not answering the question, just want to ask this:
Why you dont simply use Ace GUI? It comes with all the UI stuff that you need for ingame interfaces. And you can override the look of Ace GUI easily. For the second problem: Pixel perfect! https://www.reddit.com/r/WowUI/comme...ui_xpost_rwow/ |
Quote:
|
Quote:
I supposed I don't use Ace because I'm new to coding and I feel that forcing myself to make everything from scratch will deepen my knowledge and make me a better developer. |
All times are GMT -6. The time now is 09:16 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI