Go to Page... |
Thread Tools | Display Modes |
01-23-17, 03:10 PM | #41 |
If you're getting two entries/panels in the Addons menu, you have doubled up on the code either in another addon or you've got two copies in the same addon (possibly pasted one after the other in the same file).
__________________
Fizzlemizz Maintainer of Discord Unit Frames and Discord Art. Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus. Last edited by Fizzlemizz : 01-23-17 at 03:13 PM. |
|
01-23-17, 04:54 PM | #42 | |
Still the code for when you get the debuff now does not work. This is the whole code Lua Code:
This code below is only for the debuff with move to moon message and dispell counter Lua Code:
Last edited by wille480 : 01-23-17 at 04:58 PM. |
||
01-23-17, 05:33 PM | #43 |
Delete the line:
Code:
self:SetScript("OnEvent", UNIT_AURA)
__________________
Fizzlemizz Maintainer of Discord Unit Frames and Discord Art. Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus. |
|
01-23-17, 05:41 PM | #44 |
Oh hehe got it!
Everyone miss stuff with programming, atleast me , just want to get in with more lua. I am very used to c# and do that alot but this was abit different! I will test the code out tomorrow and see if deleting the line will fix it, pretty sure it will^^ Ty for help so far fizzle, you rock |
|
01-23-17, 08:28 PM | #45 |
Just for good measure, I re-did the code and incorporated the pas06 additions.
It SHOULD (the in raid code is untested): Only start UNIT_AURA event checking when entering the Helya encounter (raid). Enabling/Disabling no longer require a ReloadUI (hence the print has been moved). Enabling/Disabling now occurs per character. Enabling/Disabling during the raid will have no effect until the next time the raid starts (exit, re-enter/reload/login) (this could be changed by moving the test to the UNIT_AURA function). The first time you enter the raid each session (login/ReloadUI), or after enabling/disabling in the same session, with the addon disabled, a disabled message is printed. You will have to exit the raid to "enable" the addon. Lua Code:
As an aside, frame "names" when they are created also become global references so you need to make sure they are unique if you are specifically naming them ("myAddon", "foo...", "frame" etc. are not good names). If you leave the name as nil, the game generates a uniquie id. for the name (good for frames you won't need to access in your code but will be un-informative when using /fstack). Prefixing $parent to the widget(frame etc.) name, and passing the parent widget(frame etc.) to CreateFrame, prefixes the parent widget name to the child: Lua Code:
__________________
Fizzlemizz Maintainer of Discord Unit Frames and Discord Art. Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus. Last edited by Fizzlemizz : 01-24-17 at 12:12 AM. |
|
WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » button("OnClick") & PLAYER_ENTERING_WORLD |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Linear Mode |
Switch to Hybrid Mode |
Switch to Threaded Mode |
|
|