• 0

    posted a message on kgPanels Offical Thread
    Thank you for that. Hopefully that'll fix the Warrior Stance issue from way back on 72. What I was attempting to do for the DK presences' not working, however. What I did for my Presence script is :

    On Load
    self:RegisterEvent("UPDATE_SHAPESHIFT_FORM")

    On Event
    local form = GetShapeshiftForm(true)
    if (form==1) then
    self.bg:SetVertexColor(1,0,0,self.bg:GetAlpha())
    elseif (form==2) then
    self.bg:SetVertexColor(0,1,0,self.bg:GetAlpha())
    else
    self.bg:SetVertexColor(0,0,1,self.bg:GetAlpha())
    end

    I used 1's and 0's for the colors just to see if I could get it working. All it does is change the panel to Blue when I change presences though.
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Offical Thread
    About 20 pages ago, someone asked for a script to hide panels and show panels depending on what stance you were in, but the script didn"t quite work. I think it was:

    On Load:
    self:RegisterEvent( "UPDATE_SHAPESHIFT_FORMS" )[FONT=monospace]
    [/FONT]self:Hide()

    On Event:
    local form = GetShapeshiftForm(true)
    if ( form == 1 ) then
    -- This is Battle Stance
    self:Hide()
    elseif ( form == 2 ) then
    -- Defensive Stance
    self:Show()
    else
    -- Beserker Stance
    self:Hide()
    end

    I'd attempted to modify this to change the background color of panels for a DK's presences, but it never ended up working. I'm very new to Lua programming, but would replacing the (form==1) with form(1) work if you changed the top line to something like "local form = GetShapeshiftForm(num)" ? I've not had a chance to test this since the realms are still down.
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Offical Thread
    Is there a way for a script to set the color of a gradient?

    I've gotten what script I have to work using the self.bg:setvertexcolor, but it makes the panel one color, even with gradient selected in the Color and Opacity Settings.

    As of now, I'm working on something that'll change the panel colors based on which Presence you're currently in, but I'd like the panels to be gradients instead of solid if at all possible.
    Posted in: General AddOns
  • 0

    posted a message on JWowUpdater - A new java addons updater for ace2
    Any way to get the "Reinstall all Add-ons" button back?
    Posted in: Updaters
  • To post a comment, please or register a new account.