Create account / Log in

how to make a "Clear Fired" button? GKC?

Talk about module design ideas and techniques.

Moderators: uckelman, Tim M

how to make a "Clear Fired" button? GKC?

Postby Shad » January 4th, 2008, 12:03 pm

I suspect most members of the VASSALDev Yahoo group have not migrated here yet, but let's see how quickly I can get an informed response!

I'm putting the finishing touches on a mod and would like to add a button to the toolbar that clears all the Fired markers from play.

So far I've got the Fired marker as a single level layer in the base prototype for every unit. I can add and remove it using the right-click menu.

I searched the yahoo group archives and saw some references to Global Key Commands and so I went and messed with those but the best I could come up with was a GKC button that removed all the fired markers from fired units and added fired markers to all unfired units :) in short it reversed my layer's activation for every unit instead of just clearing for the ones I need.

I know this is a common feature, but I don't have any other modules handy that have this feature for me to copy at the moment. Has anyone seen this elsewhere? Can anyone just explain how to do it? I know it's easy, I think!

-Shad
User avatar
Shad
 
Posts: 167
Joined: December 28th, 2007, 4:45 am
Location: USA

how to make a "Clear Fired" button? GKC?

Postby Brent Easton » January 4th, 2008, 9:07 pm

Hi Shad,

I went ahead and created a How-to for this

http://www.vassalengine.org/wiki/doku.p ... ow_to:main

before realizing that it is actually shown in the Reference manual.

Oh Well! Anyway, the How-to section now exists - Go for it people.

BTW, is the VASSAL reference manual available on-line that can be referenced from How-To's?

Cheers,
Brent.

*********** REPLY SEPARATOR ***********

On 4/01/2008 at 4:03 AM Shad wrote:

I suspect most members of the VASSALDev Yahoo group have not migrated
here yet, but let's see how quickly I can get an informed response!

I'm putting the finishing touches on a mod and would like to add a button
to the toolbar that clears all the Fired markers from play.

So far I've got the Fired marker as a single level layer in the base
prototype for every unit. I can add and remove it using the right-click
menu.

I searched the yahoo group archives and saw some references to Global Key
Commands and so I went and messed with those but the best I could come up
with was a GKC button that removed all the fired markers from fired units
and added fired markers to all unfired units :) in short it reversed my
layer's activation for every unit instead of just clearing for the ones I
need.

I know this is a common feature, but I don't have any other modules handy
that have this feature for me to copy at the moment. Has anyone seen this
elsewhere? Can anyone just explain how to do it? I know it's easy, I think!

-Shad







_______________________________________________
Messages mailing list
Messages@forums.vassalengine.org
http://forums.vassalengine.org/mailman/ ... engine.org


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.17.13/1209 - Release Date: 4/01/2008 12:05 PM


____________________________________________________________
Brent Easton
Analyst/Programmer
University of Western Sydney
Email: b.easton@uws.edu.au


_______________________________________________
Messages mailing list
Messages@forums.vassalengine.org
http://forums.vassalengine.org/mailman/ ... engine.org

Post generated using Mail2Forum (http://www.mail2forum.com)
User avatar
Brent Easton
 
Posts: 3255
Joined: December 21st, 2007, 3:06 am
Location: Berry, NSW, Australia

Postby Shad » January 5th, 2008, 12:20 am

Excellent Brent! The syntax of my matching properties was where things were breaking down. Sorry for making you duplicate the Reference Manual, but I like your concise How-to much better!
User avatar
Shad
 
Posts: 167
Joined: December 28th, 2007, 4:45 am
Location: USA


Return to Module Design

Who is online

Users browsing this forum: No registered users and 4 guests