• 0

    posted a message on change bliz statusbar texture
    I found and hooked these functions:
    UnitFrameHealthBar_Update
    UnitFrameHealthBar_OnValueChanged

    if I hook a new function to change texture on these functions how much impact will it have on performance?
    Posted in: Lua Code Discussion
  • 0

    posted a message on change bliz statusbar texture
    Hi, im makeing an addon that will change the statusbar texture on blizz standard statusbars.

    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?
    Anyone know?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Raidpullout1
    Hi, 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?

    I Found the function RaidPullout_GeneratePulloutFrame but I can't figure out how to use it..
    Posted in: Lua Code Discussion
  • 0

    posted a message on square player portrait
    Hey all, how can i change the player/target portraits from rounded to square? can i set the alpha file to my own square version?
    or do i have to create a new portrait?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Guild member alert
    thanks a lot !
    Posted in: Lua Code Discussion
  • 0

    posted a message on Guild member alert
    Quote 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! :(
    Posted in: Lua Code Discussion
  • 0

    posted a message on Guild member alert
    Hi 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.
    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?
    Posted in: Lua Code Discussion
  • 0

    posted a message on sendwho help
    So how do you do it then? if you dont want to use any libs?
    Posted in: Lua Code Discussion
  • 0

    posted a message on sendwho help
    what.. so all these chat mods add every single person who is talking to their friends list and then remove them?
    Posted in: Lua Code Discussion
  • 0

    posted a message on sendwho help
    how do i create a function that adds the level of the person talking next to their name in the chat?

    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:
    Posted in: Lua Code Discussion
  • 0

    posted a message on ace style event handler question
    Quote from Adirelle
    Ok, 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
    Posted in: Lua Code Discussion
  • 0

    posted a message on ace style event handler question
    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:
    Posted in: Lua Code Discussion
  • 0

    posted a message on ace style event handler question
    hello again, what if you have more events than 1?
    addon.UNIT_AURA = addon.PLAYER_TARGET_CHANGED
    addon.UNIT_AURA = addon.event2
    addon.UNIT_AURA = addon.event3

    you can't do this?
    Posted in: Lua Code Discussion
  • 0

    posted a message on need help with textures
    thx :D
    Posted in: Lua Code Discussion
  • 0

    posted a message on need help with textures
    why doesnt this work?

    local database = {
    color = ("1, 0, 0, 1"),
    }

    myTexture:SetVertexColor(database.color)

    ?:confused:
    Posted in: Lua Code Discussion
  • To post a comment, please or register a new account.