comparison ReAction.lua @ 169:8cc187143acd

Strip out obsolete revision tracking
author Flick <flickerstreak@gmail.com>
date Tue, 19 Oct 2010 17:20:16 +0000
parents 29dacbecdb52
children df68b5a40490
comparison
equal deleted inserted replaced
168:07c76dbc0236 169:8cc187143acd
30 ------ CORE ------ 30 ------ CORE ------
31 local ReAction = LibStub("AceAddon-3.0"):NewAddon( "ReAction", 31 local ReAction = LibStub("AceAddon-3.0"):NewAddon( "ReAction",
32 "AceConsole-3.0", 32 "AceConsole-3.0",
33 "AceEvent-3.0" 33 "AceEvent-3.0"
34 ) 34 )
35 ReAction.revision = tonumber(("$Revision$"):match("%d+"))
36 35
37 ------ GLOBALS ------ 36 ------ GLOBALS ------
38 _G["ReAction"] = ReAction 37 _G["ReAction"] = ReAction
39 38
40 ------ DEBUGGING ------ 39 ------ DEBUGGING ------
216 elseif option == "lock" then 215 elseif option == "lock" then
217 self:SetConfigMode(false) 216 self:SetConfigMode(false)
218 elseif option == "kb" then 217 elseif option == "kb" then
219 self:SetKeybindMode(true) 218 self:SetKeybindMode(true)
220 else 219 else
221 self:Print(("%3.1f.%d"):format(version,self.revision)) 220 self:Print(("%3.1f"):format(version))
222 self:Print("/rxn config") 221 self:Print("/rxn config")
223 self:Print("/rxn edit") 222 self:Print("/rxn edit")
224 self:Print("/rxn lock") 223 self:Print("/rxn lock")
225 self:Print("/rxn unlock") 224 self:Print("/rxn unlock")
226 self:Print("/rxn kb") 225 self:Print("/rxn kb")
286 end 285 end
287 286
288 287
289 288
290 ------ API ------ 289 ------ API ------
291 function ReAction:UpdateRevision(str)
292 local revision = tonumber(str:match("%d+"))
293 if revision and revision > ReAction.revision then
294 ReAction.revision = revision
295 end
296 end
297 290
298 function ReAction:UserError(msg) 291 function ReAction:UserError(msg)
299 -- any user errors should be flashed to the UIErrorsFrame 292 -- any user errors should be flashed to the UIErrorsFrame
300 UIErrorsFrame:AddMessage(msg) 293 UIErrorsFrame:AddMessage(msg)
301 end 294 end