bis_senchi

Joined: 08 Jun 2004 Posts: 460 Location: Reims, France
|
Posted: Sun May 16, 2010 12:51 am Post subject: How menu offset x and y are calculated? |
|
|
Hello! Sorry again to ask another question.
This time it about menu anchor point and its place on the screen
I would like my menu 11 to appear x4, y7 on map 18.
What command should I use? The ancor point can change under the menu item.
Can it affect it placement under plotscripting?
As alaways thanks a lot for your help! _________________ It's time to make games! |
|
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Mon May 24, 2010 6:06 am Post subject: Re: How menu offset x and y are calculated? |
|
|
bis_senchi wrote: | Hello! Sorry again to ask another question.
This time it about menu anchor point and its place on the screen
I would like my menu 11 to appear x4, y7 on map 18. |
I assume you mean you want to use map 18 as the background for the menu, and you are talking about position in tiles.
Since the menu position is given from the centre of the screen (160, 100), and you want (4*20,7*20) = (80,140), you want to set the menu position to (-80,40).
But yes, you can change all (or most, at least) of a menu's data with plotscripting!
You can set the anchor with
Code: | set menu anchor x (handle, align:left)
set menu anchor y (handle, align:top) |
And the position with
Code: | set menu offset x (handle, -80)
set menu offset y (handle, 40) |
Quote: | What command should I use? The ancor point can change under the menu item. |
I don't know what you mean. Menu items do not have anchor points, other than setting text alignment to left/centre/right. _________________ "It is so great it is insanely great." |
|