Switching art work betwen faction?
I would like to set my back ground frames to switch there art work depending on if you are horde or alliance. I have no idea how to do this or were to look for info on this type of coding. I'm using just all Lua want to stay away from XML since I know nothing a bought XML. Any ideas would be grateful thank you.
|
You'd do something like:
Code:
if UnitFactionGroup("player") == "Alliance" then |
Quote:
Config.lua Code:
Backdrop = { Code:
local function Backdrop() |
Like this:
Code:
local HORDE_BACKDROP = { |
It works for all but my Omen and Recount. Why?
Code:
if Recount then :confused: |
Hi,
Looking at your code, I think it's a capitalisation issue. This: if UnitFactionGroup("player") == "HORDE" then Should be this: if UnitFactionGroup("player") == "Horde" then |
(face palm) :eek: You were right. lol the simplest thing messed me up.
|
All times are GMT -6. The time now is 04:44 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI