WoWInterface SVN LT3GuildRoster

Compare Revisions

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

Rev 24 → Rev 25

trunk/Main.lua
22,7 → 22,7
local dataArray = {};
if IsInGuild() then
local guildName, guildRankName, guildRankIndex = GetGuildInfo("player");
if LT3debugmsg then print("GetGuildMemberList online " .. guildName)end
if LT3debugmsg then print("GetGuildMemberList Guild Name " .. guildName)end
if guildName == "Less Than Three" then
elseif guildName == "Ten Ton Hammer" then
else return nil end
173,7 → 173,7
if LT3debugmsg then print(" OnEvent:ADDON_LOADED") end
if not LT3Options or LT3Options == nil then
LT3Options = {}
LT3Options["Version"] = "1.9"
LT3Options["Version"] = "1.10"
LT3Options["FirstLoad"] = true
LT3Options["point"] = "Center"
LT3Options["rel2"] = "Center"
190,7 → 190,7
LT3OnEnable()
local loaded, finished = IsAddOnLoaded("LT3GuildRoster")
LT3GuildRoster:SetPoint( LT3Options["point"], nil, LT3Options["rel2"], LT3Options["x"], LT3Options["y"]);
LT3Options["Version"] = "1.9"
LT3Options["Version"] = "1.10"
revText:SetText(LT3Options["Version"])
-- if finished then
-- GetGuildMemberList(GuildRosterShowOfflineButton:GetChecked());
198,7 → 198,7
local gl = loadList()
lt3Guildslider:SetScript("OnValueChanged", function (self, value) loadList() end)
lt3Guildslider:SetValue(1)
AutoRefresh:SetChecked()
AutoRefresh:SetChecked(true)
if gl then SendMessage("SET",getUnitName("player")) end
if LT3debugmsg then print("END :ADDON_LOADED") end
end
349,7 → 349,7
end
end
function UpdatePData(GRMessage, GRWho) -- update LT3Roster db
if LT3debugmsg then print(" UpdatePData")end
if LT3debugmsg then print(" UpdatePData " .. GRMessage .. " : " .. GRWho)end
local a,b,trash
-- Info from Saved Variables
if not LT3Roster[GRWho] then return end
433,7 → 433,8
end
end
function SendMessage(mType, MWho) -- Call to send a message
if LT3debugmsg then print("SendMessage")end
if LT3debugmsg then print("SendMessage " .. mType)end
if LT3debugmsg and MWho then print("Who " .. MWho)end
GRMessage = MkMessage(mType, MWho)
if GRMessage == -1 then if LT3debugmsg then print("showChanges")end return end
SendAddonMessage("LT3",GRMessage, "GUILD")
441,10 → 442,17
--==========================================================
-- Main frame init
--==========================================================
function toggleDBug()
if LT3debugmsg then
LT3debugmsg = false
else
LT3debugmsg = true
end
end
function pinger()
if LT3TimeSinceLastUpdate == 0 then LT3TimeSinceLastUpdate = floor(GetTime()) end
if floor(GetTime()) - floor(LT3TimeSinceLastUpdate) == LT3Delay then
-- if LT3debugmsg then print(floor(GetTime() - floor(LT3TimeSinceLastUpdate)) .. "pinger" )end
if LT3debugmsg then print(floor(GetTime() - floor(LT3TimeSinceLastUpdate)) .. "Load Delay" )end
if not loadList() then
LT3Delay = LT3Delay + 10
else
482,8 → 490,10
LT3GuildRoster:Hide()
elseif strmatch(msg,"req" , 1 )then
SendMessage("REQUEST")
elseif strmatch(msg,"spc" , 1 )then
print(GetSpecInfo())
elseif strmatch(msg,"dbg" , 1 )then
toggleDBug()
elseif strmatch(msg,"rld" , 1 )then
ReloadUI()
else
print("LT3GuildRoster Slash commands are: \r show -- Show LT3 \r hide -- Hide LT3 \r send -- Broadcast your information ")