mooonc0w
(Sauron)
February 27, 2024, 11:38pm
#1
Hello
I have 2 questions:
does the absolute position of the GUI frame show the position of its top left corner or it shows the position of its Anchor point?
how can I set the absolute position of the top left corner of a frame?
Thanks in advance
9100ryan
(Equin)
February 27, 2024, 11:46pm
#2
At its anchor point
Set the anchor point to (0, 0) then set the frame’s position to (0, your X value here, 0, your Y value here)
Both your X and Y value should be measured in pixels
mooonc0w
(Sauron)
February 27, 2024, 11:55pm
#3
It seems that the Absolute position is influenced by the Gui inset?
I cannot imagine why this property is called Absolute position:
This is a frame with Absolute position = 0, 0
9100ryan
(Equin)
February 27, 2024, 11:55pm
#4
Yeah that’s a little odd. Try turning off the gui inset and see if it works
mooonc0w
(Sauron)
February 28, 2024, 12:00am
#5
yes, the reason is the gui inset
but 2 frames having the same absolute position are placed on a different place on the screen, depending on the gui inset attribute.
this makes very difficult to position a gui element at the same place as another gui element if the 2 are in different gui parents.
9100ryan
(Equin)
February 28, 2024, 12:01am
#6
Fair, but I don’t think that’s really a scripting issue. I don’t think this belongs in the scripting support topic
system
(system)
Closed
March 13, 2024, 12:02am
#7
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.