HunterTroll-BottomLeft.blpHunterTroll-BottomRight.blpHunterTroll-TopLeft.blpHunterTroll-TopRight.blp
Date: 2011-04-24 13:00:26ID: 1Error occured in: GlobalCount: 1Message: ..FrameXMLUIPanelTemplates.lua line 20: attempt to index local 'tab' (a nil value)Debug: [C]: ? ..FrameXMLUIPanelTemplates.lua:20: PanelTemplates_UpdateTabs() ..FrameXMLUIPanelTemplates.lua:8: PanelTemplates_SetTab() ...rfaceAddOnsBlizzard_TalentUIBlizzard_TalentUI.lua:997: PlayerSpecTab_OnClick() ...rfaceAddOnsBlizzard_TalentUIBlizzard_TalentUI.lua:296: ...rfaceAddOnsBlizzard_TalentUIBlizzard_TalentUI.lua:287 [C]: Show() ..FrameXMLUIParent.lua:1580: SetUIPanel() ..FrameXMLUIParent.lua:1424: ShowUIPanel() ..FrameXMLUIParent.lua:1311: ..FrameXMLUIParent.lua:1307 [C]: SetAttribute() ..FrameXMLUIParent.lua:1974: ShowUIPanel() ...rfaceAddOnsBlizzard_TalentUIBlizzard_TalentUI.lua:102: PlayerTalentFrame_Toggle() ..FrameXMLUIParent.lua:366: ToggleTalentFrame() [string "TOGGLETALENTS"]:1: [string "TOGGLETALENTS"]:1
function PanelTemplates_SetTab(frame, id) frame.selectedTab = id; PanelTemplates_UpdateTabs(frame); [color=#00FF00]/// LINE 8[/color]endfunction PanelTemplates_UpdateTabs(frame) if ( frame.selectedTab ) then local tab; for i=1, frame.numTabs, 1 do tab = _G[frame:GetName().."Tab"..i]; if ( tab.isDisabled ) then [color=#00FF00] // LINE 20[/color] PanelTemplates_SetDisabledTabState(tab); elseif ( i == frame.selectedTab ) then PanelTemplates_SelectTab(tab); else PanelTemplates_DeselectTab(tab); end end endend
function PlayerTalentFrame_OnShow(self) [color=#00FF00]// LINE 286[/color] -- Stop buttons from flashing after skill up SetButtonPulse(TalentMicroButton, 0, 1); PlaySound("TalentScreenOpen"); UpdateMicroButtons(); if ( not selectedSpec ) then -- if no spec was selected, try to select the active one PlayerSpecTab_OnClick(activeSpec and specTabs[activeSpec] or specTabs[DEFAULT_TALENT_SPEC]); [color=#00FF00] // LINE 296[/color] else PlayerTalentFrame_Refresh(); end if ( not PanelTemplates_GetSelectedTab(PlayerTalentFrame) ) then PanelTemplates_SetTab(PlayerTalentFrame, PlayerTalentTab_GetBestDefaultTab(specIndex)); [color=#00FF00] // LINE 997[/color] endfunction PlayerTalentFrame_Toggle(pet, suggestedTalentGroup) local hidden; local talentTabSelected = PanelTemplates_GetSelectedTab(PlayerTalentFrame) ~= GLYPH_TALENT_TAB; if ( not PlayerTalentFrame:IsShown() ) then ShowUIPanel(PlayerTalentFrame); [color=#00FF00] // LINE 102[/color] hidden = false; else local spec = selectedSpec and specs[selectedSpec]; if ( spec and talentTabSelected ) then -- if a talent tab is selected then toggle the frame off HideUIPanel(PlayerTalentFrame); hidden = true; else hidden = false; end end
if ( frame ) then frame:Show(); [color=#00FF00] // LINE 1580[/color] -- Hide all child windows securecall("CloseChildWindows"); endend local leftFrame = self:GetUIPanel("left"); if ( not leftFrame ) then self:SetUIPanel("left", frame); [color=#00FF00]// LINE 1424[/color] return; end local leftPushable = GetUIPanelWindowInfo(leftFrame, "pushable") or 0; local function FramePositionDelegate_OnAttributeChanged(self, attribute) [color=#00FF00]// LINE 1307[/color] if ( attribute == "panel-show" ) then local force = self:GetAttribute("panel-force"); local frame = self:GetAttribute("panel-frame"); self:ShowUIPanel(frame, force); [color=#00FF00]// LINE 1311[/color] elseif ( attribute == "panel-hide" ) then local frame = self:GetAttribute("panel-frame"); local skipSetPoint = self:GetAttribute("panel-skipSetPoint"); self:HideUIPanel(frame, skipSetPoint); elseif ( attribute == "panel-update" ) then local frame = self:GetAttribute("panel-frame"); self:UpdateUIPanelPositions(frame); elseif ( attribute == "uiparent-manage" ) then self:UIParentManageFramePositions(); endend -- Dispatch to secure code FramePositionDelegate:SetAttribute("panel-force", force); FramePositionDelegate:SetAttribute("panel-frame", frame); FramePositionDelegate:SetAttribute("panel-show", true); [color=#00FF00]// LINE 1974[/color]end TalentFrame_LoadUI(); if ( PlayerTalentFrame_Toggle ) then PlayerTalentFrame_Toggle(false, GetActiveTalentGroup()); [color=#00FF00] // LINE 366[/color] endend