#104

Reimplementation of GHI items in action bars

    • Created on: Fri, Jan 20 (4 months ago)
    • Reported by: Pilus
    • Assigned to: -
    • Milestone: GHI Backlog
    • Bug detected in Version: -
    • Technical Difficulty: Medium
    • Status: Invalid
    • Priority: Normal (3)
    • Component: -
    • Permission type: Private
    • Type: Improvement
    • Depends on ticket(s): -
  • Followers
     
    Ico-users Aurorablade , Pilus 
     
    Attachments
    No attachments
    Associations
     
    No associations
    Activity
     
    User picture

          on Jan 20, 2012 @ 12:07pm UTC * By Aurorablade

    Suggestion: For those of us with non standard action bars (i use http://www.wowinterface.com/downloads/info9085-Dominos.html for right now)
    make kinda a floaty GHI made action bar thing, maybe with a limted set of buttons.
    User picture

          on Jan 20, 2012 @ 01:48pm UTC * By Pilus

    It could be a nice solution, but I have also considered if it was possible to make a solution that works with those bar addons. Currently we make our own GHI slots and place them on top of the slots of the action bar. Maybe we could do the same with the slots on the other AddOns actionbars.
    User picture

          on Jan 25, 2012 @ 08:57am UTC * By Pilus

    Status changed from New to Accepted
    User picture

          on Feb 18, 2012 @ 04:16pm UTC * By Aurorablade

    okay this was for skinning the bars for this but it gives insight into BT4 and dominos

    http://code.google.com/p/rothui/source/browse/trunk/rActionButtonStyler/core.lua?spec=svn806&r=806

    local dominos = IsAddOnLoaded("Dominos")
    local bartender4 = IsAddOnLoaded("Bartender4")

    --dominos styling
    if dominos then
    --print("Dominos found")
    for i = 1, 60 do
    styleActionButton(_G["DominosActionButton"..i])
    end
    end
    --bartender4 styling
    if bartender4 then
    --print("Bartender4 found")
    for i = 1, 120 do
    styleActionButton(_G["BT4Button"..i])
    end
    for i = 1, 10 do
    styleShapeShiftButton(_G["BT4StanceButton"..i])
    end
    end
    User picture

          on Mar 23, 2012 @ 08:02pm UTC * By Aurorablade

    Assigned to set to Aurorablade
    Okay gonna take a shot at this, how should i start it filewise?
    User picture

          on Mar 23, 2012 @ 08:18pm UTC * By Pilus

    Status changed from Accepted to In Progress
    I think the best way to start this is to write some plain code that demonstrates how we can hook into action bars dynamically. In other words start by analysing some different action bar addons and see if we can identify them in a dynamic way
    User picture

          on Mar 24, 2012 @ 12:56am UTC * By Aurorablade

    well two i know of is bartender and dominos

    for that its (based on another addon i found )

    local dominos = IsAddOnLoaded("Dominos")
    local bartender4 = IsAddOnLoaded("Bartender4")

    --dominos styling
    if dominos then
    --print("Dominos found")
    for i = 1, 60 do
    styleActionButton(_G["DominosActionButton"..i])
    --styleactionbutton replaced with GHI Stuff
    end
    end

    --bartender4 styling
    if bartender4 then
    --print("Bartender4 found")
    for i = 1, 120 do
    styleActionButton(_G["BT4Button"..i])
    --styleactionbutton replaced with GHI Stuff
    end
    for i = 1, 10 do
    styleShapeShiftButton(_G["BT4StanceButton"..i])
    --thats for stances and may not be needed, may need to look to see if there other popular actionbar mods around.
    end
    end
    User picture

          on Mar 25, 2012 @ 02:28pm UTC * By Aurorablade

    http://www.wowinterface.com/downloads/info17592-ButtonForge.html the last one is this one..

    could possibly use something from the above code but it can make alot of buttons and you can choose what buttons to make (so you can have something like just six)
    User picture

          on Mar 25, 2012 @ 03:20pm UTC * By Pilus

    An idea to how we can fetch all action buttons could be to look at all frames that are registered for "ACTIONBAR_UPDATE_COOLDOWN"
    User picture

          on Mar 25, 2012 @ 08:09pm UTC * By Aurorablade

    that could work, but how to go about it, i was playing with useing
    for k, v in pairs(WorldFrame:GetChildren()) do
    --if v:IsEventRegistered("ACTIONBAR_UPDATE_COOLDOWN") then

    print(k)
    print(v)
    --/frend
    end
    (before it was uiParent) but that didn't work so still looking.
    User picture

          on Mar 25, 2012 @ 08:27pm UTC * By Pilus

    You can use GetFramesRegisteredForEvent(event)

    Try to check what frames from the different action bar addons you can get from using this function.

    Btw. I used this method for the buff system as well. That is how it dynamically works on most unit frame addons
    User picture

          on Mar 25, 2012 @ 11:00pm UTC * By Aurorablade

    I knew i was not finding a function for it! GAH

    http://wowprogramming.com/docs/api/GetFramesRegisteredForEvent nifty function there, HOWEVER its not turning up dominos/buttforge in the results

    I think its how its in the addons code on how they show the buttons..
    User picture

          on Apr 07, 2012 @ 04:52pm UTC * By Pilus

    Assigned to changed from Aurorablade to -none-
    Milestone changed from GHI v.1.99.2 to GHI Backlog
    Status changed from In Progress to Accepted
    Sum of Child Work remaining changed from 0.0 to 4.0
    Work remaining changed from 0.0 to 4.0
    Future work of this ticket should focus on a dynamic way of identifying all action bar buttons in the game.

    Entered estimation for the time requires and send the ticket to the backlog.
    User picture

          on Apr 09, 2012 @ 03:19pm UTC * By Pilus

    Status changed from Accepted to Invalid
    Sum of Child Work remaining changed from 4.0 to 0.0
    Work remaining changed from 4.0 to 0.0
    Replaced by #151
    Time Expenditure
    Loading