WoWInterface SVN GuildNotesTooltip

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 1 to Rev 2
    Reverse comparison

Rev 1 → Rev 2

GuildNotesTooltip/GuildNotesTooltip.lua New file
0,0 → 1,78
--------------------------------------------------------------------------
-- GuildNotesTooltip.lua
--------------------------------------------------------------------------
--[[
GuildNotesTooltip
 
-Puts guild member officer and player notes in a tooltip on the Guild Frame.
 
By: AnduinLothar
 
Change Log:
v1.0 (10/14/05)
-First Release
v1.1 (10/15/05)
-Fixed xml loading bug
v2.0 (05/05/07)
-Made it WoW 2.x compatible and added more info on tooltip. - Maziel
v2.1 (09/22/07)
-Updated to show the tooltip even without a note
-Updated for WoW 2.2
v3.0 (10/14/08)
-Updated for WoW 3.0
-Added tooltip to status list
 
$Id: $
$Rev: $
$LastChangedBy: $
$Date: $
 
]]--
 
-- <= == == == == == == == == == == == == =>
-- => Functions
-- <= == == == == == == == == == == == == =>
 
function GuildNotesTooltip_ShowGuildMemberTooltip(self)
local name, rank_name, rank_number, level, class, location, guild_note, guild_officernote = GetGuildRosterInfo(self.guildIndex)
GuildNotesTooltip:SetOwner(self, "ANCHOR_NONE")
GuildNotesTooltip:ClearAllPoints()
GuildNotesTooltip:SetPoint("TOPLEFT", self, "BOTTOMLEFT", 5, 0)
local string = ""
if guild_note and guild_note ~= "" and guild_officernote and guild_officernote ~= "" then
string = format(GUILD_NOTES_TOOLTIP_FORMAT2, rank_name, name, level, class, location, GUILD_NOTES_TOOLTIP_PUBLIC_NOTE, guild_note, GUILD_NOTES_TOOLTIP_OFFICERS_NOTE, guild_officernote)
elseif guild_note and guild_note ~= "" then
string = format(GUILD_NOTES_TOOLTIP_FORMAT1, rank_name, name, level, class, location, GUILD_NOTES_TOOLTIP_PUBLIC_NOTE, guild_note)
elseif guild_officernote and guild_officernote ~= "" then
string = format(GUILD_NOTES_TOOLTIP_FORMAT1, rank_name, name, level, class, location, GUILD_NOTES_TOOLTIP_OFFICERS_NOTE, guild_officernote)
else
string = format(GUILD_NOTES_TOOLTIP_FORMAT0, rank_name, name, level, class, location)
end
GuildNotesTooltip:SetText(string)
end
 
function GuildNotesTooltip_HideTooltip()
if (GuildNotesTooltip:IsVisible()) then
GuildNotesTooltip:Hide()
end
end
 
-- <= == == == == == == == == == == == == =>
-- => Create Tooltip
-- <= == == == == == == == == == == == == =>
 
CreateFrame("GameTooltip", "GuildNotesTooltip", UIParent, "GameTooltipTemplate"):Hide()
 
-- <= == == == == == == == == == == == == =>
-- => Setup Hooks
-- <= == == == == == == == == == == == == =>
 
for i=1, GUILDMEMBERS_TO_DISPLAY do
local frame = getglobal("GuildFrameButton"..i)
frame:HookScript("OnEnter", GuildNotesTooltip_ShowGuildMemberTooltip)
frame:HookScript("OnLeave", GuildNotesTooltip_HideTooltip)
 
frame = getglobal("GuildFrameGuildStatusButton"..i)
frame:SetScript("OnEnter", GuildNotesTooltip_ShowGuildMemberTooltip)
frame:SetScript("OnLeave", GuildNotesTooltip_HideTooltip)
end
Property changes : Added: svn:executable + *
GuildNotesTooltip/localization.en.lua New file
0,0 → 1,9
-- Version : English
-- Last Update : 09/22/2007
 
GUILD_NOTES_TOOLTIP_OFFICERS_NOTE = "Officers Note: ";
GUILD_NOTES_TOOLTIP_PUBLIC_NOTE = "Public Note: ";
 
GUILD_NOTES_TOOLTIP_FORMAT0 = "|cffff0000%s %s|r\n|cFF8080FFLevel %s %s|r\n|cFFffffFFCurrently in %s|r\n\n|cFFcccccc(click for details)|r"
GUILD_NOTES_TOOLTIP_FORMAT1 = "|cffff0000%s %s|r\n|cFF8080FFLevel %s %s|r\n|cFFffffFFCurrently in %s|r\n\n%s\n|c77ff7700%s|r\n\n|cFFcccccc(click for details)|r"
GUILD_NOTES_TOOLTIP_FORMAT2 = "|cffff0000%s %s|r\n|cFF8080FFLevel %s %s|r\n|cFFffffFFCurrently in %s|r\n\n%s\n|c77ff7700%s|r\n\n%s\n|c77ff7700%s|r\n\n|cFFcccccc(click for details)|r"
Property changes : Added: svn:executable + *
GuildNotesTooltip/GuildNotesTooltip.toc New file
0,0 → 1,15
## Interface: 30000
## Title: GuildNotesTooltip
## Notes: Puts guild member information in a tooltip on the Guild Frame.
## Author: AnduinLothar
## Version: 3.0
## X-Date: Oct 14 2008
## X-Category: Library
## X-Website: http://www.wowinterface.com/downloads/info4252-GuildNotesTooltip.html
## X-Email: karlkfi@yahoo.com
## X-Localizations: enUS
## X-CompatibleLocales: enUS, enGB
localization.en.lua
localization.de.lua
localization.fr.lua
GuildNotesTooltip.lua
GuildNotesTooltip/localization.fr.lua New file
0,0 → 1,7
-- Version : French
-- Translated by:
-- Last Updated:
 
if ( GetLocale() == "frFR" ) then
 
end
\ No newline at end of file Property changes : Added: svn:executable + *
GuildNotesTooltip/localization.de.lua New file
0,0 → 1,6
-- Version : German
-- Last Update :
 
if ( GetLocale() == "deDE" ) then
 
end
\ No newline at end of file Property changes : Added: svn:executable + *