[Suggestion] Absolute position of a control

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
User avatar
gouxim
Nadeo
Nadeo
Posts: 1186
Joined: 14 Jun 2010, 17:20

[Suggestion] Absolute position of a control

Post by gouxim »

We already have:

Code: Select all

Vec3 CGameManialinkControl::RelativePosition
How cool would it be to have:

Code: Select all

Vec3 CGameManialinkControl::AbsolutePosition
In other words, it gives you the absolute position of a given control. Example usage is to allow real absolute positioning of any element in a page.
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer! 8-)
konte
Posts: 236
Joined: 15 Jun 2010, 12:36
Location: Germany

Re: [Suggestion] Absolute position of a control

Post by konte »

Wouldn't this be

Code: Select all

<element.PosnX, element.PosnY, element.PosnZ>
?
(and, isn't RelativePosition a property?)
Edit: yes, it is ;)
User avatar
gouxim
Nadeo
Nadeo
Posts: 1186
Joined: 14 Jun 2010, 17:20

Re: [Suggestion] Absolute position of a control

Post by gouxim »

Nop, posnX/Y/Z are the position of the element relative to the frame it is in.
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer! 8-)
konte
Posts: 236
Joined: 15 Jun 2010, 12:36
Location: Germany

Re: [Suggestion] Absolute position of a control

Post by konte »

hm, okay... Then I agree :D It would be much too difficult to calculate the absolute position by adding all the positions of the parent frames.
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 1 guest