WoWInterface SVN Ara_Broker_Guild_Friends

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 28 to Rev 27
    Reverse comparison

Rev 28 → Rev 27

Ara_Broker_Guild_Friends.lua
11,8 → 11,8
local RAID_CLASS_COLORS = CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS
local L = {}
 
local format, strfind, GetGuildRosterInfo, GetFriendInfo, CLASS_BUTTONS, GetDifficultyColor =
format, strfind, GetGuildRosterInfo, GetFriendInfo, CLASS_BUTTONS, GetQuestDifficultyColor
local format, strfind, strupper, GetGuildRosterInfo, GetFriendInfo, CLASS_BUTTONS, GetDifficultyColor =
format, strfind, strupper, GetGuildRosterInfo, GetFriendInfo, CLASS_BUTTONS, GetQuestDifficultyColor
 
local orgReloadUI = ReloadUI
ReloadUI = function(...)
48,7 → 48,7
friendEntries[1] = new( nil, "Name", "", "Lv", "Zone", "Notes" )
end
online = online + 1
friendEntries[online+1] = new( name, status ~= "" and format("%s %s", tostring(status), tostring(name)) or name, L[class], level, zone or "Unknown", note and format("[%s]",note) or "-" )
friendEntries[online+1] = new( name, status ~= "" and format("%s %s", tostring(status), tostring(name)) or name, class, level, zone or "Unknown", note and format("[%s]",note) or "-" )
end
end
f.FriendsBlock.text = format(config.hideTotalFriends and " %d" or " %d/%d", online, total)
118,7 → 118,7
highlight:SetAlpha(0)
 
local function Menu_OnEnter(b)
if b and b.index then
if b.index then
highlight:SetAllPoints(b)
if b.index > 1 then
highlight:SetAlpha(1)
131,7 → 131,7
highlight:ClearAllPoints()
tip:Hide()
tipShown = false
if b and b.index and b.index > 1 then highlight:SetAlpha(0) end
if b.index and b.index > 1 then highlight:SetAlpha(0) end
if not MouseIsOver(f) then
sliderValue = 0
block = nil
236,15 → 236,21
button.fontName:SetText( name or "" )
if class then
if index > 1 then
class = isGuild and class or L[class]
local color = RAID_CLASS_COLORS[class]
button.fontName:SetTextColor( color.r, color.g, color.b )
if inGroup then
button.icon:SetTexture(isGrouped and "Interface\\Buttons\\UI-CheckBox-Check" or "")
button.icon:SetTexCoord(.15,.85,.15,.85)
if color then
button.fontName:SetTextColor( color.r, color.g, color.b )
if inGroup then
button.icon:SetTexture(isGrouped and "Interface\\Buttons\\UI-CheckBox-Check" or "")
button.icon:SetTexCoord(.15,.85,.15,.85)
else
button.icon:SetTexture"Interface\\Glues\\CharacterCreate\\UI-CharacterCreate-Classes"
local offset, left, right, bottom, top = 0.025, unpack( CLASS_BUTTONS[class] )
button.icon:SetTexCoord( left+offset, right-offset, bottom+offset, top-offset )
end
else
button.icon:SetTexture"Interface\\Glues\\CharacterCreate\\UI-CharacterCreate-Classes"
local offset, left, right, bottom, top = 0.025, unpack( CLASS_BUTTONS[class] )
button.icon:SetTexCoord( left+offset, right-offset, bottom+offset, top-offset )
button.fontName:SetTextColor( 1,1,0 )
button.icon:SetTexture""
end
color = GetDifficultyColor(level)
button.fontLevel:SetTextColor( color.r, color.g, color.b )
365,7 → 371,7
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
local name, rank, _, level, class, zone, note, offnote, connected, status = GetGuildRosterInfo(i)
local name, rank, _, level, _, zone, note, offnote, connected, status, class = GetGuildRosterInfo(i)
if connected then
if #guildEntries == 0 then
guildEntries[1] = new( nil, "Name", "", "Lv", "Zone", "Notes", "Rank" )
374,7 → 380,7
format( "[%s] - \124cffff9944[%s]\124r", note, offnote ) or
format( "[%s]", note )) or (offnote ~= "" and
format( "\124cffff9944[%s]\124r", offnote ) or "-")
guildEntries[#guildEntries+1] = new( name, status == "" and name or format( "%s %s", status, name ), L[class], level, zone, notes, rank, i )
guildEntries[#guildEntries+1] = new( name, status == "" and name or format( "%s %s", status, name ), class, level, zone, notes, rank, i )
end
end
f.GuildBlock.text = IsInGuild() and format(config.hideGuildTotal and" %s%d"or" %s%d/%d", config.showGuildName and GetGuildInfo"player" and GetGuildInfo"player"..": " or "", #guildEntries-1, GetNumGuildMembers(true) ) or "No Guild"
465,10 → 471,10
L[loc] = eng
end
 
tip = GameTooltip
tip = _G.GameTooltip
horde = UnitFactionGroup"player" == "Horde"
if Skinner then
Skinner:applySkin(self)
if _G.Skinner then
_G.Skinner:applySkin(self)
else
f:SetBackdrop( { bgFile="Interface\\Buttons\\WHITE8X8", edgeFile="Interface\\Tooltips\\UI-Tooltip-Border",
tile=true, tileSize=12, edgeSize=12, insets = { left=2, right=2, top=2, bottom=2 } } )