KGPanels -> Panels verschwinden einfach

BabyRay

Quest-Mob
Mitglied seit
25.05.2008
Beiträge
53
Reaktionspunkte
1
Hallo zusammen,

seit dem letzen Patch habe ich das Problem das nach jedem Login / ReloadUI ein anderes meiner Panels verschwindet.

Hier kann man die sehen das Panels fehlen...
http://img853.images...3/7769/m0th.jpg

Folgende Scripte haben einige Panel:

DPS Button:onload

Code:
self:RegisterEvent("PLAYER_ENTERING_WORLD")
self:RegisterEvent("GROUP_ROSTER_UPDATE")
 
if IsInRaid() or IsInGroup() then
    SkadaBarWindowRecount:Show()
    SkadaBarWindowOmen:Show()
else
    SkadaBarWindowRecount:Hide()
    SkadaBarWindowOmen:Hide()
end

OnEvent

Code:
if IsInRaid() or IsInGroup() then
    SkadaBarWindowRecount:Show()
    SkadaBarWindowOmen:Show()
else
    SkadaBarWindowRecount:Hide()
    SkadaBarWindowOmen:Hide()
end

onclick

Code:
if IsAddOnLoaded("Skada") and pressed then
    if IsControlKeyDown() then 
        Skada:Reset()
        PlaySoundFile("Sound\\Interface\\iAbilitiesTurnPageA.wav") 
    else
        CombatLogClearEntries() 
        Skada:ToggleWindow() 
        if SkadaBarWindowRecount:IsShown() and SkadaBarWindowOmen:IsShown() then 
            PlaySoundFile("Sound\\Interface\\uCharacterSheetOpen.wav") 
        else 
            PlaySoundFile("Sound\\Interface\\uCharacterSheetClose.wav") 
        end
    end
end

Code:

Chat Button:OnLoad

Code:
self:RegisterEvent("ZONE_CHANGED")
self:RegisterEvent("ZONE_CHANGED_NEW_AREA")
self:RegisterEvent("ZONE_CHANGED_INDOORS")
self:RegisterEvent("PLAYER_ENTERING_WORLD")
self:RegisterEvent("GROUP_ROSTER_UPDATE")
 
if IsResting() or IsInGroup() then
    _G["ChatFrame1"]:Show()
    _G["ChatFrame3"]:Show()
    _G["ChatFrame1ButtonFrame"]:Show()
    _G["ChatFrame3ButtonFrame"]:Show()
    _G["ChatFrameMenuButton"]:Show()
    _G["GeneralDockManager"]:Show()
    _G["FriendsMicroButton"]:Show()
else
    _G["ChatFrame1"]:Hide()
    _G["ChatFrame3"]:Hide()
    _G["ChatFrame1ButtonFrame"]:Hide()
    _G["ChatFrame3ButtonFrame"]:Hide()
    _G["ChatFrameMenuButton"]:Hide()
    _G["GeneralDockManager"]:Hide()
    _G["FriendsMicroButton"]:Hide()
end

OnEvent

Code:
if IsResting() or IsInGroup() then then
    _G["ChatFrame1"]:Show()
    _G["ChatFrame3"]:Show()
    _G["ChatFrame1ButtonFrame"]:Show()
    _G["ChatFrame3ButtonFrame"]:Show()
    _G["ChatFrameMenuButton"]:Show()
    _G["GeneralDockManager"]:Show()
    _G["FriendsMicroButton"]:Show()
else
    _G["ChatFrame1"]:Hide()
    _G["ChatFrame3"]:Hide()
    _G["ChatFrame1ButtonFrame"]:Hide()
    _G["ChatFrame3ButtonFrame"]:Hide()
    _G["ChatFrameMenuButton"]:Hide()
    _G["GeneralDockManager"]:Hide()
    _G["FriendsMicroButton"]:Hide()
end

onclick

Code:
if pressed then
    if _G["ChatFrame1"]:IsShown() then
        _G["ChatFrame1"]:Hide()
        _G["ChatFrame3"]:Hide()
        _G["ChatFrame1ButtonFrame"]:Hide()
        _G["ChatFrame3ButtonFrame"]:Hide()
        _G["ChatFrameMenuButton"]:Hide()
        _G["GeneralDockManager"]:Hide()
        _G["FriendsMicroButton"]:Hide()
        PlaySoundFile("Sound\\Interface\\uCharacterSheetClose.wav") 
    else
        _G["ChatFrame1"]:Show()
        _G["ChatFrame3"]:Show()
        _G["ChatFrame1ButtonFrame"]:Show()
        _G["ChatFrame3ButtonFrame"]:Show()
        _G["ChatFrameMenuButton"]:Show()
        _G["GeneralDockManager"]:Show()
        _G["FriendsMicroButton"]:Show()
        PlaySoundFile("Sound\\Interface\\uCharacterSheetOpen.wav") 
    end
end

Show Button:onclick

Code:
if IsAddOnLoaded("Skada") and pressed then
    if not SkadaBarWindowOmen:IsShown() or not SkadaBarWindowRecount:IsShown() then
        PlaySoundFile("Sound\\Interface\\uCharacterSheetOpen.wav") 
    end
    SkadaBarWindowRecount:Show()
    SkadaBarWindowOmen:Show()
end
if pressed then
    _G["ChatFrame1"]:Show()
    _G["ChatFrame3"]:Show()
    _G["ChatFrame1ButtonFrame"]:Show()
    _G["ChatFrame3ButtonFrame"]:Show()
    _G["ChatFrameMenuButton"]:Show()
    _G["GeneralDockManager"]:Show()
    _G["FriendsMicroButton"]:Show()
end

Hide Button:onclick

Code:
if IsAddOnLoaded("Skada") and pressed then
    if SkadaBarWindowOmen:IsShown() or SkadaBarWindowRecount:IsShown() then
        PlaySoundFile("Sound\\Interface\\uCharacterSheetClose.wav") 
    end
    SkadaBarWindowRecount:Hide()
    SkadaBarWindowOmen:Hide()
end
if pressed then
    _G["ChatFrame1"]:Hide()
    _G["ChatFrame3"]:Hide()
    _G["ChatFrame1ButtonFrame"]:Hide()
    _G["ChatFrame3ButtonFrame"]:Hide()
    _G["ChatFrameMenuButton"]:Hide()
    _G["GeneralDockManager"]:Hide()
    _G["FriendsMicroButton"]:Hide()
end
 
Zurück