WoWInterface SVN KeepingTabs

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 15 to Rev 14
    Reverse comparison

Rev 15 → Rev 14

trunk/KeepingTabs/KT_LFGroups.lua New file
0,0 → 1,83
local ndt, npt, ndt2, npt2
--ndt = new dungeon tab
--npt = new pvp tab
 
local function ndt_OnClick(self)
if not PVEFrame:IsVisible() then
PVEFrame_ToggleFrame()
if PVPUIFrame:IsVisible() then
PVPUIFrame_ToggleFrame()
end
end
end
 
local function npt_OnClick(self)
if not PVPUIFrame:IsVisible() then
TogglePVPUI()
if PVEFrame:IsVisible() then
PVEFrame_ToggleFrame()
end
end
end
 
--do
local function SetUp()
if not PVPUIFrame then
TogglePVPUI()
TogglePVPUI()
end
ndt = CreateFrame("CheckButton", nil, PVEFrame, "SpellBookSkillLineTabTemplate")
ndt:Show()
ndt:SetPoint("TOPLEFT", PVEFrame, "TOPRIGHT", 0, -35)
ndt:SetFrameStrata("LOW")
ndt.tooltip = DUNGEONS_BUTTON
--ndt:SetNormalTexture("Interface\\LFGFRAME\\UI-LFG-PORTRAIT")
--ndt:SetNormalTexture("Interface\\LFGFRAME\\BattlenetWorking0")
--ndt:SetNormalTexture("Interface\\ICONS\\Achievement_GuildPerk_EverybodysFriend")
ndt:SetNormalTexture("Interface\\ICONS\\Achievement_Dungeon_Outland_Dungeon_Hero")
 
npt = CreateFrame("CheckButton", nil, ndt, "SpellBookSkillLineTabTemplate")
npt:Show()
npt:SetPoint("TOPLEFT", ndt, "BOTTOMLEFT", 0, -15)
npt:SetFrameStrata("LOW")
npt.tooltip = PVP
npt:SetNormalTexture("Interface\\PVPFrame\\RandomPVPIcon")
 
ndt:SetScript("OnClick", ndt_OnClick)
npt:SetScript("OnClick", npt_OnClick)
ndt:SetScript("OnShow", function()
ndt:SetChecked(true)
npt:SetChecked(false)
end)
 
ndt2 = CreateFrame("CheckButton", nil, PVPUIFrame, "SpellBookSkillLineTabTemplate")
ndt2:Show()
ndt2:SetPoint("TOPLEFT", PVPUIFrame, "TOPRIGHT", 0, -35)
ndt2:SetFrameStrata("LOW")
ndt2.tooltip = DUNGEONS_BUTTON
--ndt2:SetNormalTexture("Interface\\LFGFRAME\\UI-LFG-PORTRAIT")
--ndt2:SetNormalTexture("Interface\\LFGFRAME\\BattlenetWorking0")
--ndt2:SetNormalTexture("Interface\\ICONS\\Achievement_GuildPerk_EverybodysFriend")
ndt2:SetNormalTexture("Interface\\ICONS\\Achievement_Dungeon_Outland_Dungeon_Hero")
 
npt2 = CreateFrame("CheckButton", nil, ndt2, "SpellBookSkillLineTabTemplate")
npt2:Show()
npt2:SetPoint("TOPLEFT", ndt2, "BOTTOMLEFT", 0, -15)
npt2:SetFrameStrata("LOW")
npt2.tooltip = PVP
npt2:SetNormalTexture("Interface\\PVPFrame\\RandomPVPIcon")
 
ndt2:SetScript("OnClick", ndt_OnClick)
npt2:SetScript("OnClick", npt_OnClick)
ndt2:SetScript("OnShow", function()
ndt2:SetChecked(false)
npt2:SetChecked(true)
end)
end
 
local f = CreateFrame("Frame")
f:RegisterEvent("PLAYER_LOGIN")
f:SetScript("OnEvent", function()
SetUp()
SetUp = nil
end)
\ No newline at end of file
trunk/KeepingTabs/KeepingTabs.toc
1,7 → 1,8
## Interface: 60100
## Interface: 50400
## Title: KeepingTabs
## Notes: Adds tabs to the side of the friends and guild frames to switch between the two.
## Version: 1.5
## Version: 1.4.2
## Author: Seerah
 
KT_Social.lua
\ No newline at end of file +KT_Social.lua +KT_LFGroups.lua \ No newline at end of file