Created
March 28, 2009 23:58
-
-
Save PProvost/87240 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local healer_mode_raid_top = 85 | |
function oUF_Quaiche:RAID_ROSTER_UPDATE() | |
self:CheckPartyVisibility() | |
if self.healerMode then | |
local max = 0 | |
for i = 1,MAX_RAID_MEMBERS do | |
local subgroup = select(3, GetRaidRosterInfo(i)) | |
if subgroup > max then max = subgroup end | |
end | |
local total_width = max*raid_width + (max-1)*raid_spacing | |
local left = total_width / 2 | |
self.raidGroups[1]:SetPoint("TOPLEFT", UIParent, "TOP", -left, -healer_mode_raid_top) | |
end | |
end | |
function oUF_Quaiche:SetHealerLayout() | |
for i=1,NUM_RAID_GROUPS do | |
local raidGroup = self.raidGroups[i] | |
if i == 1 then | |
raidGroup:SetPoint("TOPLEFT", group_left, group_top) | |
else | |
raidGroup:SetPoint("TOPLEFT", self.raidGroups[i-1], "TOPRIGHT", raid_group_spacing, 0) | |
end | |
end | |
self.raidPets:ClearAllPoints() | |
self.raidPets:SetPoint("TOP", UIParent, "TOP", 0, -(healer_mode_raid_top + 100)) | |
self.raidPets:SetAttribute("maxColumns", 8) | |
self.raidPets:SetAttribute("unitsPerColumn", 5) | |
self:RAID_ROSTER_UPDATE() | |
end | |
function oUF_Quaiche:SwapRaidLayout() | |
self.healerMode = not self.healerMode | |
if self.healerMode then | |
self:SetHealerLayout() | |
else | |
self:SetNormalLayout() | |
end | |
end | |
SLASH_OUFQUAICHE1 = "/quaiche" | |
SLASH_OUFQUAICHE2 = "/qua" | |
SlashCmdList.OUFQUAICHE = function(msg) | |
if GetNumRaidMembers() > 0 then | |
oUF_Quaiche:SwapRaidLayout() | |
else | |
print("|cFF33FF99oUF_Quaiche|r: You are not in a raid") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment