WoWInterface SVN Ara_Broker_Guild_Friends

Compare Revisions

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

Rev 14 → Rev 15

Ara_Broker_Guild_Friends.lua
4,7 → 4,7
local f = CreateFrame( "Frame", "AraBrokerGuildFriends", UIParent )
local t = CreateFrame"Frame"
 
local block, isGuild, horde, config
local dontShow, block, horde, config, isGuild = true
local defaultConfig = { showGuildNotes = true, showGuildName = true, sortType = "class", sortDESC = false, fontSize=12 }
local guildEntries, friendEntries = {}, {}
 
55,7 → 55,8
end
 
function f:GUILD_ROSTER_UPDATE()
f.GuildOnEnter( block, not( isGuild and block ) )
dontShow = not( isGuild and block )
f.GuildOnEnter( block )
end
 
function f:PLAYER_GUILD_UPDATE(event, unit)
284,7 → 285,7
return ShowTablet( self, false, friendEntries )
end
 
function f:GuildOnEnter(dontShow)
function f:GuildOnEnter()
if( not dontShow and InCombatLockdown() )then f:Show() return Menu_OnEnter(f) end
for k, v in next, guildEntries do del(v) guildEntries[k]=nil end
for i=1, GetNumGuildMembers(true) do
301,7 → 302,7
end
end
f.GuildBlock.text = IsInGuild() and format( " %s%d/%d", config.showGuildName and GetGuildInfo"player" and GetGuildInfo"player"..": " or "", #guildEntries-1, GetNumGuildMembers(true) ) or " No Guild"
return not dontShow and ShowTablet( self, true, guildEntries )
if dontShow then dontShow = false else return ShowTablet(self, true, guildEntries) end
end
 
local function OnBlockClick(self, button)
380,7 → 381,7
 
ShowFriends()
if( IsInGuild() )then GuildRoster() else t.guildTimer = 0 end
f:GuildOnEnter(true)
f:GuildOnEnter()
f.ADDON_LOADED = nil
end
 
Ara_Broker_Guild_Friends.toc
1,6 → 1,6
## Interface: 30000
## Title: |cFFFFB366Ara|r - Broker - Guild & Friends
## Version: r12
## Version: r13
## Author: Ara
## Notes: A Data Broker plugin that provides guildmates & friends informations and interactions.
## SavedVariables: AraBrokerGuildFriendsDB