• 0

    posted a message on kgPanels Offical Thread
    Quote from Kagaro »


    PitBull and other dynamic frame generators use a lot of frame recycling/creation this was also an issue in eePanels2. Im addin a check so if your parent has been sized yet and your using percentages to not reparent till the parent has been given a size. The core of this issue is using percentages for size and when those frames are created they have NO size for a little bit.


    Thanks Kagaro :)

    I can parent to player, target, tot successfully now. I still have problem with the party frames as it used to be in eePanels. I am pretty sure it could be done with the scripts to check if the frame exists but I am at loss how to do that.
    On load I have those events:

    self:RegisterEvent("PLAYER_ENTERING_WORLD")
    self:RegisterEvent("PARTY_MEMBERS_CHANGED")
    self:RegisterEvent("RAID_ROSTER_UPDATE")


    and then On Event I have a working script to change border colors.

    local pmems = GetNumPartyMembers()
    local rmems = GetNumRaidMembers()
    -- 
    if (pmems < 1 and rmems < 1) or (pmems > 0 and pmems < 6 and rmems > 6) then
       self:Hide()
    else
       self:Show()
    end
    --
    local _, class = UnitClass("party1");
    
    if class == "WARRIOR" then
        self:SetBackdropBorderColor(0.76,0.51,0.44,0.37) 
      elseif class == "PRIEST" then
        self:SetBackdropBorderColor(1,1,1,0.37)
      elseif class == "DRUID" then
        self:SetBackdropBorderColor(1,0.71,0.43,0.37) 
      elseif class == "HUNTER" then
        self:SetBackdropBorderColor(0.70, 0.95,0.68,0.37) 
      elseif class == "MAGE" then
        self:SetBackdropBorderColor(0.69,0.80,0.93,0.37)   
      elseif class == "PALADIN" then
        self:SetBackdropBorderColor(0.97,0.69,0.81,0.37)  
      elseif class == "SHAMAN" then
        self:SetBackdropBorderColor(0.56,0.67,1,0.37)   
      elseif class == "WARLOCK" then
        self:SetBackdropBorderColor(0.74,0.61,0.97,0.37)    
      elseif class == "ROGUE" then
        self:SetBackdropBorderColor(1,0.91,0.62,0.37)    
    end





    How and where do I 'insert' a check to see if there is a frame to am trying to parent the panel to?

    Thanks in advance.

    Posted in: General AddOns
  • 0

    posted a message on kgPanels Offical Thread
    Quote from Nantuko »

    I downloaded KgPanels from wowace, and I have no config with it. Typing "/KgPanels Config" just gives me the message "KgPanels: MISSING." I have every mod turned on in my folder, KgPanels is enabled. So I don't know if there is a seperate addon for the config menu, but the newest version of Kg does not have a config on it that I can see.


    I notices that aslo. You have to force kgpanels_config to load bc its disabled when you you first log in or /rl.

    I am have the same issue at the poster:

    Quote from Kazie »

    The problem has occured several times today now..

    The thing is that, when i parrent a panel to certain frames the panel simply fills the whole screen or it's VERY much smaller than supposed to be.

    So far it happens when i parrent, Bartender/pitbull/fuber frames and other KgPanels.


    This is what it looks like:




    Once I click enter in the parent window panel dimensions are set correctly again. It seems to me as if the pitbull frame is loaded after the panel?

    EDIT -- the same is true for the position of the panel. the anchor is also not set untill something is modified.
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Offical Thread
    Heya

    I am not sure how to translate this script:

    eePanels2.db.profile.panels[18].background.frame:SetGradientAlpha("VERTICAL", 0.33, 0.31, 0.35, 1, 0.04, 0.03, 0.04, 0.08);


    Any help would be appreciated.
    Posted in: General AddOns
  • 0

    posted a message on eePanels2 - Official Thread
    Quote from JoeyBoots »

    Thank you Oakayam for helping me.
    My Ui is a version of Caith's popular Ui.
    I Have 3 panels[left chat/right chat/and bar 1 ] each made up of 4 panels grouped.
    do i copy and put this same script in each panel? [there are 12 total]
    i'm not sure how or what # to put in redvalue , bluevalue etc...
    all i'm going for is no color change out of combat and then a red tint in combat

    for arguments sake say i start w/ panel 19 - panel 22[they are grouped] and i want it a red tint in combat and the original color out of combat.
    what EXACTLY might that look like? [i know nothing about what # to put in for the color values]
    Thank you for your helping. :)


    Well I'm not that good with scripts myself but i would put all 12 panels in one script attached to ONE single panel. I know in some cases it matters to which panel script its attached but I dont understand the mechanics of it so I'd pick the one of the bar 1 panels for starters. As far as it goes for color values... Install EnhancedColorPicker addon ( available at http://files.wowace.com/). Then when you click to change color ( like background color, background gradient color, etc in eePanels ) you will see the little window with color wheel and boxes with r g b a values your wondering about. Only thing to remember the alpha value its actually 1- <whatever number is in the color picker box>.

    So.. click go to background color and background gradient color and make a note of those values as they are. Use those for out of combat values in the script. Then play around with color picker to find your perfect red tint and use those values for in combat part of the script.
    Posted in: General AddOns
  • 0

    posted a message on eePanels2 - Official Thread
    Quote from Seerah »

    Take a look at this post in the PitBull Layouts thread.
    http://www.wowace.com/forums/index.php?topic=6878.msg171165#msg171165


    Its one of the sources I looked at when I wrote the script. I can't figure out how to do it in one script but I found a workaround with additional panel and another script.
    Posted in: General AddOns
  • 0

    posted a message on eePanels2 - Official Thread
    Its kinda big...

    function eePanels2:PLAYER_REGEN_ENABLED()
    
        eePanels2.db.profile.panels[4].background.frame:SetGradientAlpha("VERTICAL", 0.12, 0.17, 0.24, 1.00, 0.00, 0.00, 0.00, 0.13);
        eePanels2.db.profile.panels[9].background.frame:SetGradientAlpha("VERTICAL", 0.12, 0.17, 0.24, 1.00, 0.00, 0.00, 0.00, 0.13)
        eePanels2.db.profile.panels[12].background.frame:SetGradientAlpha("VERTICAL", 0.73, 0.81, 0.84, 0.08, 0.05, 0.05, 0.05, 0.47);
        eePanels2.db.profile.panels[13].background.frame:SetGradientAlpha("VERTICAL", 0.73, 0.81, 0.84, 0.08, 0.05, 0.05, 0.05, 0.47)
      end
    
    function eePanels2:PLAYER_REGEN_DISABLED()
    
        eePanels2.db.profile.panels[4].background.frame:SetGradientAlpha("VERTICAL", 0.12, 0.17, 0.24, 1.00, 0.00, 0.00, 0.00, 0.55);
        eePanels2.db.profile.panels[9].background.frame:SetGradientAlpha("VERTICAL", 0.12, 0.17, 0.24, 1.00, 0.00, 0.00, 0.00, 0.55)
        local _, class = UnitClass("target");
          if class == "WARRIOR" then
            eePanels2.db.profile.panels[13].background.frame:SetGradientAlpha("VERTICAL", 0.05, 0.05, 0.05, 0.47, 0.79, 0.67, 0.59, 1.00)
          elseif class == "PRIEST" then
            eePanels2.db.profile.panels[13].background.frame:SetGradientAlpha("VERTICAL", 0.05, 0.05, 0.05, 0.47, 1.00, 1.00, 1.00, 1.00)
          elseif class == "DRUID" then 
            eePanels2.db.profile.panels[13].background.frame:SetGradientAlpha("VERTICAL", 0.05, 0.05, 0.05, 0.47, 0.95, 0.73, 0.56, 1.00)
          elseif class == "HUNTER" then 
            eePanels2.db.profile.panels[13].background.frame:SetGradientAlpha("VERTICAL", 0.05, 0.05, 0.05, 0.47, 0.75, 0.92, 0.73, 1.00)
          elseif class == "MAGE" then
            eePanels2.db.profile.panels[13].background.frame:SetGradientAlpha("VERTICAL", 0.05, 0.05, 0.05, 0.47, 0.69, 0.86, 0.96, 1.00)
          elseif class == "PALADIN" then
            eePanels2.db.profile.panels[13].background.frame:SetGradientAlpha("VERTICAL", 0.05, 0.05, 0.05, 0.47, 0.99, 0.81, 0.89, 1.00)
          elseif class == "SHAMAN" then
            eePanels2.db.profile.panels[13].background.frame:SetGradientAlpha("VERTICAL", 0.05, 0.05, 0.05, 0.47, 0.64, 0.73, 1.00, 1.00)
          elseif class == "WARLOCK" then
            eePanels2.db.profile.panels[13].background.frame:SetGradientAlpha("VERTICAL", 0.05, 0.05, 0.05, 0.47, 0.68, 0.59, 0.97, 1.00)
          elseif class == "ROGUE" then
            eePanels2.db.profile.panels[13].background.frame:SetGradientAlpha("VERTICAL", 0.05, 0.05, 0.05, 0.47, 1.00, 0.92, 0.62, 1.00)
          end
          
          local _, class = UnitClass("player");
          if class == "WARRIOR" then
            eePanels2.db.profile.panels[12].background.frame:SetGradientAlpha("VERTICAL", 0.05, 0.05, 0.05, 0.47, 0.79, 0.67, 0.59, 1.00)      
          elseif class == "PRIEST" then
            eePanels2.db.profile.panels[12].background.frame:SetGradientAlpha("VERTICAL", 0.05, 0.05, 0.05, 0.47, 1.00, 1.00, 1.00, 1.00)
          elseif class == "DRUID" then
            eePanels2.db.profile.panels[12].background.frame:SetGradientAlpha("VERTICAL", 0.05, 0.05, 0.05, 0.47, 0.95, 0.73, 0.56, 1.00)
          elseif class == "HUNTER" then
            eePanels2.db.profile.panels[12].background.frame:SetGradientAlpha("VERTICAL", 0.05, 0.05, 0.05, 0.47, 0.75, 0.92, 0.73, 1.00)
          elseif class == "MAGE" then
            eePanels2.db.profile.panels[12].background.frame:SetGradientAlpha("VERTICAL", 0.05, 0.05, 0.05, 0.47, 0.69, 0.86, 0.96, 1.00)
          elseif class == "PALADIN" then
            eePanels2.db.profile.panels[12].background.frame:SetGradientAlpha("VERTICAL", 0.05, 0.05, 0.05, 0.47, 0.99, 0.81, 0.89, 1.00) 
          elseif class == "SHAMAN" then
            eePanels2.db.profile.panels[12].background.frame:SetGradientAlpha("VERTICAL", 0.05, 0.05, 0.05, 0.47, 0.64, 0.73, 1.00, 1.00)
          elseif class == "WARLOCK" then
            eePanels2.db.profile.panels[12].background.frame:SetGradientAlpha("VERTICAL", 0.05, 0.05, 0.05, 0.47, 0.68, 0.59, 0.97, 1.00)
          elseif class == "ROGUE" then
            eePanels2.db.profile.panels[12].background.frame:SetGradientAlpha("VERTICAL", 0.05, 0.05, 0.05, 0.47, 1.00, 0.92, 0.62, 1.00)   
          end  
      end  
        
    eePanels2:RegisterEvent("PLAYER_REGEN_DISABLED")
    eePanels2:RegisterEvent("PLAYER_REGEN_ENABLED")


    If I add
    eePanels2:RegisterEvent("PLAYER_TARGET_CHANGED")

    to the very bottom I get this error:

    [2008/03/13 13:24:40-1107-x1]: <string>:"function eePanels2:PLAYER_REGEN_ENABLED()...":58: AceEvent-2.0: Cannot register event "PLAYER_TARGET_CHANGED" to method "PLAYER_TARGET_CHANGED", it does not exist
    Ace2\AceLibrary\AceLibrary.lua:122: in function `error'
    AceEvent-2.0-63812 (Ace2):122: in function `RegisterEvent'
    <string>:"function eePanels2:PLAYER_REGEN_ENABLED()...":58: in main chunk
    <in C code>: in function `RunScript'
    eePanels2-2.0\core.lua:2084: in function `ChangeScript'
    eePanels2-2.0\scriptEditor.lua:27: in function `SavePanelScript'
    eePanels2-2.0\scriptEditor.lua:162: in function <Interface\AddOns\eePanels2\scriptEditor.lua:162>


    Posted in: General AddOns
  • 0

    posted a message on eePanels2 - Official Thread
    Quote from Seerah »

    You would need to register for the event PLAYER_TARGET_CHANGED.


    Tried that/ It gives an error that function eePanels2:PLAYER_TARGET_CHANGED() doesn't exist.

    Thats what i am asking. How to combine function eePanels2:PLAYER_REGEN_DISABLED() with the function eePanels2:PLAYER_TARGET_CHANGED() in one script. All examples show only one function being hooked to one or more events. I guess you cannot hook event PLAYER_TARGET_CHANGED() to the function eePanels2:PLAYER_REGEN_DISABLED().
    Posted in: General AddOns
  • 0

    posted a message on eePanels2 - Official Thread
    I also have another question of my own. I have a working script that changes background color based on class of my target upon entering entering combat. I'd like to know if there is a way to make it update the color upon changing targets while in combat. I'm not sure what the term here would be.. I'd like to have function ( upon changing targets ) within a function ( upon entering combat ). Can I achieve that in one script and what would it look like?

    I appreciate your help.
    Posted in: General AddOns
  • 0

    posted a message on eePanels2 - Official Thread
    Quote from JoeyBoots »

    I'm new to eepanels2 and was hoping someone could tell if its possible to have my panels, which are gray by default turn either red or a tint of red when in combat.

    if it requires a script could you tell me how? i'm not good w/ scripts code etc..
    Thanks for helping me.


    Yes this requires script.

    Try:

    function eePanels2:PLAYER_REGEN_ENABLED() --[[ out of comabt ]]--
    eePanels2.db.profile.panels[PANELNUMBERHERE].background.frame:SetGradientAlpha("ALIGNMENT", redValue, greenValue, blueValue, alphaValue, gradientRedValue, gradientGreenValue, gradientBlueValue, gradientAlphaValue)
    end
    function eePanels2:PLAYER_REGEN_DISABLED()--[[ in combat]]--
    eePanels2.db.profile.panels[PANELNUMBERHERE].background.frame:SetGradientAlpha("ALIGNMENT", redValue, greenValue, blueValue, alphaValue, gradientRedValue, gradientGreenValue, gradientBlueValue, gradientAlphaValue)
    end
    eePanels2:RegisterEvent("PLAYER_REGEN_DISABLED")
    eePanels2:RegisterEvent("PLAYER_REGEN_ENABLED")


    Where ALIGNMENT is the direction of the gradient (VERTICAL or HORIZONTAL). All values are a range of 0-1. If you wish to have the background be a solid color, set the gradient color values the same as the background color values, and the gradient alpha to 1 (100%).
    --- From eePanels2 Script Wiki

    Check out Wiki for script reference in the future ( before Seerah has my head ;) )

    Also.. hook all your panels that you want to change color on entering combat in one script ( put ; between the statements where you refer to each panel ). I don't understand why but it seems to work that way.
    Posted in: General AddOns
  • 0

    posted a message on eePanels2 - Official Thread
    Quote from Seerah »

    ... I'm curious about this - why do you need it to resize with your FuBar? How often do you change the size of your FuBar?


    Lol I wondered when someone was going to ask me that - after all Fubar is usually pretty static part of interface. I have mini Fubars floating around on the screen. Normally I don't change their length but it accrued to me that they might overflow sometimes and I wanted to be able to adjust their size and background without going into eePanels options. Why the obsession? I am tweaking this compilation for someone else and that person is not interested in messing with addons so I wanted to make it so that they don't have to.
    Posted in: General AddOns
  • 0

    posted a message on eePanels2 - Official Thread
    Quote from Seerah »

    That's most likely from load order. Add FuBar to the list of Optional Dependencies in your eePanels TOC file. Note: you'll have to fully exit the game for it to take effect.


    Thanks Seerah, FuBar is already listed there. Now another strange thing is I have resizing script hooked to other frames and working fine. I just cant get it to work for FuBar :(.
    Posted in: General AddOns
  • 0

    posted a message on eePanels2 - Official Thread
    Thank you no more errors ^^.

    Script works before reloading but not after unless i go into script and press enter again. I guess eePanels is not seeing it until i manually tell it to run again :(.
    Posted in: General AddOns
  • 0

    posted a message on eePanels2 - Official Thread
    Tried that. Its says :
    [2008/03/10 08:32:02-1065-x3]: <string>:"if FuBarFrame2 then...":9: ')' expected (to close '(' at line 3) near 'end'
    eePanels2-2.0\core.lua:2084: in function `ChangeScript'
    eePanels2-2.0\scriptEditor.lua:27: in function `SavePanelScript'
    eePanels2-2.0\scriptEditor.lua:162: in function <Interface\AddOns\eePanels2\scriptEditor.lua:162>

    The only place i can think of to close is:

    FuBarFrame2:SetScript("OnSizeChanged", function(frame, ...))

    and when i do it says:

    [2008/03/10 08:32:27-1065-x1]: <string>:"if FuBarFrame2 then...":3: unexpected symbol near ')'
    eePanels2-2.0\core.lua:2084: in function `ChangeScript'
    eePanels2-2.0\scriptEditor.lua:27: in function `SavePanelScript'
    eePanels2-2.0\scriptEditor.lua:162: in function <Interface\AddOns\eePanels2\scriptEditor.lua:162>


    What i am doing wrong? I appreciate your help.
    Posted in: General AddOns
  • 0

    posted a message on eePanels2 - Official Thread
    Quote from Kagaro »

    use AceHook-2.0 not AceAddon


    It seems AceHook-2.0 is history now ( cant find it anywhere ). I used AceHook-2.1 and got following error:

    [2008/03/10 01:03:48-1059-x1]: <string>:"-- Put your script here...":10: AceHook-2.1: Bad argument #2 to `HookScript' (table expected, got nil)
    Ace2\AceLibrary\AceLibrary.lua:122: in function <Interface\AddOns\Ace2\AceLibrary\AceLibrary.lua:75>
    (tail call): ?:
    AceHook-2.1-40869 (Ace2):437: in function `HookScript'
    <string>:"-- Put your script here...":10: in main chunk
    <in C code>: in function `RunScript'
    eePanels2-2.0\core.lua:2084: in function `ChangeScript'
    eePanels2-2.0\core.lua:561: in function `CreatePanel'
    eePanels2-2.0\core.lua:412: in function `InitPanels'
    eePanels2-2.0\core.lua:385: in function <Interface\AddOns\eePanels2\core.lua:384>
    <in C code>: in function `pcall'
    AceAddon-2.0-57245 (Ace2):24: in function <Interface\AddOns\Ace2\AceAddon-2.0\AceAddon-2.0.lua:23>
    AceAddon-2.0-57245 (Ace2):998: in function `ManualEnable'
    AceAddon-2.0-57245 (Ace2):926: in function <Interface\AddOns\Ace2\AceAddon-2.0\AceAddon-2.0.lua:919>
    <in C code>: ?
    AceEvent-2.0-63812 (Ace2):260: in function `TriggerEvent'
    AceEvent-2.0-63812 (Ace2):917: in function <Interface\AddOns\Ace2\AceEvent-2.0\AceEvent-2.0.lua:910>
    
     ---


    Then i used AceHook-3.0 and strange thing happened. I removed the panel 1st and /rl then recreated and attached the script. My 1st error said that i am attempting to rehook already active hook OnSizeChanged. Though the panel did resize as intended. After /rl i got this error and panel no longer resized:

    [2008/03/10 00:58:09-1058-x1]: AceHook-3.0\AceHook-3.0.lua:128: attempt to index local 'obj' (a nil value)
    AceHook-3.0\AceHook-3.0.lua:271: in function `HookScript'
    <string>:"-- Put your script here...":10: in main chunk
    <in C code>: in function `RunScript'
    eePanels2-2.0\core.lua:2084: in function `ChangeScript'
    eePanels2-2.0\core.lua:561: in function `CreatePanel'
    eePanels2-2.0\core.lua:412: in function `InitPanels'
    eePanels2-2.0\core.lua:385: in function <Interface\AddOns\eePanels2\core.lua:384>
    <in C code>: in function `pcall'
    AceAddon-2.0-57245 (Ace2):24: in function <Interface\AddOns\Ace2\AceAddon-2.0\AceAddon-2.0.lua:23>
    AceAddon-2.0-57245 (Ace2):998: in function `ManualEnable'
    AceAddon-2.0-57245 (Ace2):926: in function <Interface\AddOns\Ace2\AceAddon-2.0\AceAddon-2.0.lua:919>
    <in C code>: ?
    AceEvent-2.0-63812 (Ace2):260: in function `TriggerEvent'
    AceEvent-2.0-63812 (Ace2):917: in function <Interface\AddOns\Ace2\AceEvent-2.0\AceEvent-2.0.lua:910>
    
     ---


    Is my saved variables for eePanels corrupted? do i need to delete it :(?
    Posted in: General AddOns
  • 0

    posted a message on eePanels2 - Official Thread
    Heya guys

    I took couple scripts from Wiki and they used to work fine. It seems there was some lib change and i keep getting errors.

    eePanel15_Hook = AceLibrary("AceAddon-2.0")
    
    function eePanel15_Hook:OnSizeChanged(frame, ...)
      eePanel15:SetWidth(frame:GetWidth())
      eePanel15:SetHeight(frame:GetHeight())
    end
    
    eePanel15_Hook:HookScript(FuBarFrame2, "OnSizeChanged")


    errors:
    [2008/03/09 13:30:59-1043-x2]: <string>:"...":9: attempt to call method 'HookScript' (a nil value)
    <in C code>: in function `RunScript'
    eePanels2-2.0\core.lua:2084: in function `ChangeScript'
    eePanels2-2.0\core.lua:561: in function `CreatePanel'
    eePanels2-2.0\core.lua:412: in function `InitPanels'
    eePanels2-2.0\core.lua:385: in function <Interface\AddOns\eePanels2\core.lua:384>
    <in C code>: in function `pcall'
    AceAddon-2.0-57245 (Ace2):24: in function <Interface\AddOns\Ace2\AceAddon-2.0\AceAddon-2.0.lua:23>
    AceAddon-2.0-57245 (Ace2):998: in function `ManualEnable'
    AceAddon-2.0-57245 (Ace2):926: in function <Interface\AddOns\Ace2\AceAddon-2.0\AceAddon-2.0.lua:919>
    <in C code>: ?
    AceEvent-2.0-63812 (Ace2):260: in function `TriggerEvent'
    AceEvent-2.0-63812 (Ace2):917: in function <Interface\AddOns\Ace2\AceEvent-2.0\AceEvent-2.0.lua:910>
    
     ---


    Any idea what I need to change to make it work again?
    Posted in: General AddOns
  • To post a comment, please or register a new account.