Hello World button example

Hello,

I’ve searched the site and forums and cannot seem to find a tutorial or example of how to create a new button that simply prints some information to the chatter box. I have already setup and configured Eclipse as documented on this site and added custom classes to previous modules. I’m just looking for whats the bare minimum required to display a button that has no configurable options that just prints a predefined line of text to the chat box.

Thanks!

Are you asking how to do this in Java or do it in Vassal?

For Java, eclipse has tutorials, one of which very similar to a Hello World button

From: squizm messages@forums.vassalengine.org
To: messages@forums.vassalengine.org
Sent: Tuesday, June 9, 2009 12:22:46 PM
Subject: [Developers]Hello World button example

Hello,

I’ve searched the site and forums and cannot seem to find a tutorial or example of how to create a new button that simply prints some information to the chatter box. I have already setup and configured Eclipse as documented on this site and added custom classes to previous modules. I’m just looking for whats the bare minimum required to display a button that has no configurable options that just prints a predefined line of text to the chat box.

Thanks!


Messages mailing list
Messages@forums.vassalengine.org (Messages@forums.vassalengine.org)
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

I’m looking for a how-to for a vassal button.

Start up Vassal, then go to Help > reference manual (or online help)
Take a look at the action button trait, just combine it with a report trait

From: squizm messages@forums.vassalengine.org
To: messages@forums.vassalengine.org
Sent: Tuesday, June 9, 2009 1:15:10 PM
Subject: [Developers]Re: Hello World button example

I’m looking for a how-to for a vassal button.


Messages mailing list
Messages@forums.vassalengine.org (Messages@forums.vassalengine.org)
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)