• 0

    posted a message on Where are my points? What is BYPASS SPENDING LIMIT - NO???
    i would assume it's related to the updated Store they announced? http://wow.curseforge.com/announcements/new-store-launched/ I only found that because I was wondering the same thing :)
    Posted in: Need Help?
  • 0

    posted a message on Ace3 GUI - HighlightText()
    Hi All,

    I'm using Ace3 GUI and I would like the EditBox to focus and highlight ready for a client CTRL+C

    I have this but the HighlightText() function fails, is there a way to trigger this in Ace3?

    
        QSFrame = AceGUI:Create("Frame")
        QSFrame:SetTitle("Title Here")
        QSFrame:SetWidth(400)
        QSFrame:SetHeight(500)
        QSFrame:SetStatusText("CTRL+C and Paste into the site")
        QSFrame:SetLayout("Flow")
        QSFrame:SetCallback("OnClose",
          function(widget)
            -- saving the position and position point to the saved variable
            _, mod.db.global.relativeTo, mod.db.global.relativePoint, mod.db.global.posX, mod.db.global.posY = QSFrame.frame:GetPoint()
            QSShown = 0
          end
        )
        QSFrame.frame:SetPoint(mod.db.global.relativePoint, mod.db.global.relativeTo, mod.db.global.relativePoint, mod.db.global.posX, mod.db.global.posY)
        
        local name = AceGUI:Create("EditBox")
        name:SetText("String to copy")
        name:SetLabel("String")
        name:SetRelativeWidth(0.7)
        name:DisableButton(true)
        name:SetFocus()
        name:HighlightText()
        name:SetCallback("OnEnterPressed", function(widget, event, text)
          print("do nothing yet")
        end)
        QSFrame:AddChild(name)
    
    


    Thanks

    Upy
    Posted in: Need Help?
  • 0

    posted a message on Slug Rename - TomTom_RaidSpots
    Could I please have the slug for TomTom_RaidSpots changed to just RaidSpots
    Posted in: Project Discussion
  • 0

    posted a message on LFG_UPDATE_RANDOM_INFO problem
    Maybe something like the PARTY_MEMBERS_CHANGED event would suit more? This will fire everytime someone leaves/joins your group.
    Posted in: Need Help?
  • 0

    posted a message on Uptime
    the code for setting the debuff color looks ok to me, could you try doing a print of the value of "typ" to see what that's returning.

    You've not provided the code that is setting this variable but I was assume it's something there causing your issues

    Upy
    Posted in: Need Help?
  • 0

    posted a message on Hooking Functions
    lol very non-commital :P i've raised a ticket with them but from what others have told me "it's not there problem"
    Posted in: Need Help?
  • 0

    posted a message on Hooking Functions
    Found the issue. When I run the addon I'm getting epgp error:
    
    6x epgp-5.6.4\LibGuildStorage-1.2-0.lua:429: attempt to index field "db" (a nil value)
    epgp-5.6.4\LibGuildStorage-1.2-0.lua:429: in function <epgp\LibGuildStorage-1.2.lua:428>
    (tail call): ?
    FrameXML\UIParent.lua:475: in function "ToggleGuildFrame"
    recruitmentenhancement-r108\Core.lua:199: in function <recruitmentenhancement\Core.lua:192>
    (tail call): ?
    <in C code>
    <string>:"safecall Dispatcher[1]":9: in function <string>:"safecall Dispatcher[1]":5
    (tail call): ?
    Externals\Ace3-AceAddon\AceAddon-3.0-10.lua:543: in function "EnableAddon"
    Externals\Ace3-AceAddon\AceAddon-3.0-10.lua:635: in function <Externals\Ace3-AceAddon\AceAddon-3.0.lua:621>
    <in C code>
    FrameXML\UIParent.lua:259: in function "UIParentLoadAddOn"
    FrameXML\UIParent.lua:282: in function "CombatLog_LoadUI"
    FrameXML\UIParent.lua:558: in function <FrameXML\UIParent.lua:531>
    
    Locals:
    nil
    
    


    Which is breaking the rest of the hook so it ends up breaking my addon.

    Is there a way to force the function to reset to wow's default :|
    Posted in: Need Help?
  • 0

    posted a message on Hooking Functions
    when I comment out the rawhook in LibGuildStorage my addon works as expected :| I'll keep having a look, thanks for your help
    Posted in: Need Help?
  • 0

    posted a message on Hooking Functions
    Sorry work and RL got the better of me. I believe the problem is with my own hooks

          hooksecurefunc("GuildInfoFrame_Update",  RecruitmentTabClicked)
          hooksecurefunc("GuildFrame_TabClicked",  HideCorrespondenceFrame)
          hooksecurefunc("CloseGuildMenus",  HideCorrespondenceFrame)
          hooksecurefunc("HybridScrollFrame_Update",  ScrollingApplicantFrame)
    


    My understanding (could be wrong) was that rawhooks replaced the functions, so if the function they've replaced it with doesnt do the stuff I'm hooking into would that break mine?
    Posted in: Need Help?
  • 0

    posted a message on Hooking Functions
    I'm not, thats the hook from epgp that's stopping my addon from loading.
    Posted in: Need Help?
  • 0

    posted a message on Hooking Functions
    Hey All,

    I have my addon Recruitment Enhancement which is using Secure Hooks into some functions within the Guild Info Frame. I have had a few tickets logged lately with a conflict with the addon "epgp (dkp reloaded)".

    Looking into there code they are using a RawHook into the Guild Frame that appears to be preventing my own addon from triggering by hooks.

    This is there code, if I comment out this Hook my addon works again
    -- Disable updates when the guild roster is open.
    -- This is a temporary hack until we get a better location for data storage
    lib:RawHook("GuildFrame_LoadUI", function(...)
      SetGuildRosterShowOffline(EPGP.db.profile.blizzard_show_offline)
      lib.hooks.GuildFrame_LoadUI(...)
      lib:RawHookScript(GuildRosterFrame, "OnShow", function(frame, ...)
        GUILDFRAMEVISIBLE = true
        if GuildRosterShowOfflineButton then
          GuildRosterShowOfflineButton:SetChecked(EPGP.db.profile.blizzard_show_offline)
          GuildRosterShowOfflineButton:Enable()
        end
        SetGuildRosterShowOffline(EPGP.db.profile.blizzard_show_offline)
        lib.hooks[frame].OnShow(frame, ...)
      end)
      lib:RawHookScript(GuildRosterFrame, "OnHide", function(frame, ...)
        GUILDFRAMEVISIBLE = false
        EPGP.db.profile.blizzard_show_offline = GetGuildRosterShowOffline()
        lib.hooks[frame].OnHide(frame, ...)
        SetGuildRosterShowOffline(true)
      end)
      lib:Unhook("GuildFrame_LoadUI")
    
      SetGuildRosterShowOffline(true)
    end, true)
    


    I'm just wondering if the way this is being done is "the norm" and what I could do to ensure my addon works as well :/

    Thanks in advance

    Upy
    Posted in: Need Help?
  • 0

    posted a message on Ordering Ace3 GUI Dropdown
    Hey all,

    I'm trying to define the order of a Dropdown list with Ace3 GUI. Actually all I really want is for the list to be reversed but I cant see that option.

    The documentation says:
    SetList(table [, order]) - Set the list of values for the dropdown (key => value pairs). The order is a optional second table, that contains the order in which the entrys should be displayed (Array table with the data tables keys as values). Behaviour is undefined if you provide a order table that contains not the exact same keys as in the data table.


    I'm clearly doing something wrong because the list is empty in the addon now;

    Ace3GUI Lua
          raidPulldown,raidPulldownOrder = RaidHistoryGetRaidPulldown()
          local raids_dropdown = AceGUI:Create("Dropdown")
          raids_dropdown:SetWidth(250)
          raids_dropdown:SetList(raidPulldown,raidPulldownOrder)
          raids_dropdown:SetLabel("Select Raid to Browse")
          raids_dropdown:SetValue(RaidId)
          raids_dropdown:SetCallback("OnValueChanged", function()
            -- do stuff
          end)
          container:AddChild(raids_dropdown)
    


    The function
    function RaidHistoryGetRaidPulldown()
      raidPulldown = {}
      raidPulldownOrder = {}
      count = 0
      if(addon.db.global.raidHistory)then
        for k,v in pairsByKeys(addon.db.global.raidHistory , function(a,b) return b < a end) do
          raidPulldown[k] = v
          count = count+1
          raidPulldownOrder[k] = "ordered_" .. string.format("%04d", count) .. "_" .. v
        end
      end
      return raidPulldown, raidPulldownOrder
    end
    


    Any ideas?

    Upy
    Posted in: Ace3
  • 0

    posted a message on Reordering a Blizzard Frame
    Hey all,

    Hopefully you all can point me in the right direction. I'm wanting to reorder the Recruitment Frame, so I can define particular ways to order the applicants in the list (by level or name or my own status for example).

    I'm just wondering the best method of doing this and possibly an example or somewhere to look at some example code.

    Thanks

    Upy
    Posted in: Need Help?
  • 0

    posted a message on Online/Offline Guild Recruitment
    based on your tone I may regret this but: http://wow.curse.com/downloads/wow-addons/details/recruitmentenhancement.aspx

    Upy
    Posted in: Addon Ideas
  • 0

    posted a message on Localization and Functions Question
    Yup that did the trick :D /rockon :P
    Posted in: Need Help?
  • To post a comment, please or register a new account.