• 0

    posted a message on Target Frame Red Glow Border Hide Problem
    That makes sense. Yea I went that route coming from moving just the 1 debuff button and thought I had to move them all individually but couldn't figure out why I needed to if button 1 did that.

    Now that I am awake, yea THAT is why it was throwing that error when just moving it , duh.
    Posted in: Need Help?
  • 0

    posted a message on Target Frame Red Glow Border Hide Problem
    Worked great man.

    I added some code to move the buff and debuff icons. Here is the code for everything.

    http://www.wowace.com/paste/6168/

    Example of what I added:

    for i = 1, 40 do
    if TargetFrameDebuff1 then
    TargetFrameDebuff1:ClearAllPoints()
    end
    end

    Now does that actually move each debuff/buff or is it just parented to button 1.

    If I just move button 1 then I get an error, button 1 is nil. This gets rid of it.

    Thanks again. That is about all this project does so almost done woot.
    Posted in: Need Help?
  • 0

    posted a message on Target Frame Red Glow Border Hide Problem
    Hey man do you just know all of these frames and stuff that well? I know it may be your job to know but is there a resource that shows this stuff other than scouring through the default blizzard lua and xml files to try and figure out what texture's names are etc.

    I am sure I know about the basic resources out there, go-hero wow programming the wiki and wowpedia just curious if there is something I am missing. Ill get on to hiding this and get back with a follow up if I have more questions. Thanks again.
    Posted in: Need Help?
  • 0

    posted a message on Show CompactRaidFrameManager on mouseover
    Quote from Phanx
    Erm, you realize your code is creating new functions and adding them to the script stack for OnEnter/OnLeave/OnUpdate... inside an OnUpdate script? That's absolutely not what you want to do, and I'm surprised that doesn't cause a stack overflow or something.

    On a side note, using variable names like "crfm" and "crfc" may seem like a good idea now for yourself, but it makes your code unnecessarily hard to read for others, and if you don't look at it for a few weeks or months, it'll be hard for you to read, too. You're not writing a space-limited macro; just use the full object name as the variable name, or at least more descriptive names like "manager" and "container".

    There's also no need to explicitly specify that you're looking something up in _G; that's implied by the fact that the thing you're looking up doesn't exist in any other scope. Lua starts looking in the most limited scope, and then moves outward until it finds something.



    Yes I did realize that and meant to ask if that was the issue, I think I have a function in a function in a function there.

    The variable names were just me trying to be cool and also seeing how that all works. I know what you mean about making it difficult to read and agree completely and will refrain from that as I also prefer to have the big names up there myself so I know exactly what is going on. Thanks for the advice I will take it and use it well :)

    I was looking at some other code for reference as well and it got me to try using OnMouseUp along with the toggle button to try and look at the toggle button's parent and then if it was collapsed etc., etc. sorry for having that bit of code left in, bleh.

    Yea I understand what I am having problems with now I am looking at things one block at a time and trying to make them go together I need to look at the big picture instead.



    OK so what you showed me works great except when you click the button and it collapses the alpha stays set to 1 until you mouse over it again and leave again. Also on load it has the alpha set to 1 until mouseover happens.



    Here is what I ended up with. TaintLog 2 shows no taint but I may have been inefficient.

    1.) I added a frame to check for registered events so that the raid manager starts out on login and on group formation as hidden.

    2.) I also added a script for the toggle button so that when you collapse the raid manager from being out it hides the raid manager as well. Well sets alpha to 0 I mean on both counts.

    http://www.wowace.com/paste/6166/

    Thanks yet again Phanx. I hope you enjoy helping me out as I have enjoyed learning from you what I can. :) Now to that other thread of mine to get schooled again! Cant wait.
    Posted in: Need Help?
  • 0

    posted a message on Target Frame Red Glow Border Hide Problem
    Good lord that is a lot of events.

    Having said that is there an event I could register to make that red glow border go away? I looked through them on the wiki and didn't find one.
    Posted in: Need Help?
  • 0

    posted a message on Show CompactRaidFrameManager on mouseover
    That works great Phanx.

    Now I am trying to make the crfm alpha stay set to 1 when it is not collapsed.

    Here is the code changes I made. It only does what your code does which is even when it is not collapsed it still shows and hides on mouseover.

    Any ideas on how to make the frame alpha stay set to 1 when the mouse leaves the frame?

    Thanks

    [HTML]local crfm = _G["CompactRaidFrameManager"]
    local crfc = _G["CompactRaidFrameContainer"]

    local function WaitForMouseToGoAway(self)
    if not self:IsMouseOver() then
    self:SetScript("OnUpdate", nil)
    self:SetAlpha(0)
    end
    end

    local function Mouseover(self)
    crfm:HookScript("OnEnter", function(self)
    self:SetAlpha(1)
    end)
    crfm:HookScript("OnLeave", function(self)
    self:SetScript("OnUpdate", WaitForMouseToGoAway)
    end)
    end

    crfc:HookScript("OnEvent", function()
    crfc:SetParent(UIParent)
    crfc:Show()
    end)

    crfm:HookScript("OnUpdate", function(self)
    if not (self.collapsed) then
    self:SetAlpha(1)
    elseif (self.collapsed) then
    self:SetScript("OnUpdate", Mouseover)
    end
    end) [/HTML]
    Posted in: Need Help?
  • 0

    posted a message on Show CompactRaidFrameManager on mouseover
    I found a great solution by Zork on the WOWInterface forums:

    http://www.wowinterface.com/forums/showthread.php?t=43068

    It uses animation groups and has no taint, cool!
    Posted in: Need Help?
  • 0

    posted a message on Show CompactRaidFrameManager on mouseover
    I am trying to make an addon that will show the CompactRaidFrameManager on mouseover and hide it on leave.

    I have parented the CompactRaidFrameContainer to the UIParent so that it continues to show, leaving that option as there is a built in hide option for that on the manager.

    Anyway I also want to make it show when it pops out.

    Here is my code so far: http://www.wowace.com/paste/6150/

    Now I have done hours of proof of concept to get basics down before I fuse the two together but I cant get past two problems.

    First when I use OnEnter and OnLeave on the CompactRaidFrameManager, which is what I assumed was the parent since the container hide with it, it hides instead of remaining shown like I wish when I mouse over the various buttons(raid markers redycheck etc).

    I thought I would simply be inefficient and make an OnEnter/OnLeave for each button which works except when you are not leader or assist the buttons do not show, only the background. Now whe I use /framestack it still shows the button name as being in the stack so I decided that I should try every frame under /framestack and lo and behold no frame I tried for a couple fo the framestacks, the role check and skull, would work when I was not leader or assist, it would still disappear.

    Ok so the other problem is the OnClick. here is the code I was using in that same code above only I woudl repalce the OnEnter/OnLeave with this just to see that it works.


    [HTML]local alpha = CompactRaidFrameManager:GetAlpha()
    local crftogglebutton = CreateFrame('Button', nil, UIParent, 'SecureHandlerClickTemplate')
    CompactRaidFrameManagerToggleButton:RegisterForClicks("AnyUp");
    CompactRaidFrameManagerToggleButton:HookScript("OnClick", function()

    if (alpha < 0.5)
    then
    CompactRaidFrameManager:SetAlpha(1)
    end
    if (alpha > 0.5)
    then
    CompactRaidFrameManager:SetAlpha(0)

    end

    end)[/HTML]

    Now if I put in 1 and 0 respectively it does the same thing, it only hides the frame when I click it. Which is logical, how do I make it alternate back and forth? If I set it == then it doesn't work at all. I also tried GetEffectiveAlpha() and it didnt change anything.

    One last thing, should I be using HookScript here? I dont think I should because it is my own frames and I am using SecureHandlerClickTemplate.

    Thanks for your time. I hope my issues make sense and I hope you can and have the time to help me out.

    Cheers.
    Posted in: Need Help?
  • 0

    posted a message on XP Bar Division Texture Hiding
    HAHA thanks a lot man, proper formatting of my piecemeal construction really made it all make sense now and, well, work properly lol :)

    I was really close to setting up the setscript like that and hunting down InCombatLockdown() but i guess we aren't playing horseshoes heh.

    Thanks again and I have to say thanks for OnScreenHealth, I have used it for years :) /gushing
    Posted in: Need Help?
  • 0

    posted a message on XP Bar Division Texture Hiding
    /console taintLog 1 doesn't show anything, it doesn't even create taint.log but /console taintLog 2 has some taint should I worry about this?

    Taintlog 2:

    [HTML]9/1 21:06:08.239 Global variable EVENT_TRACE_EVENT_HEIGHT tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:1
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable EVENT_TRACE_MAX_ENTRIES tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:2
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable DEBUGLOCALS_LEVEL tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:4
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable EVENT_TRACE_SYSTEM_TIMES tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:7
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable EVENT_TRACE_EVENT_COLORS tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:11
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable EventTraceFrame_OnLoad tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:23
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable EventTraceFrame_OnEvent tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:48
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable EventTraceFrame_OnShow tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:126
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable EventTraceFrame_OnUpdate tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:133
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable EventTraceFrame_OnSizeChanged tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:137
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable EventTraceFrame_Update tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:167
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable EventTraceFrame_StartEventCapture tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:269
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable EventTraceFrame_StopEventCapture tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:281
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable EventTraceFrame_HandleSlashCmd tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:293
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable EventTraceFrame_OnMouseWheel tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:316
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable EventTraceFrame_UpdateKeyboardStatus tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:329
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable EventTraceFrame_OnKeyUp tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:340
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable EventTraceFrame_RemoveEvent tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:348
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable EventTraceFrameEvent_DisplayTooltip tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:390
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable EventTraceFrameEvent_OnEnter tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:429
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable EventTraceFrameEvent_OnLeave tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:442
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable EventTraceFrameEvent_OnClick tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:451
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable EventTraceFrameEventHideButton_OnClick tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:460
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable ScriptErrorsFrame_OnLoad tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:501
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable ScriptErrorsFrame_OnShow tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:513
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable ScriptErrorsFrame_OnError tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:517
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable ScriptErrorsFrame_Update tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:548
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable ScriptErrorsFrame_UpdateButtons tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:586
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable ScriptErrorsFrame_DeleteError tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:611
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable ScriptErrorsFrameButton_OnClick tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:621
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable DebugTooltip_OnLoad tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:648
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable FrameStackTooltip_Toggle tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:656
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable FRAMESTACK_UPDATE_TIME tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:669
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable FrameStackTooltip_OnUpdate tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:671
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable FrameStackTooltip_OnShow tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:679
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.239 Global variable FrameStackTooltip_OnEnter tainted by DejaBars - Interface\AddOns\Blizzard_DebugTools\Blizzard_DebugTools.lua:701
    9/1 21:06:08.239 LoadAddOn()
    9/1 21:06:08.239 Interface\FrameXML\BasicControls.xml:<Scripts>:7
    9/1 21:06:08.239 DejaBarsFrame:HookScript()
    9/1 21:06:08.239 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.251 Execution tainted by DejaBars while reading ScriptErrorsFrame_OnError - Interface\FrameXML\BasicControls.xml:<Scripts>:22
    9/1 21:06:08.251 DejaBarsFrame:HookScript()
    9/1 21:06:08.251 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.251 Global variable _ERROR_COUNT tainted by DejaBars - Interface\FrameXML\BasicControls.xml:<Scripts>:26
    9/1 21:06:08.251 DejaBarsFrame:HookScript()
    9/1 21:06:08.251 Interface\AddOns\DejaBars\DejaBars.lua:123
    9/1 21:06:08.251 Execution tainted by DejaBars while reading _ERROR_COUNT - Interface\FrameXML\BasicControls.xml:<Scripts>:27
    9/1 21:06:08.251 DejaBarsFrame:HookScript()
    9/1 21:06:08.251 Interface\AddOns\DejaBars\DejaBars.lua:123[/HTML]
    Posted in: Need Help?
  • 0

    posted a message on XP Bar Division Texture Hiding
    Here is everything man:

    http://www.wowace.com/paste/6128/

    does the

    [HTML]
    local function eventHandler(self, event, ...)

    etc...
    etc...

    dbars:SetScript("OnEvent",eventHandler)[/HTML]

    cause it to keep calling everything during combat maybe?


    EDIT:

    maybe change

    [HTML]dbars:SetScript("OnEvent",eventHandler)[/HTML]

    to

    [HTML]dbars:HookScript("OnEvent",eventHandler)[/HTML]

    ?



    EDIT:

    na [HTML]dbars:HookScript("OnEvent",eventHandler)[/HTML] isnt doing it.

    are all of those taint errors global and need to be made local maybe?

    EDIT:
    This seems to have fixed it. Thanks again Phanx :)

    [HTML]dbars:HookScript("OnEvent", eventHandler(self, event))[/HTML]
    Posted in: Need Help?
  • 0

    posted a message on XP Bar Division Texture Hiding
    I thought I would post here instead of making another thread. I am having taint issues with my little action bar addon with moving the bars/buttons:
    [HTML]
    MultiBarLeftButton1:ClearAllPoints()
    MultiBarLeftButton1:SetPoint("LEFT", TalentMicroButton, "RIGHT", 0, -12)
    MultiBarLeftButton5:ClearAllPoints()
    MultiBarLeftButton5:SetPoint("LEFT", MultiBarLeftButton1, "RIGHT", 4, 0)
    MultiBarLeftButton9:ClearAllPoints()
    MultiBarLeftButton9:SetPoint("LEFT", MultiBarLeftButton5, "RIGHT", 4, 0)[/HTML]

    etc.

    Taint Log:

    [HTML]9/1 10:12:27.599 An action was blocked in combat because of taint from DejaBars - MainMenuBar:SetScale()
    9/1 10:12:27.599 Interface\AddOns\DejaBars\DejaBars.lua:49
    9/1 10:12:27.599 An action was blocked in combat because of taint from DejaBars - MainMenuBar:ClearAllPoints()
    9/1 10:12:27.599 Interface\AddOns\DejaBars\DejaBars.lua:51
    9/1 10:12:27.599 An action was blocked in combat because of taint from DejaBars - MainMenuBar:SetPoint()
    9/1 10:12:27.599 Interface\AddOns\DejaBars\DejaBars.lua:52
    [/HTML]
    etc for every element I move in the addon.

    Do I need to call SecureActionButtonTemplate somewhere or use hooksecurefunc or how should I go about doing this? I am new to both wow addon programming and programming in general so help would be much appreciated.

    Thank you for your help and time guys.

    Maybe:

    [HTML]hooksecurefunc( function()
    MultiBarLeftButton5:ClearAllPoints()
    MultiBarLeftButton5:SetPoint("LEFT", MultiBarLeftButton1, "RIGHT", 4, 0)
    end)[/HTML]
    Posted in: Need Help?
  • 0

    posted a message on Target Frame Red Glow Border Hide Problem
    So I am pretty sure this has to do with the target having threat towards me because the target dummies do not.

    I thought maybe I could register an event but cant seem to find one so it looks like I may need to define another function and hide the texture like on the XP bar I was working on in my other post.
    Posted in: Need Help?
  • 0

    posted a message on XP Bar Division Texture Hiding
    Quote from Phanx

    If you want to completely remove them, your best bet would be to do something like:
    for i = 1, 19 do
        local texture = _G["MainMenuXPBarDiv"..i]
        if texture then
            texture:Hide()
        end
    end


    Worked like a charm, thanks much.
    Posted in: Need Help?
  • 0

    posted a message on Target Frame Red Glow Border Hide Problem
    I have the rested glow and the combat glow hidden for the player frame and the pet frame but the target frame still has the red combat glow when in combat. There is no lua error popup.

    Curiously, the target does not have the glow when rested in a city, IE at target dummies.

    Here is a screenshot:
    https://lh4.googleusercontent.com/-dTFmsMozwqo/UD9L6huKQoI/AAAAAAAAFmU/xOLzGVmmyic/s1920/WoWScrnShot_083012_061716.jpg

    Here is my code, simple frame hiding:

    [HTML]--Register Events
    local uf = CreateFrame("Frame", "DejaUFFrame")
    uf:RegisterEvent("PLAYER_LOGIN")
    uf:RegisterEvent("PLAYER_ENTERING_WORLD")
    uf:RegisterEvent("PLAYER_ENTER_COMBAT")
    uf:RegisterEvent("PLAYER_LEAVE_COMBAT")
    uf:RegisterEvent("PLAYER_UPDATE_RESTING")
    uf:RegisterEvent("PLAYER_REGEN_DISABLED")
    uf:RegisterEvent("PLAYER_REGEN_ENABLED")
    uf:RegisterEvent("PLAYER_FOCUS_CHANGED")
    uf:RegisterEvent("UNIT_TARGET")
    uf:RegisterEvent("ADDON_LOADED")
    uf:RegisterEvent("UPDATE_SHAPESHIFT_FORM")
    uf:RegisterEvent("UPDATE_SHAPESHIFT_FORMS")
    uf:RegisterEvent("UPDATE_STEALTH")
    uf:RegisterEvent("PET_BATTLE_OVER")
    uf:RegisterEvent("UNIT_HEALTH")
    uf:RegisterEvent("UNIT_LEVEL")
    uf:RegisterEvent("UNIT_FACTION")
    uf:RegisterEvent("UNIT_CLASSIFICATION_CHANGED")
    uf:RegisterEvent("UNIT_AURA")
    uf:RegisterEvent("PLAYER_FLAGS_CHANGED")
    uf:RegisterEvent("GROUP_ROSTER_UPDATE")
    uf:RegisterEvent("RAID_TARGET_UPDATE")
    uf:RegisterEvent("VARIABLES_LOADED")
    uf:RegisterEvent("CVAR_UPDATE")



    --Hide Frames
    local function eventHandler(self, event, ...)



    PlayerFrameFlash:Hide()
    PlayerFrameBackground:Hide()
    PlayerPortrait:Hide()
    PlayerFrameTexture:Hide()
    PlayerName:Hide()
    PlayerLevelText:Hide()
    PlayerStatusTexture:Hide()
    PlayerAttackBackground:Hide()
    PlayerHitIndicator:Hide()
    PlayerRestGlow:Hide()
    PlayerAttackGlow:Hide()
    PlayerStatusGlow:Hide()

    TargetFrameBackground:Hide()
    TargetFramePortrait:Hide()
    TargetFrameTextureFrameTexture:Hide()
    TargetFrameNameBackground:Hide()


    FocusFrameBackground:Hide()
    FocusFramePortrait:Hide()
    FocusFrameTextureFrameTexture:Hide()
    FocusFrameNameBackground:Hide()

    PetFrameFlash:Hide()
    PetPortrait:Hide()
    PetFrameTexture:Hide()
    PetName:Hide()
    PetHitIndicator:Hide()
    PetAttackModeTexture:Hide()



    --End Event Registration
    end
    uf:SetScript("OnEvent",eventHandler)[/HTML]

    I am still working on my other post, I will have that shortly, I had to sleep, if only I didn't have to sleep, heh. I hope I am not being greedy with help here but I have put in at least 40 hours of work on this and I am sure many have done much more for their addons but I think I can respect the help given. But I am pretty excited about making this UI addon.

    Thank you for your time.
    Posted in: Need Help?
  • To post a comment, please or register a new account.