[25 Aug 2008] Query Buttons

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
User avatar
Allanon
Posts: 742
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

[25 Aug 2008] Query Buttons

Post by Allanon »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 25 Aug 2008 14:23:37 -0000

Hello, there is a way to query a button to obtain its current coordinates and sizes?

Thanks in advance. Fabio
----------------------------
[Allanon] Fabio Falcucci | GitHub (leaving) | Gitea (my new house) | My Patreon page | All my links
PEB
Posts: 576
Joined: Sun Feb 21, 2010 1:28 am

[25 Aug 2008] Re: Query Buttons

Post by PEB »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 25 Aug 2008 07:39:27 -0700 (PDT)

If you make LayerButtons, then this is easily done with GetAttribute().
User avatar
Allanon
Posts: 742
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

[25 Aug 2008] Re: Query Buttons

Post by Allanon »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 25 Aug 2008 14:57:20 -0000

Yep, I know, but I can't use layers because I'm trying to simulate viewports using brushes. The problem is that the coordinates where the buttons are rendered are not the same of the button areas, so I've to query the current button data and recreate the active zone adding the offset of the viewport and the linked brush where all buttons are rendered.

I don't know if I've explaned well what I mean... please forgive my english... -.-'
----------------------------
[Allanon] Fabio Falcucci | GitHub (leaving) | Gitea (my new house) | My Patreon page | All my links
User avatar
Allanon
Posts: 742
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

[25 Aug 2008] Re: Query Buttons

Post by Allanon »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 25 Aug 2008 15:37:54 -0000

I think I've resolved... thanks ;)
----------------------------
[Allanon] Fabio Falcucci | GitHub (leaving) | Gitea (my new house) | My Patreon page | All my links
Locked