changeset 5:fa455845cd81

testing
author Jay Bird <a4blank@yahoo.com>
date Sun, 21 Nov 2010 17:14:22 -0500
parents fb866fa58255
children d067c361c4e9
files Main.lua RaidTargetTactics.toc _requires.xml
diffstat 3 files changed, 37 insertions(+), 0 deletions(-) [+]
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
+
--- a/RaidTargetTactics.toc	Sun Nov 21 16:32:17 2010 -0500
+++ b/RaidTargetTactics.toc	Sun Nov 21 17:14:22 2010 -0500
@@ -7,6 +7,7 @@
 ## SavedVariablesPerCharacter: TacticsProfileSettings
 ## Author: jay
 
+_requires.xml
 _locale.xml
 
 Main.lua
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/_requires.xml	Sun Nov 21 17:14:22 2010 -0500
@@ -0,0 +1,11 @@
+
+<Ui xmlns="http://www.blizzard.com/wow/ui/">
+    <Script file="libs\LibStub\LibStub.lua"/>
+    <Include file="libs\AceAddon-3.0\AceAddon-3.0.xml"/>
+    <Include file="libs\CallbackHandler-1.0\CallbackHandler-1.0.xml"/>
+    <Include file="libs\AceEvent-3.0\AceEvent-3.0.xml"/>
+    <Include file="libs\AceConsole-3.0\AceConsole-3.0.xml"/>
+    <Include file="libs\AceLocale-3.0\AceLocale-3.0.xml"/>
+
+    <Script file="libs\LibDataBroker-1.1.lua"/>
+</Ui>