# HG changeset patch # User Farmbuyer of US-Kilrogg # Date 1344028660 14400 # Node ID f8000fae78dacde7cc2c11e9399a3ba3173c4bd5 # Parent 8e9d9dd08ab0736e2804cb6c068db72e33a9ac26 Transition to Mercurial (trivial pkgmeta change). diff -r 8e9d9dd08ab0 -r f8000fae78da .pkgmeta --- a/.pkgmeta Wed Nov 30 21:57:36 2011 +0000 +++ b/.pkgmeta Fri Aug 03 17:17:40 2012 -0400 @@ -7,6 +7,9 @@ libs/CallbackHandler-1.0: url: svn://svn.wowace.com/wow/callbackhandler/mainline/trunk/CallbackHandler-1.0 tag: latest + + # for Ace3 stuff, it's usually better to grab the alphas (they get tested) + # than waiting for bugfixes to get tagged libs/AceAddon-3.0: url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceAddon-3.0 libs/AceEvent-3.0: diff -r 8e9d9dd08ab0 -r f8000fae78da main.lua --- a/main.lua Wed Nov 30 21:57:36 2011 +0000 +++ b/main.lua Fri Aug 03 17:17:40 2012 -0400 @@ -1,53 +1,53 @@ -local nametag, addon = ... - ------------------------------------------------------------------------------ -local on = false -local L = GetLocale() - -------- Begin messy generated code. --- Please use the Localization App on WoWAce to update this --- http://www.wowace.com/addons/what-just-procced/localization/ -if L == 'deDE' then - L = --@localization(locale="enUS", format="lua_table", handle-unlocalized="comment")@ -elseif L == 'enUS' or L == 'enGB' then - L = --@localization(locale="enUS", format="lua_table", handle-unlocalized="comment")@ -elseif L == 'esES' or L == 'esMX' then - L = --@localization(locale="enUS", format="lua_table", handle-unlocalized="comment")@ -elseif L == 'frFR' then - L = --@localization(locale="enUS", format="lua_table", handle-unlocalized="comment")@ -elseif L == 'koKR' then - L = --@localization(locale="enUS", format="lua_table", handle-unlocalized="comment")@ -elseif L == 'ruRU' then - L = --@localization(locale="enUS", format="lua_table", handle-unlocalized="comment")@ -elseif L == 'zhCN' then - L = --@localization(locale="enUS", format="lua_table", handle-unlocalized="comment")@ -elseif L == 'zhTW' then - L = --@localization(locale="enUS", format="lua_table", handle-unlocalized="comment")@ -end -------- End messy generated code. - ------------------------------------------------------------------------------ -addon = LibStub("AceAddon-3.0"):NewAddon(addon, nametag, - "AceConsole-3.0", "AceEvent-3.0") - -function addon:OnInitialize() - self:RegisterChatCommand("wjp", "ToggleEnable") - self.OnInitialize = nil -end - -function addon:ToggleEnable() - on = not on - if on then - self:RegisterEvent("SPELL_ACTIVATION_OVERLAY_SHOW") - else - self:UnregisterEvent("SPELL_ACTIVATION_OVERLAY_SHOW") - end - self:Print(on and L["Activated"] or L["Deactivated"]) -end - -function addon:SPELL_ACTIVATION_OVERLAY_SHOW(_,spellID,_,positions) - local spell = GetSpellLink(spellID) or GetSpellInfo(spellID) or spellID - self:Printf(L["%s at position %s."], spell, positions) -end - --- vim:noet +local nametag, addon = ... + +----------------------------------------------------------------------------- +local on = false +local L = GetLocale() + +------- BEGIN GENERATED CODE. DO NOT EDIT. +-- Please use the Localization App on WoWAce to update this +-- http://www.wowace.com/addons/what-just-procced/localization/ +if L == 'deDE' then + L = --@localization(locale="enUS", format="lua_table", handle-unlocalized="comment")@ +elseif L == 'enUS' or L == 'enGB' then + L = --@localization(locale="enUS", format="lua_table", handle-unlocalized="comment")@ +elseif L == 'esES' or L == 'esMX' then + L = --@localization(locale="enUS", format="lua_table", handle-unlocalized="comment")@ +elseif L == 'frFR' then + L = --@localization(locale="enUS", format="lua_table", handle-unlocalized="comment")@ +elseif L == 'koKR' then + L = --@localization(locale="enUS", format="lua_table", handle-unlocalized="comment")@ +elseif L == 'ruRU' then + L = --@localization(locale="enUS", format="lua_table", handle-unlocalized="comment")@ +elseif L == 'zhCN' then + L = --@localization(locale="enUS", format="lua_table", handle-unlocalized="comment")@ +elseif L == 'zhTW' then + L = --@localization(locale="enUS", format="lua_table", handle-unlocalized="comment")@ +end +------- END GENERATED CODE. DO NOT EDIT. + +----------------------------------------------------------------------------- +addon = LibStub("AceAddon-3.0"):NewAddon(addon, nametag, + "AceConsole-3.0", "AceEvent-3.0") + +function addon:OnInitialize() + self:RegisterChatCommand("wjp", "ToggleEnable") + self.OnInitialize = nil +end + +function addon:ToggleEnable() + on = not on + if on then + self:RegisterEvent("SPELL_ACTIVATION_OVERLAY_SHOW") + else + self:UnregisterEvent("SPELL_ACTIVATION_OVERLAY_SHOW") + end + self:Print(on and L["Activated"] or L["Deactivated"]) +end + +function addon:SPELL_ACTIVATION_OVERLAY_SHOW(_,spellID,_,positions) + local spell = GetSpellLink(spellID) or GetSpellInfo(spellID) or spellID + self:Printf(L["%s at position %s."], spell, positions) +end + +-- vim:noet