WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Taints (https://www.wowinterface.com/forums/showthread.php?t=39648)

Aftermathhqt 04-16-11 05:09 AM

Taints
 
1 Attachment(s)
hello, there my UI is causing some taints, i don't understand where its comming from? Any ideas?

Sniffles 04-16-11 05:31 AM

Actions like hiding/fading/... during combat aren't good. Causes too many taint errors.

Aftermathhqt 04-16-11 05:45 AM

Hm, so how do i prevent these taints to happen?

Sniffles 04-16-11 05:51 AM

Don't hide frames while combat? :)

Aftermathhqt 04-16-11 05:52 AM

Quote:

Originally Posted by Sniffles (Post 234638)
Don't hide frames while combat? :)

like _G["CompactRaidFrameContainer"]:Hide() ??

Sniffles 04-16-11 05:58 AM

No something like this:

Code:

...
...

FrameName:SetScript("OnEvent", function(self, event, ...)
        if (event == "PLAYER_REGEN_DISABLED") then
                frame:Hide()
        elseif (event == "PLAYER_REGEN_ENABLED") then
                frame:Show()
        end
end)


Aftermathhqt 04-16-11 06:04 AM

Quote:

Originally Posted by Sniffles (Post 234640)
No something like this:

Code:

...
...

FrameName:SetScript("OnEvent", function(self, event, ...)
        if (event == "PLAYER_REGEN_DISABLED") then
                frame:Hide()
        elseif (event == "PLAYER_REGEN_ENABLED") then
                frame:Show()
        end
end)


Hm, i use atm.
Code:

local f = CreateFrame('Frame')
f:RegisterEvent('PLAYER_LOGIN')
f:SetScript('OnEvent', function(_, event, ...)
    if (event == 'PLAYER_LOGIN') then
          frame:Hide()
    end
end)


Sniffles 04-16-11 06:05 AM

Can you show me your full code, please? I want to test it.

Aftermathhqt 04-16-11 06:07 AM

Quote:

Originally Posted by Sniffles (Post 234642)
Can you show me your full code, please? I want to test it.

Code:

local f = CreateFrame('Frame')
f:RegisterEvent('PLAYER_LOGIN')
f:SetScript('OnEvent', function(self, event)
    if (event == 'PLAYER_LOGIN') then
            if AftermathhUI.config.loginmessage == true then
                print('|cff8080ffWelcome To Aftermathh UI|r')
                    print('|cff8080ffIf you find a bug, please report @ Wowinterface|r')
                    print('|cff8080ffFor help with this UI, type in /UIHelp|r')
                    print('|cff8080ffHope you enjoy Aftermathh UI!|r')
        end
               
                _G["InterfaceOptionsFrameCategoriesButton6"]:SetScale(0.00001) -- Nah we got bartender its okey.
                _G["InterfaceOptionsFrameCategoriesButton6"]:SetAlpha(0) -- Nah we got bartender its okey.
                _G["InterfaceOptionsFrameCategoriesButton10"]:SetScale(0.00001) -- nah we got oUF
                _G["InterfaceOptionsFrameCategoriesButton10"]:SetAlpha(0) -- nah we got oUF
                _G["InterfaceOptionsFrameCategoriesButton11"]:SetScale(0.00001) -- nah we got oUF
                _G["InterfaceOptionsFrameCategoriesButton11"]:SetAlpha(0) -- nah we got oUF
                _G["InterfaceOptionsFrameCategoriesButton9"]:SetScale(0.00001) -- nah we got oUF
                _G["InterfaceOptionsFrameCategoriesButton9"]:SetAlpha(0) -- nah we got oUF
                _G["InterfaceOptionsFrameCategoriesButton12"]:SetScale(0.00001) -- Don't really think this works with oUF hehe
                _G["InterfaceOptionsFrameCategoriesButton12"]:SetAlpha(0) -- Don't really think this works with oUF hehe
                _G["InterfaceOptionsFrameCategoriesButton16"]:SetAlpha(0) -- don't need any stupied nubie stuff
                _G["InterfaceOptionsFrameCategoriesButton16"]:SetScale(0.00001) -- don't need any stupied nubie stuff

        _G["InterfaceOptionsCombatPanelNameplateClassColors"]:Hide() -- wanna show nameplates of enemys class colored all the time
       
            _G["CompactRaidFrameContainer"]:Hide()
                _G["CompactRaidFrameContainer"]:UnregisterAllEvents()
                _G["CompactPartyFrame"]:Hide()
                _G["CompactPartyFrame"]:UnregisterAllEvents()
                _G["CompactRaidFrameManager"]:Hide()
                _G["CompactRaidFrameManager"]:UnregisterAllEvents()

                _G["InterfaceOptionsSocialPanelTimestamps"]:Hide() -- we got our own time stamps
            _G["InterfaceOptionsSocialPanelChatStyle"]:Hide() -- we don't like I'M STYLE

        _G["InterfaceOptionsSocialPanelWhisperMode"]:Hide() -- wtf?
        _G["InterfaceOptionsSocialPanelBnWhisperMode"]:Hide() -- wtf?
        _G["InterfaceOptionsSocialPanelConversationMode"]:Hide() -- wtf?
               
                _G["TutorialFrame"]:Hide() -- plox im no nub
                _G["TutorialFrame"]:UnregisterAllEvents()
               
        _G["Advanced_UseUIScale"]:Hide()
        _G["Advanced_UIScaleSlider"]:Hide()
       
                if AftermathhUI.config.chatposistion == true and AftermathhUI.config.bottompanel == true then
                    ChatFrame1:ClearAllPoints()
                ChatFrame1:SetPoint('BOTTOMLEFT', UIParent, 'BOTTOMLEFT', 11, 30)
                ChatFrame1:SetHeight(91)
                ChatFrame1:SetWidth(449)
                end
               
            if AftermathhUI.config.bottompanel == false then
                    ChatFrame1:ClearAllPoints()
                ChatFrame1:SetPoint('BOTTOMLEFT', UIParent, 'BOTTOMLEFT', 11, 13)
                ChatFrame1:SetHeight(107)
                ChatFrame1:SetWidth(452)
                end
               
            if AftermathhUI.config.nocombatlog == true then
                FCF_Close(ChatFrame2)
            end
               
                for i = 1, NUM_CHAT_WINDOWS do
                    local ChatFont = _G[format("ChatFrame%s", i)]
                    FCF_SetChatWindowFontSize(nil, ChatFont, AftermathhUI.config.chatfontsize)
            end
    end
end)


Aftermathhqt 04-16-11 06:11 AM

btw, i have alot of more of these hides.. ill guess ill just fix it all of them :)

here is link for my ui

--removed off-site download -Seerah

Sniffles 04-16-11 06:18 AM

I don't get any taint errors with this:

Code:

local f = CreateFrame('Frame')
f:RegisterEvent('PLAYER_LOGIN')
f:SetScript('OnEvent', function(self, event)
    if (event == 'PLAYER_LOGIN') then
       
              print('|cff8080ffWelcome To Aftermathh UI|r')
                  print('|cff8080ffIf you find a bug, please report @ Wowinterface|r')
                    print('|cff8080ffFor help with this UI, type in /UIHelp|r')
                    print('|cff8080ffHope you enjoy Aftermathh UI!|r')
               
                _G["InterfaceOptionsFrameCategoriesButton6"]:SetScale(0.00001) -- Nah we got bartender its okey.
                _G["InterfaceOptionsFrameCategoriesButton6"]:SetAlpha(0) -- Nah we got bartender its okey.
                _G["InterfaceOptionsFrameCategoriesButton10"]:SetScale(0.00001) -- nah we got oUF
                _G["InterfaceOptionsFrameCategoriesButton10"]:SetAlpha(0) -- nah we got oUF
                _G["InterfaceOptionsFrameCategoriesButton11"]:SetScale(0.00001) -- nah we got oUF
                _G["InterfaceOptionsFrameCategoriesButton11"]:SetAlpha(0) -- nah we got oUF
                _G["InterfaceOptionsFrameCategoriesButton9"]:SetScale(0.00001) -- nah we got oUF
                _G["InterfaceOptionsFrameCategoriesButton9"]:SetAlpha(0) -- nah we got oUF
                _G["InterfaceOptionsFrameCategoriesButton12"]:SetScale(0.00001) -- Don't really think this works with oUF hehe
                _G["InterfaceOptionsFrameCategoriesButton12"]:SetAlpha(0) -- Don't really think this works with oUF hehe
                _G["InterfaceOptionsFrameCategoriesButton16"]:SetAlpha(0) -- don't need any stupied nubie stuff
                _G["InterfaceOptionsFrameCategoriesButton16"]:SetScale(0.00001) -- don't need any stupied nubie stuff

        _G["InterfaceOptionsCombatPanelNameplateClassColors"]:Hide() -- wanna show nameplates of enemys class colored all the time
       
            _G["CompactRaidFrameContainer"]:Hide()
                _G["CompactRaidFrameContainer"]:UnregisterAllEvents()
                _G["CompactPartyFrame"]:Hide()
                _G["CompactPartyFrame"]:UnregisterAllEvents()
                _G["CompactRaidFrameManager"]:Hide()
                _G["CompactRaidFrameManager"]:UnregisterAllEvents()

                _G["InterfaceOptionsSocialPanelTimestamps"]:Hide() -- we got our own time stamps
            _G["InterfaceOptionsSocialPanelChatStyle"]:Hide() -- we don't like I'M STYLE

                _G["TutorialFrame"]:Hide() -- plox im no nub
                _G["TutorialFrame"]:UnregisterAllEvents()
               
        _G["Advanced_UseUIScale"]:Hide()
        _G["Advanced_UIScaleSlider"]:Hide()
       
                ChatFrame1:ClearAllPoints()
            ChatFrame1:SetPoint('BOTTOMLEFT', UIParent, 'BOTTOMLEFT', 11, 13)
            ChatFrame1:SetHeight(107)
            ChatFrame1:SetWidth(452)       
               
            FCF_Close(ChatFrame2)
               
                for i = 1, NUM_CHAT_WINDOWS do
                    local ChatFont = _G[format("ChatFrame%s", i)]
                    FCF_SetChatWindowFontSize(nil, ChatFont, 12)
            end
    end
end)

And please use the tabulator not the space bar :(

Btw:

Quote:

Message: ...nterface\AddOns\AftermathhUI\AftermathhUI_Launch.lua:37: attempt to index field 'InterfaceOptionsSocialPanelWhisperMode' (a nil value)
Time: 04/16/11 14:20:52
Count: 1
Stack: ...nterface\AddOns\AftermathhUI\AftermathhUI_Launch.lua:37: in function <...nterface\AddOns\AftermathhUI\AftermathhUI_Launch.lua:3>

Locals: self = <unnamed> {
0 = <userdata>
}
event = "PLAYER_LOGIN"
(*temporary) = nil
(*temporary) = nil
(*temporary) = <userdata>
(*temporary) = <userdata>
(*temporary) = true
(*temporary) = true
(*temporary) = true
(*temporary) = true
(*temporary) = nil
(*temporary) = "attempt to index field 'InterfaceOptionsSocialPanelWhisperMode' (a nil value)"

Aftermathhqt 04-16-11 06:21 AM

Quote:

Originally Posted by Sniffles (Post 234645)
I don't get any taint errors with this:

Code:

local f = CreateFrame('Frame')
f:RegisterEvent('PLAYER_LOGIN')
f:SetScript('OnEvent', function(self, event)
    if (event == 'PLAYER_LOGIN') then
       
              print('|cff8080ffWelcome To Aftermathh UI|r')
                  print('|cff8080ffIf you find a bug, please report @ Wowinterface|r')
                    print('|cff8080ffFor help with this UI, type in /UIHelp|r')
                    print('|cff8080ffHope you enjoy Aftermathh UI!|r')
               
                _G["InterfaceOptionsFrameCategoriesButton6"]:SetScale(0.00001) -- Nah we got bartender its okey.
                _G["InterfaceOptionsFrameCategoriesButton6"]:SetAlpha(0) -- Nah we got bartender its okey.
                _G["InterfaceOptionsFrameCategoriesButton10"]:SetScale(0.00001) -- nah we got oUF
                _G["InterfaceOptionsFrameCategoriesButton10"]:SetAlpha(0) -- nah we got oUF
                _G["InterfaceOptionsFrameCategoriesButton11"]:SetScale(0.00001) -- nah we got oUF
                _G["InterfaceOptionsFrameCategoriesButton11"]:SetAlpha(0) -- nah we got oUF
                _G["InterfaceOptionsFrameCategoriesButton9"]:SetScale(0.00001) -- nah we got oUF
                _G["InterfaceOptionsFrameCategoriesButton9"]:SetAlpha(0) -- nah we got oUF
                _G["InterfaceOptionsFrameCategoriesButton12"]:SetScale(0.00001) -- Don't really think this works with oUF hehe
                _G["InterfaceOptionsFrameCategoriesButton12"]:SetAlpha(0) -- Don't really think this works with oUF hehe
                _G["InterfaceOptionsFrameCategoriesButton16"]:SetAlpha(0) -- don't need any stupied nubie stuff
                _G["InterfaceOptionsFrameCategoriesButton16"]:SetScale(0.00001) -- don't need any stupied nubie stuff

        _G["InterfaceOptionsCombatPanelNameplateClassColors"]:Hide() -- wanna show nameplates of enemys class colored all the time
       
            _G["CompactRaidFrameContainer"]:Hide()
                _G["CompactRaidFrameContainer"]:UnregisterAllEvents()
                _G["CompactPartyFrame"]:Hide()
                _G["CompactPartyFrame"]:UnregisterAllEvents()
                _G["CompactRaidFrameManager"]:Hide()
                _G["CompactRaidFrameManager"]:UnregisterAllEvents()

                _G["InterfaceOptionsSocialPanelTimestamps"]:Hide() -- we got our own time stamps
            _G["InterfaceOptionsSocialPanelChatStyle"]:Hide() -- we don't like I'M STYLE

                _G["TutorialFrame"]:Hide() -- plox im no nub
                _G["TutorialFrame"]:UnregisterAllEvents()
               
        _G["Advanced_UseUIScale"]:Hide()
        _G["Advanced_UIScaleSlider"]:Hide()
       
                ChatFrame1:ClearAllPoints()
            ChatFrame1:SetPoint('BOTTOMLEFT', UIParent, 'BOTTOMLEFT', 11, 13)
            ChatFrame1:SetHeight(107)
            ChatFrame1:SetWidth(452)       
               
            FCF_Close(ChatFrame2)
               
                for i = 1, NUM_CHAT_WINDOWS do
                    local ChatFont = _G[format("ChatFrame%s", i)]
                    FCF_SetChatWindowFontSize(nil, ChatFont, 12)
            end
    end
end)

And please use the tabulator not the space bar :(

hm okey, well try to download my UI ;)

Sniffles 04-16-11 06:31 AM

4 Problems with your UI :)

1.


I don't have Bartender. So you can do something like this:

Code:

If (IsAddOnLoaded("Bartender")) then
BartenderPanel = createframe(...)
bla
blabla
end

2.
If I cast something I get this LUA Error


3.
Your Loot Frame is buggy :(


4.
It's really hard to click the tab :)


And I still didn't get any Taint errors :O

Aftermathhqt 04-16-11 06:34 AM

Quote:

Originally Posted by Sniffles (Post 234647)
4 Problems with your UI :)

1.


I don't have Bartender. So you can do something like this:

Code:

If (IsAddOnLoaded("Bartender")) then
BartenderPanel = createframe(...)
bla
blabla
end

2.
If I cast something I get this LUA Error


3.
Your Loot Frame is buggy :(


4.
It's really hard to click the tab :)


And I still didn't get any Taint errors :O


sec, ill send everything, and my WTF.

Aftermathhqt 04-16-11 06:37 AM

--removed link to off-site download -Seerah

Sniffles 04-16-11 06:51 AM

Nope still didn't get any taint errors.

You should take a look at your launch script.

Code:

_G["InterfaceOptionsSocialPanelWhisperMode"]:Hide() -- wtf?
_G["InterfaceOptionsSocialPanelBnWhisperMode"]:Hide() -- wtf?
_G["InterfaceOptionsSocialPanelConversationMode"]:Hide() -- wtf?

Cause LUA Errors

E:
Oh now Bartender and Grid work. Forget to change the foldernames of WTF.

Aftermathhqt 04-16-11 07:31 AM

Quote:

Originally Posted by Sniffles (Post 234652)
Nope still didn't get any taint errors.

You should take a look at your launch script.

Code:

_G["InterfaceOptionsSocialPanelWhisperMode"]:Hide() -- wtf?
_G["InterfaceOptionsSocialPanelBnWhisperMode"]:Hide() -- wtf?
_G["InterfaceOptionsSocialPanelConversationMode"]:Hide() -- wtf?

Cause LUA Errors

E:
Oh now Bartender and Grid work. Forget to change the foldernames of WTF.

i don't get any errors from those, btw try being in raid/party

Aftermathhqt 04-17-11 09:41 AM

1 Attachment(s)
some new taints... :(

Sniffles 04-17-11 09:49 AM

Code:

4/17 17:39:27.593  An action was blocked in combat because of taint from !Beautycase - RaidGroupButton16:Hide()
Quote:

Originally Posted by Sniffles (Post 234638)
Don't hide frames while combat? :)

:rolleyes:

Aftermathhqt 04-17-11 10:40 AM

Quote:

Originally Posted by Sniffles (Post 234777)
Code:

4/17 17:39:27.593  An action was blocked in combat because of taint from !Beautycase - RaidGroupButton16:Hide()

:rolleyes:

yes, but i don't have any thing that from beautycase, that is attached to raid frames.


All times are GMT -6. The time now is 11:14 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI