local AceGUI = LibStub("AceGUI-3.0")
local FIRST_RUN_FRAME = AceGUI:Create("Frame")
FIRST_RUN_FRAME:SetCallback("OnClose", function(widget) AceGUI:Release(widget) end)
local TEXT = AceGUI:Create("Label")
TEXT:SetText("Welcome! Thanks for installing SK. Since this is your first run of the addon, would you like to take a second and configure your settings?")
local YES_BUTTON = AceGUI:Create("Button")
YES_BUTTON:SetCallback("OnClick", function() InterfaceOptionsFrame_OpenToCategory(optionFrame) end)
local NO_BUTTON = AceGUI:Create("Button")
NO_BUTTON:SetCallback("OnClick", function() FIRST_RUN_FRAME:Hide() end)
I've got a few questions:
1. How do I move these buttons and text to where I want them on the frame? The docs don't show a SetX or SetY attribute as being available?
2. TEXT:SetFont("Calibri",12) -- I'm sure this is probably incorrect...if it is, what fonts can I use and how do I specify them here? (Paths, or just the font name? Quotes, no quotes?)
3. NO_BUTTON:SetCallback("OnClick", function() FIRST_RUN_FRAME:Hide() end) --Is this the appropriate way to just close the frame?
To be honest, there aren't many people who understand the API for AceGUI enough to use it directly - it's mostly only used by AceConfig. If this is your first AddOn, you should be using CreateFrame(), using frame:CreateFontString(), frame:SetPoint(), etc. Unless you really want to drive yourself mad. :)
Ah, I guess I misunderstood the point of AceGUI...so, AceGUI was meant as a tool for AceConfig...
If I understand you correctly, you're saying to use LUA's/WoW API to create frames?
to clarify. AceGUI was built and initially designed to serve as the frunt end for AceConfig. However, like most of Ace, is ment to short cut development on commonly used elements and methods (to a degree).
The fact remains that if you do not understand the underlying methods ( refered to as "Straight WoW API" for frames and UI Elements ) then AceGUI won't help. Just like using AceEvent dosn't really help if you don't know wtf an event handler is.
Classic argument would say that for your first [Anything New], don't do anything that's [complicated to start with]. Keep it simple for simple things.