WoWInterface SVN Ara_Broker_Guild_Friends

Compare Revisions

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

Rev 15 → Rev 14

Ara_Broker_Guild_Friends.lua
4,7 → 4,7
local f = CreateFrame( "Frame", "AraBrokerGuildFriends", UIParent )
local t = CreateFrame"Frame"
 
local dontShow, block, horde, config, isGuild = true
local block, isGuild, horde, config
local defaultConfig = { showGuildNotes = true, showGuildName = true, sortType = "class", sortDESC = false, fontSize=12 }
local guildEntries, friendEntries = {}, {}
 
55,8 → 55,7
end
 
function f:GUILD_ROSTER_UPDATE()
dontShow = not( isGuild and block )
f.GuildOnEnter( block )
f.GuildOnEnter( block, not( isGuild and block ) )
end
 
function f:PLAYER_GUILD_UPDATE(event, unit)
285,7 → 284,7
return ShowTablet( self, false, friendEntries )
end
 
function f:GuildOnEnter()
function f:GuildOnEnter(dontShow)
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
302,7 → 301,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"
if dontShow then dontShow = false else return ShowTablet(self, true, guildEntries) end
return not dontShow and ShowTablet( self, true, guildEntries )
end
 
local function OnBlockClick(self, button)
381,7 → 380,7
 
ShowFriends()
if( IsInGuild() )then GuildRoster() else t.guildTimer = 0 end
f:GuildOnEnter()
f:GuildOnEnter(true)
f.ADDON_LOADED = nil
end
 
Ara_Broker_Guild_Friends.toc
1,6 → 1,6
## Interface: 30000
## Title: |cFFFFB366Ara|r - Broker - Guild & Friends
## Version: r13
## Version: r12
## Author: Ara
## Notes: A Data Broker plugin that provides guildmates & friends informations and interactions.
## SavedVariables: AraBrokerGuildFriendsDB