Having problems
I have been trying a 1 bag thing and this is what i have but im having problems getting it to work right. I am new to all this so i have just been looking at other stuff trying to figure it all out. And yes once its all done i will have the appropriate rights to whoms addons i have been looking at and working off of. Any comments or tips please PM me. Thanks
-- Create context for UIFrames local context = UI.CreateContext("Onebag") local Onebagwindow = UI.CreateFrame("RiftWindow", "Onebag", context) -- Context and Resolution Control -- local Onebag.Context = UI.CreateContext("OnebagContext") local Onebag.Context:SetPoint("TOPLEFT", UIParent, "TOPLEFT") local Onebag.Context:SetPoint("BOTTOMRIGHT", UIParent, "BOTTOMRIGHT") -- Sets frame position and size local function init() Onebagwindow:SetVisible(True) Onebagwindow:SetWidth(800) Onebagwindow:SetHeight(600) Onebagwindow:SetPoint("CENTER", UIParent, "CENTER") Onebagwindow:SetTitle("Onebag") Onebagwindow:SetLayer(1) end -- Shows the window local function showOnebag() Onebagwindow:SetVisible(true) end table.insert (Command.Slash.Register("Onebag"), {showOnebag, "OneBag", "Slash command"}) |
You only need to create one context. Also, you can't define points in a context, it is simply a wrapper for your frames.
|
Code:
-- Create context for UIFrames |
All times are GMT -6. The time now is 08:14 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2022 MMOUI