/trunk
for i=1, #entries do |
button = buttons[i] |
button:SetWidth( maxWidth ) |
if( not isGuild or i>1 )then button:SetPoint( "TOPLEFT", f, "TOPLEFT", GAP, (1-i-extraHeight-offsetEntries) * BUTTON_HEIGHT - GAP ) end |
button.fontName:SetWidth(nameC) |
button.fontLevel:SetWidth(levelC) |
button.fontZone:SetWidth(zoneC) |
button.fontNotes:SetWidth(notesC) |
button.fontRank:SetWidth(rankC) |
button:SetWidth( maxWidth ) |
if( not isGuild or i>1 )then button:SetPoint( "TOPLEFT", f, "TOPLEFT", GAP, (1-i-extraHeight-offsetEntries) * BUTTON_HEIGHT - GAP ) end |
end |
colspace[2], colspace[3], colspace[4], colspace[5], colspace[6] = nameC, levelC, zoneC, notesC, rankC |
guildEntries[#guildEntries+1] = new( name, status == "" and name or format( "%s %s", status, name ), class, level, zone, notes, rank ) |
end |
end |
ShowTablet( self, true, guildEntries, OnGuildmateClick ) |
return ShowTablet( self, true, guildEntries, OnGuildmateClick ) |
end |
f.GuildBlock = ldb:NewDataObject( "|cFFFFB366Ara|r Guild", { |
text = GUILD, |
icon = "Interface\\AddOns\\Ara_Broker_Guild&Friends\\guild.tga", |
icon = "Interface\\AddOns\\Ara_Broker_Guild_Friends\\guild.tga", |
OnEnter = f.GuildOnEnter, |
OnLeave = function(self) return IsInGuild() and Menu_OnLeave(self) or GameTooltip:Hide() end, |
OnClick = function(self) ToggleFriendsFrame(3) end, |
f.FriendsBlock = ldb:NewDataObject( "|cFFFFB366Ara|r Friends", { |
text = FRIENDS, |
icon = "Interface\\AddOns\\Ara_Broker_Guild&Friends\\friends.tga", |
icon = "Interface\\AddOns\\Ara_Broker_Guild_Friends\\friends.tga", |
OnEnter = f.FriendsOnEnter, |
OnLeave = function(self) Menu_OnLeave(self) GameTooltip:Hide() end, |
OnClick = function(self) ToggleFriendsFrame(1) end, |
## Interface: 30000 |
## Title: |cFFFFB366Ara|r - Guild & Friends |
## Version: r1 |
## Version: r2 |
## Notes: A Data Broker plugin that provides guildmates & friends informations and interactions. |
## Dependencies: |
## OptionalDeps: |