diff Main.lua @ 5:fa455845cd81

testing
author Jay Bird <a4blank@yahoo.com>
date Sun, 21 Nov 2010 17:14:22 -0500
parents b5f8273abd0c
children d067c361c4e9
line wrap: on
line diff
--- a/Main.lua	Sun Nov 21 16:32:17 2010 -0500
+++ b/Main.lua	Sun Nov 21 17:14:22 2010 -0500
@@ -0,0 +1,25 @@
+
+
+RTT = LibStub("AceAddon-3.0"):NewAddon("RaidTargetTactics", "AceConsole-3.0")
+local L = LibStub("AceLocale-3.0"):GetLocale("RaidTargetTactics")
+
+
+function RTT:OnInitialize()
+    self.db = LibStub("AceDB-3.0"):New("TacticsSettings", defaults, true)
+    local AceGUI = LibStub("AceGUI-3.0")
+    -- Create a container frame
+    local f = AceGUI:Create("Frame")
+    f:SetCallback("OnClose",function(widget) AceGUI:Release(widget) end)
+    f:SetTitle("AceGUI-3.0 Example")
+    f:SetStatusText("Status Bar")
+    f:SetLayout("Flow")
+    -- Create a button
+    local btn = AceGUI:Create("Button")
+    btn:SetWidth(170)
+    btn:SetText("Button !")
+    btn:SetCallback("OnClick", function() print("Click!") end)
+    -- Add the button to the container
+    f:AddChild(btn)
+
+end
+