WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Ace 3 GUI positions ?! (https://www.wowinterface.com/forums/showthread.php?t=55439)

Unrealrules 06-04-17 05:08 PM

Ace 3 GUI positions ?!
 
Hi

how can i make an custom Position?

Quote:

self.frame = AceGUI:Create("UnrealGUIFrame")
local frame = self.frame
frame:SetWidth(600)
frame:SetHeight(400)
frame:SetPoint('TOP', 0, -50)
frame:SetTitle('abc')

local button = AceGUI:Create("UnrealGUIButton")
button:SetPoint('TOP', 0, -50)
button:SetText('xy')
frame:AddChild(button)
don't work

It postions all time with the hidden grid. I don't want it.

Fizzlemizz 06-04-17 05:18 PM

I'm not sure I understand correctly but if you are trying to position the button relative to the frame then then you have to specify the frame in the SetPoint statement.

button:SetPoint('TOP', frame, 0, -50)

Unrealrules 06-04-17 05:44 PM

I want a custom button position in the ace 3 frame.

Quote:

frame:SetPoint("BOTTOMLEFT", "UIParent", "BOTTOMLEFT", 0, 0);
works with frame

but

Quote:

button:SetPoint("BOTTOMLEFT", frame, "BOTTOMLEFT", 0, 0);
says:
..\AddOns\Ace3\AceGUI-3.0\AceGUI-3.0.lua line 366:
AceGUI30Button1:SetPoint(): Attempt to find 'this' in non-framescript object
works not

it is in the topleft position

Kakjens 06-05-17 02:13 AM

Are there any lines missing between frame:SetTitle('abc') and local button = AceGUI:Create("UnrealGUIButton") ?


All times are GMT -6. The time now is 07:28 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI