Mercurial > wow > raid-target-tactics
comparison Main.lua @ 5:fa455845cd81
testing
| author | Jay Bird <a4blank@yahoo.com> |
|---|---|
| date | Sun, 21 Nov 2010 17:14:22 -0500 |
| parents | b5f8273abd0c |
| children | d067c361c4e9 |
comparison
equal
deleted
inserted
replaced
| 4:fb866fa58255 | 5:fa455845cd81 |
|---|---|
| 1 | |
| 2 | |
| 3 RTT = LibStub("AceAddon-3.0"):NewAddon("RaidTargetTactics", "AceConsole-3.0") | |
| 4 local L = LibStub("AceLocale-3.0"):GetLocale("RaidTargetTactics") | |
| 5 | |
| 6 | |
| 7 function RTT:OnInitialize() | |
| 8 self.db = LibStub("AceDB-3.0"):New("TacticsSettings", defaults, true) | |
| 9 local AceGUI = LibStub("AceGUI-3.0") | |
| 10 -- Create a container frame | |
| 11 local f = AceGUI:Create("Frame") | |
| 12 f:SetCallback("OnClose",function(widget) AceGUI:Release(widget) end) | |
| 13 f:SetTitle("AceGUI-3.0 Example") | |
| 14 f:SetStatusText("Status Bar") | |
| 15 f:SetLayout("Flow") | |
| 16 -- Create a button | |
| 17 local btn = AceGUI:Create("Button") | |
| 18 btn:SetWidth(170) | |
| 19 btn:SetText("Button !") | |
| 20 btn:SetCallback("OnClick", function() print("Click!") end) | |
| 21 -- Add the button to the container | |
| 22 f:AddChild(btn) | |
| 23 | |
| 24 end | |
| 25 |
