I found and hooked these functions:
if I hook a new function to change texture on these functions how much impact will it have on performance?
- Registered User
Member for 10 years, 10 months, and 27 days
Last active Fri, Oct, 4 2013 14:34:35
- 0 Followers
- 47 Total Posts
- 0 Thanks
Oct 27, 2010Hi, im makeing an addon that will change the statusbar texture on blizz standard statusbars.Posted in: Lua Code Discussion
PlayerFrameHealthBar:SetStatusBarTexture("Interface\\Addons\\myaddon\\newbar") PlayerFrameManaBar:SetStatusBarTexture("Interface\\Addons\\myaddon\\newbar") TargetFrameHealthBar:SetStatusBarTexture("Interface\\Addons\\myaddon\\newbar") TargetFrameManaBar:SetStatusBarTexture("Interface\\Addons\\myaddon\\newbar")
after writing these I realized there are a lot more bars (party bars, focus bars etc), so I start wondering.. maybe you can hooksecurefunc some statusbar creation function to make this easier?
Jun 9, 2010Hi, does anyone know if its possible to create this frame (RaidPullout1) by using some function and calling it from your own addon instead of manually dragging the frame from the raid interface?Posted in: Lua Code Discussion
I Found the function RaidPullout_GeneratePulloutFrame but I can't figure out how to use it..
Jan 21, 2010Posted in: Lua Code DiscussionQuote from Phanx
Perhaps a better solution, if you just want to stop the sound from playing, would be to overwrite the default sound with a blank file in the appropriate location, and then include a copy of the default sound file in a small addon to detect logon messages for friends and play the sound.
Thank you this is a good suggestion. I was working on this but got stuck again :p now i can't seem to both filter out the name from the string and match the rest of the msg.
local msg = "[Joe] has come online." local _,_, name = string.find(msg, "(%a)has come online") if name then -- do stuff here end
so what i want is to match "has come online" and get the name out so i can compare it to my friendslist.. but pattern matching is a freaking nightmare! :(
Jan 18, 2010Hi I use the Guild Member Alert option (Show a message when your guild members login and logout) but I would like to remove the sound it makes when a guildmember logs in.Posted in: Lua Code Discussion
Its the same sound you get when a friend log in and i'm in a large guild so its a bit annoying to get all the "friend login sound" all the time.
so I'm wondering where can I find this specific function that sends this sound and modify it?
Jan 8, 2010how do i create a function that adds the level of the person talking next to their name in the chat?Posted in: Lua Code Discussion
my idea was to use SendWho() and then get the info from GetWhoInfo(1) but the problem is it takes a few seconds for SendWho() to return any info... then I read about WHO_LIST_UPDATE and that i should prob wait for it to fire before requesting GetWhoInfo
anyway, my question is how do you put this thing together without creating a long delay between requesting whoinfo and actually dispalying the (modified) message??
I tried looking at other chat addons but i just cant understand it :confused:
Dec 2, 2009Posted in: Lua Code DiscussionQuote from AdirelleOk, I thing you put things upside down.
function addon:UNIT_AURA(...) -- do stuff end addon.PLAYER_TARGET_CHANGED = addon.UNIT_AURA addon.event2 = addon.UNIT_AURA addon.event3 = addon.UNIT_AURA
All four events will be handled by the same code (UNIT_AURA).
Or am I wrong ?
Yes that's it :D thank you very much
Dec 2, 2009Posted in: Lua Code Discussion
function addon:UNIT_AURA(...) self:PLAYER_TARGET_CHANGED(...) self:event2(...) self:event3(...) end
this doenst work :( it tries to call function self:PLAYER_TARGET_CHANGED which result in some nil error :confused:
- To post a comment, please login or register a new account.