Create account / Log in

Delete marker....How???

Talk about module design ideas and techniques.

Moderators: Tim M, uckelman

Delete marker....How???

Postby highkrausen » October 16th, 2010, 2:54 am

So I'd like to be able to have a single button to click to remove all markers of a certain type...Can't for the life of me figure out how...I've edited and constructed a few very primitive modules...and stolen tricks from some modules in the learning process, but haven't a clue how to accomplish this...a basic explanation would be appreciated...please and thank you.
highkrausen
 
Posts: 5
Joined: July 21st, 2010, 8:16 pm

Re: Delete marker....How???

Postby mycenae » October 16th, 2010, 9:01 pm

Sounds like a Global Key Command will do the trick. You can set it to execute a command on all markers with a certain property.
mycenae
 
Posts: 392
Joined: May 16th, 2008, 6:41 pm

Re: Delete marker....How???

Postby highkrausen » October 16th, 2010, 11:58 pm

Hi Mycenae, and thanks for the reply...problem is...I have no idea how to implement a global key command...any help?

Please and Thank you
highkrausen
 
Posts: 5
Joined: July 21st, 2010, 8:16 pm

Re: Delete marker....How???

Postby soft-bug » October 17th, 2010, 6:33 am

Hi,

In your Module, just right clic on <YourModuleName> [Module] then Add Global Key Command.

Define your GKC as : Key Command :the key that will delete, i take for example CTRL D and i put a condition in Matching Properties : Type = ToKill
InText button, i insert : Delete Button


But on your pieces to DELETE, you must have at least two traits :

1) DELETE (activated by CTRL D)
2) a Marker defined as : Type and Value : ToKill

Regards from Paris,

Grégory
founder of The http://www.VassalFactory.org
User avatar
soft-bug
 
Posts: 222
Joined: December 20th, 2007, 9:30 am
Location: Paris / France


Return to Module Design

Who is online

Users browsing this forum: No registered users and 0 guests