WoWInterface SVN AKA

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 6 to Rev 7
    Reverse comparison

Rev 6 → Rev 7

trunk/aka.xml
101,7 → 101,7
</Frame>
 
 
 
<!-- main frame -->
<Frame
name="AKA"
>
120,10 → 120,10
 
<Scripts>
<OnLoad>
AKA_OnLoad();
AKA_OnLoad(self);
</OnLoad>
<OnEvent>
AKA_Event(event)
AKA_Event(self,event,...)
</OnEvent>
<OnUpdate>
AKA_OnUpdate(arg1);
trunk/aka.lua
6,7 → 6,7
-- ========
-- AKASavedVars = {};
 
AKA_Version=2.5;
AKA_Version=2.6;
AKA_HighestSeenVersion=0;
AKA_FormatVersion=1.1;
AKA_variablesLoaded = false;
15,6 → 15,7
 
local VISIBLE_MAX=17; -- for scrolling menu
AKA_DEBUG=false;
AKA_ShowEvent=false;
AKA_TRAFFICMONITOR=false;
 
AKA_LinkedName=nil; -- keep this global for testing
1248,12 → 1249,12
originalSetItemRef = SetItemRef; --hooked
SetItemRef=AKA_SetItemRef;
hasHookedChatLink=true;
DEFAULT_CHAT_FRAME:AddMessage("who hooked", 1.0, 0.5, 0.25)
--DEFAULT_CHAT_FRAME:AddMessage("who hooked", 1.0, 0.5, 0.25)
else
DEFAULT_CHAT_FRAME:AddMessage("who good", 1.0, 0.5, 0.25)
-- DEFAULT_CHAT_FRAME:AddMessage("who good", 1.0, 0.5, 0.25)
end
else
DEFAULT_CHAT_FRAME:AddMessage("who not avail", 1.0, 0.5, 0.25)
--DEFAULT_CHAT_FRAME:AddMessage("who not avail", 1.0, 0.5, 0.25)
end
 
end
1864,7 → 1865,7
 
-- Event functions
-- Onload:
function AKA_OnLoad()
function AKA_OnLoad(self)
-- this:RegisterEvent("ADDON_LOADED");
 
-- Register the slash command
1877,28 → 1878,29
-- Register the event handlers:
-- =============================
-- this:RegisterEvent("VARIABLES_LOADED"); -- eventually will call OnEvent
this:RegisterEvent("CHAT_MSG");
self:RegisterEvent("CHAT_MSG");
 
this:RegisterEvent("CHAT_MSG_ADDON");
this:RegisterEvent("CHAT_MSG_SYSTEM"); -- for the /who
this:RegisterEvent("WHO_LIST_UPDATE"); -- for the /who
self:RegisterEvent("CHAT_MSG_ADDON");
self:RegisterEvent("CHAT_MSG_SYSTEM"); -- for the /who
self:RegisterEvent("WHO_LIST_UPDATE"); -- for the /who
 
 
-- raid command stuff:
-- this:RegisterEvent("CHAT_MSG_RAID");
-- this:RegisterEvent("CHAT_MSG_PARTY");
-- self:RegisterEvent("CHAT_MSG_RAID");
-- self:RegisterEvent("CHAT_MSG_PARTY");
 
-- Party/Roster stuff:
this:RegisterEvent("RAID_ROSTER_UPDATE");
this:RegisterEvent("CHAT_MSG_CHANNEL"); -- will update with alias names, will watch for potential peers
this:RegisterEvent("CHAT_MSG_GUILD"); -- will update with alias names
this:RegisterEvent("CHAT_MSG_RAID"); -- will update with alias names
this:RegisterEvent("CHAT_MSG_PARTY"); -- will update with alias names
this:RegisterEvent("VARIABLES_LOADED");
this:RegisterEvent("PLAYER_ENTERING_WORLD"); -- will start a timer for initial syncs
this:RegisterEvent("MINIMAP_ZONE_CHANGED"); -- Update our last known location
self:RegisterEvent("RAID_ROSTER_UPDATE");
self:RegisterEvent("CHAT_MSG_CHANNEL"); -- will update with alias names, will watch for potential peers
self:RegisterEvent("CHAT_MSG_GUILD"); -- will update with alias names
self:RegisterEvent("CHAT_MSG_RAID"); -- will update with alias names
self:RegisterEvent("CHAT_MSG_PARTY"); -- will update with alias names
self:RegisterEvent("VARIABLES_LOADED");
self:RegisterEvent("PLAYER_ENTERING_WORLD"); -- will start a timer for initial syncs
self:RegisterEvent("MINIMAP_ZONE_CHANGED"); -- Update our last known location
 
this:RegisterEvent("CHAT_MSG_CHANNEL_JOIN"); -- watch for potential peers joining the channel
this:RegisterEvent("GUILD_ROSTER_UPDATE"); -- watch for potential peers joining the channel
self:RegisterEvent("CHAT_MSG_CHANNEL_JOIN"); -- watch for potential peers joining the channel
self:RegisterEvent("GUILD_ROSTER_UPDATE"); -- watch for potential peers joining the channel
 
 
if (not myPlayerName) then
1919,11 → 1921,8
function AKA_Event(self, event, ...)
local arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11 = ...;
if (event==nil) then
 
 
-- DEFAULT_CHAT_FRAME:AddMessage("AKA: event="..event .. " arg1="..arg1.." arg2="..arg2, 0.5, 1.0, 0.5, 1);
end
 
local eventHandled = false;
local msgText = "";
-- oh to have a case statement!
1949,10 → 1948,6
 
if (eventHandled == false) then
if ((event == "CHAT_MSG_SYSTEM") or (event =="WHO_LIST_UPDATE")) then -- looking for the "who" event set earlier by the linky
PlaySound("igCharacterInfoOpen");
 
DEFAULT_CHAT_FRAME:AddMessage(event)
-- WHO_LIST_UPDATE
if ((AKA_LinkedName~="") and (AKA_LinkedName~=nil)) then
ShowWhoTooltip();
AKA_LinkedName=""; -- tip has been shown. move along