Ah, got it to work. For some reason I couldn't set these things in my LUA files, as it said the value of AzDKPForm was nil. Guess i'm doing it wrong somewhere.
Added the scripts right into the XML instead, and that works nicely :)
- Registered User
Member for 13 years and 2 days
Last active Fri, Oct, 4 2013 14:30:17
- 0 Followers
- 6 Total Posts
- 0 Thanks
Oct 29, 2009I thought events could only be recorded by a frame when it was visible? Or is that only valid for the OnUpdate event?Posted in: Need Help?
In any case, will try that out when I get home this afternoon, thanks for the help man :)
(And yeah, what I posted had allot of typos and stuff, not quite sure how that happened when I copy-pasted in here. It didn't have that in my real code.)
Oct 28, 2009Alright, the code I tried using was the following:Posted in: Need Help?
local frame = CreateFrame("AzDKP_Frame") AzDKP_Frame:SetSecript("OnEvent", function() if GetNumRaidMembers() > 0 and AzDKPForm:IsShown() then AzDKPForm:Hide(); elseif not AzDKPForm:IsShown() then AzDKPForm:Show(); end end) AzDKP_Frame:RegisterEvent("RAID_ROSTER_UPDATE")
This code looks alright to me, but unfortunally it doesn't seem to do anything. Also doesn't spit any errors.
I have also uploaded my code here on Curseforge, if you want to have a look at all of it, however there I don't have this code included:
Oct 28, 2009Hey guys!Posted in: Need Help?
I'm almost done with my first addon, but there's one small thing i'm missing.
I have one frame (made in XML) and one LUA file.
The frame is called AzDKPForm.
Basicly, I want this frame to always be hidden outside of raids, and always shown in raids. I've Understood that I have to use the RAID_ROOSTER_UPDATE event to check this, and also GetNumRaidMembers(), but I just can't get it to work.
Anyone got some kind of standarized code for this?
May 4, 2008Thank you for finally using a good keybinding interface! Love keybound!Posted in: General AddOns
It's the only thing that have kept me away from Bartender3, Bongos was just so much easier to keybind.
Now though, i'm all bartender :D
Oct 17, 2007_ForgeUser343357 posted a message on WoW UI Updater (Windows/Linux/Mac) - supports multiple sitesWell, what can I say, superb software! I've been running mostly 6 month old addons becouse i'm too lazy to update (I have ALLOT of addons), but this solved all my problems :) Had a few problems with addons it couldn't update, as the addons have changed names and form. That's to be expected though I suppose, I doubt the software was made to support such old addons in the first place :) Will work from now on though!Posted in: Updaters
Also, couldn't get linux version to run. Most likely it's me messing up the compiling (yeah, I suck), so I used windows version with Wine instead. Worked flawless.
Thank you for this truly great piece of software!
- To post a comment, please login or register a new account.