/trunk
------------------------------------------------------------------------ |
r37 | draake | 2009-05-11 01:00:01 +0000 (Mon, 11 May 2009) | 1 line |
r39 | draake | 2009-05-11 03:14:05 +0000 (Mon, 11 May 2009) | 1 line |
Changed paths: |
A /tags/v2.0-beta.8 (from /trunk:36) |
A /tags/v2.0-beta.9 (from /trunk:38) |
Tagging as v2.0-beta.8 |
Tagging as v2.0-beta.9 |
------------------------------------------------------------------------ |
r38 | draake | 2009-05-11 03:13:45 +0000 (Mon, 11 May 2009) | 1 line |
Changed paths: |
M /trunk/tracking.lua |
M /trunk/turnin.lua |
Fixed repeatable quest registration and tooltip display. |
------------------------------------------------------------------------ |
r36 | draake | 2009-05-11 00:57:03 +0000 (Mon, 11 May 2009) | 6 lines |
Changed paths: |
M /trunk/core.lua |
## Authors: Draake |
## OptionalDeps: Ace3, LibDBIcon-1.0, LibGratuity-3.0, LibAbacus-3.0, LibTourist-3.0, Babble-Faction-3.0, LibBabble-Zone-3.0 |
## SavedVariables: EasyDaily_DB |
## X-Curse-Packaged-Version: v2.0-beta.8 |
## X-Curse-Packaged-Version: v2.0-beta.9 |
## X-Curse-Project-Name: EasyDaily |
## X-Curse-Project-ID: easydaily |
## X-Curse-Repository-ID: wow/easydaily/mainline |
self.version = {} |
-- Version |
self.version.revision = tonumber("36") |
self.version.revision = tonumber("38") |
if self.version.revision then |
local version = "v2.0-beta.8" |
local version = "v2.0-beta.9" |
if string.find(version, "^r%d+$") then |
self.version.major, self.version.minor, self.version.type = 0, 0, "alpha" |
self.version.text = string.format("r%s-alpha", self.version.revision) |
--[[ |
Desc: |
Info: $Id: turnin.lua 36 2009-05-11 00:57:03Z draake $ |
Info: $Id: turnin.lua 38 2009-05-11 03:13:45Z draake $ |
]] |
local _G = _G |
GameTooltip:AddLine(" ") |
GameTooltip:AddLine( sformat("%s: %s", "ID", self:Colorize(index, 1, 1, 1)) ) |
if index then |
GameTooltip:AddLine( sformat("%s: %s", "ID", self:Colorize(index, 1, 1, 1)) ) |
GameTooltip:AddLine(" ") |
end |
GameTooltip:AddLine(" ") |
GameTooltip:AddLine( self:ColorizePattern(L["[Right-Click] to toggle this quest's state"], "%[(.-)%]", 1, 1, 1 )) |
GameTooltip:Show() |
--[[ |
Desc: |
Info: $Id: tracking.lua 36 2009-05-11 00:57:03Z draake $ |
Info: $Id: tracking.lua 38 2009-05-11 03:13:45Z draake $ |
]] |
local _G = _G |
local name, index, kind = self:UnitName("npc") |
if name and index and kind then |
h:SetVal("unit", "start", kind, nindex) |
h:SetVal("unit", "start", kind, index) |
local k, isNew = self:GetHandle("npc", index, true) |
if isNew then |
k:SetVal("name", unitName) |
k:SetVal("name", name) |
k:SetVal("coord", zone, x, y, dl) |
end |
end |