Mercurial > wow > raid-target-tactics
comparison Icon.lua @ 11:d2cbfe498c4d
first beta
author | Jay Bird <a4blank@yahoo.com> |
---|---|
date | Sat, 04 Dec 2010 05:53:52 +0300 |
parents | f93b554bb7cf |
children |
comparison
equal
deleted
inserted
replaced
10:f93b554bb7cf | 11:d2cbfe498c4d |
---|---|
13 frame:SetPoint("TOPLEFT", x, y) | 13 frame:SetPoint("TOPLEFT", x, y) |
14 local tex = frame:CreateTexture(nil, "ARTWORK") | 14 local tex = frame:CreateTexture(nil, "ARTWORK") |
15 tex:SetAllPoints(frame) | 15 tex:SetAllPoints(frame) |
16 tex:SetTexture("Interface\\TARGETINGFRAME\\UI-RaidTargetingIcon_" .. self.num) | 16 tex:SetTexture("Interface\\TARGETINGFRAME\\UI-RaidTargetingIcon_" .. self.num) |
17 frame:Show() | 17 frame:Show() |
18 return frame | 18 end |
19 | |
20 function RaidIcon:GetChatCommand() | |
21 return "{rt" .. self.num .. "}" | |
19 end | 22 end |
20 | 23 |
21 _G.RaidIcons = {} | 24 _G.RaidIcons = {} |
22 _G.RaidIcons[1] = RaidIcon("1") | 25 _G.RaidIcons[1] = RaidIcon("1") |
23 _G.RaidIcons[2] = RaidIcon("2") | 26 _G.RaidIcons[2] = RaidIcon("2") |