CurseForge and Overwolf are joining forces!
Awesome More Information
  • 0

    posted a message on Bartender4 - Official Topic
    Actionbar.lua

    I added a snippet of code to change the font used on the buttons:

    buttons[i].count:SetFont("Fonts\\pf_arma_five.ttf", 8, "OUTLINE")
    buttons[i].hotkey:SetFont("Fonts\\pf_arma_five.ttf", 8, "OUTLINE")
    --buttons[i].macroName:SetFont("Fonts\\pf_arma_five.ttf", 8, "OUTLINE")
    


    First two lines work fine. Third line throws an error. So, "macroName" is not correct. I tried "macro" and "macrotext." Neither worked.

    Any ideas? Thx
    Posted in: General AddOns
  • 0

    posted a message on Masque - Official Thread
    No longer able to modify action bar fonts with Masque?

    If this is true, is this an addon limitation or a Blizzard limitation? Alternatives?
    Posted in: General AddOns
  • 0

    posted a message on Bartender Bar Toggler
    That did the trick. Thanks much!
    Posted in: Lua Code Discussion
  • 0

    posted a message on Bartender Bar Toggler
    Getting there:

    -- CTRL F#
    
    local button = CreateFrame("Button","MacroTest",nil,"SecureActionButtonTemplate")
    
    button:SetAttribute("type1","macro")
    button:SetAttribute("macrotext1","/bartender")
    SetOverrideBindingClick(MacroTest, false, "CTRL-F2", "MacroTest", "LeftButton")
    
    button:SetAttribute("type2","macro")
    button:SetAttribute("macrotext2","/dbm")
    SetOverrideBindingClick(MacroTest, false, "CTRL-F3", "MacroTest", "RightButton")
    
    button:SetAttribute("type3","macro")
    button:SetAttribute("macrotext3","/kgpanels config")
    SetOverrideBindingClick(MacroTest, false, "CTRL-F4", "MacroTest", "Button3")
    
    button:SetAttribute("type4","macro")
    button:SetAttribute("macrotext4","/macro")
    SetOverrideBindingClick(MacroTest, false, "CTRL-F5", "MacroTest", "Button4")


    But this one isn't working:

    button:SetAttribute("type3","macro")
    button:SetAttribute("macrotext3","/kgpanels config")
    SetOverrideBindingClick(MacroTest, false, "CTRL-F4", "MacroTest", "Button3")


    Doesn't make sense because everything is exactly the same. I even tried "/dbm" instead of "/kgpanels config" just in case it was something weird with the space in there...
    Posted in: Lua Code Discussion
  • 0

    posted a message on Bartender Bar Toggler
    Perfect, thanks.

    I had copied that from a forum post and it was confusing me to no end.

    Now I'm able to set up multiple global binds for all my characters with this so I don't have to set up the same ones for every alt or new creation.

    Thanks again.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Bartender Bar Toggler
    I have created a very simple script to toggle the visibility of a number of my bartender bars.

    local function toggler_set_one()
    	if (BT4Bar10:IsVisible()) then
    		BT4Bar10:Hide()
    		BT4Bar9:Hide()
    		BT4Bar8:Hide()
    		BT4Bar7:Hide()
    		BT4Bar6:Hide()
    		BT4Bar5:Hide()
    	else
    		BT4Bar10:Show()
    		BT4Bar9:Show()
    		BT4Bar8:Show()
    		BT4Bar7:Show()
    		BT4Bar6:Show()
    		BT4Bar5:Show()
    	end
    end
    
    SlashCmdList["TOGGLE_SET_ONE_"] = toggler_set_one;
    SLASH_TOGGLE_SET_ONE_1 = '/tone';


    From within this script, can I then bind this to a keypress? Say F12?

    I have tried different variations of this:

    local button = CreateFrame("Button","MacroTest",nil,"SecureActionButtonTemplate")
    button:SetAttribute("type","macro")
    button:SetAttribute("macrotext","/tone")
    SetBindingClick("F12","CLICK MacroTest")


    ...but have not gotten anything to work.

    Any suggestions or tutorials someone can point me to?

    Thanks.
    Posted in: Lua Code Discussion
  • 0

    posted a message on clcInfo Frame Names?
    I'm using clcInfo with CLCProtWarrior.

    I'm also using kgPanels and some bits of LUA to position certain UI elements.

    The problem I've run into with these two clc addons is that /framestack is not showing the frame names for the element. When I hover this is what I see: "table: 000000005D53E510"

    Here is what I do for my pally prot clc:

    if clcprotFrame then
        clcprotFrame:SetPoint('BOTTOMLEFT', GBPB, 'TOPLEFT', 52, 56)
    end


    Well, without a proper frame name for the warrior prot clc, I cannot set this up. Any help?

    Thanks!
    Posted in: Need Help?
  • 0

    posted a message on kgPanels Offical Thread
    I have a frame that I use to position my unit frames. This code is in onUpdate:

    local GBPB = kgPanels:FetchFrame("G_BotPB")
    
    if PitBull4_Frames_player then
    	PitBull4_Frames_player:SetPoint('TOPLEFT', GBPB, 'TOPLEFT', 3, -42)
    end
    
    if PitBull4_Frames_focus then
    	PitBull4_Frames_focus:SetPoint('TOPRIGHT', GBPB, 'TOPRIGHT', -3, -42)
    end	
    
    if PitBull4_Frames_target then
    	PitBull4_Frames_target:SetPoint('TOP', GBPB, 'TOP', 0, -3)
    end
    
    if PitBull4_Frames_pet then
    	PitBull4_Frames_pet:SetPoint('BOTTOMRIGHT', GBPB, 'TOPLEFT', -125, 10)
    end
    
    if PitBull4_Frames_pettarget then
    	PitBull4_Frames_pettarget:SetPoint('BOTTOMRIGHT', GBPB, 'TOPLEFT', -125, 65)
    end
    
    if PitBull4_Groups_Party then
    	PitBull4_Groups_Party:SetPoint('BOTTOMLEFT', GBPB, 'TOPRIGHT', 16, 16)
    end
    
    if clcprotFrame then
        clcprotFrame:SetPoint('BOTTOMLEFT', GBPB, 'TOPLEFT', 52, 56)
    end
    


    I'm curious if anyone knows of a better way to do this? Or if I'm missing something essential.

    My goal is to have these elements positioned relatively from a central location rather than use their own settings. This way if my resolution changes, their position is still okay and I'm also able to edit all of their positions from one simple config area rather than each individual addon.

    I also use similar scripts for my ChatFrame(s), bartender bars, and skada.

    Thanks
    Posted in: General AddOns
  • To post a comment, please or register a new account.