Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

How menu offset x and y are calculated?

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
bis_senchi




Joined: 08 Jun 2004
Posts: 460
Location: Reims, France

PostPosted: Sun May 16, 2010 12:51 am    Post subject: How menu offset x and y are calculated? Reply with quote

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!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Mon May 24, 2010 6:06 am    Post subject: Re: How menu offset x and y are calculated? Reply with quote

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."
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group