10-18-11, 07:26 PM | #1 |
Riftwindow problem
Code:
print ("LilBag is loaded") -- Create context for UIFrames local context = UI.CreateContext("Lilbag") local lilbagwindow = UI.CreateFrame("RiftWindow", "LilBag", context) -- Sets frame position and size local function init() lilbagwindow:SetVisible(false) lilbagwindow:SetWidth(800) lilbagwindow:SetHeight(600) lilbagwindow:SetPoint("CENTER", UIParent, "CENTER") lilbagwindow:SetTitle("Lilbag") lilbagwindow:SetLayer(1) end -- Shows the window local function showlilbag() lilbagwindow:SetVisible(true) end table.insert (Command.Slash.Register("lilbag"), {showlilbag, "LilBag", "Slash command"}) local function init() lilbagwindow:SetVisible(false) would make the window closed when rift starts up and then I would open it with the slash command. Anyone see what my problem is? Note: I am using the code for LuaPad as a learning tool. |
|
Riftui » Developer Discussions » General Authoring Discussion » Riftwindow problem |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Switch to Linear Mode |
Switch to Hybrid Mode |
Threaded Mode |
|
|