Mercurial > wow > raid-target-tactics
view Main.lua @ 6:d067c361c4e9
testing
author | Jay Bird <a4blank@yahoo.com> |
---|---|
date | Sun, 21 Nov 2010 17:20:48 -0500 |
parents | fa455845cd81 |
children | 6e160ec1ef0f |
line wrap: on
line source
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