Mercurial > wow > raid-target-tactics
comparison UserSelect.lua @ 11:d2cbfe498c4d
first beta
| author | Jay Bird <a4blank@yahoo.com> |
|---|---|
| date | Sat, 04 Dec 2010 05:53:52 +0300 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 10:f93b554bb7cf | 11:d2cbfe498c4d |
|---|---|
| 1 | |
| 2 UserSelect = class() | |
| 3 local AceGUI = LibStub("AceGUI-3.0") | |
| 4 | |
| 5 function UserSelect:draw(parent, x, y) | |
| 6 self.field = AceGUI:Create("EditBoxRaid") | |
| 7 self.field.frame:SetParent(parent) | |
| 8 self.field:DisableButton(true) | |
| 9 self.field:SetWidth(100) | |
| 10 self.field:SetHeight(16) | |
| 11 self.field:SetPoint("TOPLEFT", x, y) | |
| 12 self.field.frame:Show() | |
| 13 end | |
| 14 | |
| 15 function UserSelect:GetText() | |
| 16 return self.field:GetText() | |
| 17 end | |
| 18 | |
| 19 function UserSelect:SetText(text) | |
| 20 self.field:SetText(text) | |
| 21 end |
