xml backdrop problem, I think
Hi, I've been trying to get this addon showing up properly. It functions fine and does what it's supposed to do, it's just lost it's colors.
https://photos.app.goo.gl/g6t2hrEmAQxbQg1r6 I have tried inherits="BackdropTemplate" in the frame and inherit="prepend" in OnLoad part. Didn't fix it. My poor attempt to fix it is at the bottom of the post Thank you in advance for any help to fix it. There are 3 files, TOC, Lua and XML TOC Code:
## Author: Olivier Pelletier. Code:
-- Author : Olivier Pelletier Code:
<Ui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.blizzard.com/wow/ui/"> Code:
<Ui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.blizzard.com/wow/ui/"> |
This is an xml file for one of my frames and shows what I had and what I changed it to. It should help you see what you need to change.
Lua Code:
And this file shows you the presets available and how you can create your own if none of them suit your needs. https://www.townlong-yak.com/framexml/live/Backdrop.lua |
Thank you, that was very helpful.
I had got the changes I had already made from the page you linked to, but I was unsure on what exactly to do. So far I now have color in the main frame and border, just have to work on the other frames and options menu now. :D |
Thank you very much, It looks so much better now
https://photos.app.goo.gl/GtD9M1372Mt8KcHVA The only problem left is I tried to make just the title background gold, like it used to be, and it stays black. It's no biggy, I'm estatic, I have background and borders. Is there a list of named colors your allowed? Code:
<KeyValues> New XML Code:
<Ui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.blizzard.com/wow/ui/"> |
I can't see where any of the set color codes are set so far but found this file that shows more in the backdrop table.
https://www.townlong-yak.com/framexm...ameTooltip.lua Which implies that you could set your own colors using the regular table format { r = .. , b = .. , c = ... } Constants.lua also had these colors being used .. but can't find where they are set BAG_ITEM_QUALITY_COLORS = { [Enum.ItemQuality.Common] = COMMON_GRAY_COLOR, [Enum.ItemQuality.Uncommon] = UNCOMMON_GREEN_COLOR, [Enum.ItemQuality.Rare] = RARE_BLUE_COLOR, [Enum.ItemQuality.Epic] = EPIC_PURPLE_COLOR, [Enum.ItemQuality.Legendary] = LEGENDARY_ORANGE_COLOR, [Enum.ItemQuality.Artifact] = ARTIFACT_GOLD_COLOR, [Enum.ItemQuality.Heirloom] = HEIRLOOM_BLUE_COLOR, [Enum.ItemQuality.WoWToken] = HEIRLOOM_BLUE_COLOR, } Aha .. found them https://www.townlong-yak.com/framexm...rConstants.lua |
All times are GMT -6. The time now is 10:43 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI