Originally Posted by Seerah
Note (when trying the above examples) that p3lim's code snippets DO work, they're just invisible.
|
Lol they'd have no textures.
Anyway result:
Code:
local f = CreateFrame("frame")
f:RegisterEvent("PLAYER_LOGIN")
f:SetScript("OnEvent", function(self,event,...)
if event == "PLAYER_LOGIN" then
LoadAddOn("Blizzard_GuildUI")
GuildRosterViewDropdown:Hide()
end
local function Update()
GuildRoster();
GuildRoster_Update();
SetCVar("guildRosterView", currentGuildView);
end
local b1 = CreateFrame("Button", "playerStatus", GuildRosterFrame, "UIPanelButtonTemplate")
b1:SetSize(120 ,18)
b1:SetText("Player Status")
b1:SetPoint("TOPRIGHT",-25,-26)
b1:SetScript("OnClick", function()
GuildRoster_SetView("playerStatus");
Update()
end)
local b2 = CreateFrame("Button", "guildStatus", b1, "UIPanelButtonTemplate")
b2:SetSize(120 ,18)
b2:SetText("Guild Status")
b2:SetPoint("TOPRIGHT", b1, "TOPLEFT")
b2:SetScript("OnClick", function()
GuildRoster_SetView("guildStatus");
Update()
end)
local b3 = CreateFrame("Button", "achievement", b1, "UIPanelButtonTemplate")
b3:SetSize(120 ,18)
b3:SetText("Achievements")
b3:SetPoint("TOPRIGHT", b1, "BOTTOMRIGHT")
b3:SetScript("OnClick", function()
GuildRoster_SetView("achievement");
Update()
end)
local b4 = CreateFrame("Button", "tradeskill", b3, "UIPanelButtonTemplate")
b4:SetSize(120 ,18)
b4:SetText("Professions")
b4:SetPoint("TOPRIGHT", b3, "TOPLEFT")
b4:SetScript("OnClick", function()
GuildRoster_SetView("tradeskill");
Update()
end)
end)