WoWInterface SVN Ara_Broker_Guild_Friends

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 23 to Rev 24
    Reverse comparison

Rev 23 → Rev 24

trunk/Ara_Broker_Guild_Friends.lua
5,7 → 5,7
local t = CreateFrame"Frame"
 
local dontShow, block, horde, config, isGuild, tip, tipShown = true
local defaultConfig = { showGuildNotes = true, showGuildName = true, sortType = "class", sortDESC = false, fontSize=12 }
local defaultConfig = { showGuildNotes = true, showGuildName = true, sortType = "class", sortDESC = false, scale = 1 }
local guildEntries, friendEntries, motd, slider, nbEntries = {}, {}
local sliderValue, hasSlider, ShowTablet = 0
local RAID_CLASS_COLORS = CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS
191,6 → 191,10
end
 
local function Scroll(self, delta)
if IsControlKeyDown() then
config.scale = config.scale - delta * .05
return ShowTablet(tipShown, isGuild)
end
slider:SetValue( sliderValue - delta * (IsModifierKeyDown() and 10 or 3) )
end
 
275,6 → 279,7
f:Show()
isGuild = _isGuild
 
f:SetScale(config.scale)
MAX_ENTRIES = floor( WorldFrame:GetHeight() / ( BUTTON_HEIGHT * f:GetEffectiveScale() ) ) - (config.hideHints and 6 or 12)
slider:SetHeight(BUTTON_HEIGHT*MAX_ENTRIES)