New Property: Hyperlink

I was just wondering if it would be possible to add a property to a Game Piece that will open to a particular website in your browser when you press the hotkey or click on it in the right-click menu. (the URL should be editable like any other string - so that I might reference a dynamic property on the piece as part of the URL).

I’m looking into using a PHP program (or maybe a wiki) to keep track of detailed unit data that Vassal cannot handle.

EDIT:
I don’t know how possible this is, but what about more than just websites? can it be done where if I activate a property, it opens up a certain excel file?

Thus spake “Furyofaseraph”:

Yes, you could code a trait to do this. There’s already support in VASSAL
for opening URLs in a browser (VASSAL.tools.BrowserSupport), you’d just
have to use that from the ActionListener for the menu item.

What is the unit data which VASSAL cannot handle?


J.


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

Post generated using Mail2Forum (mail2forum.com)

Afraid I’m not really much of a coder.

It’s not so much that Vassal can’t handle the data - its that vassal cannot handle this amount of data. A website is more flexible for what I want to do.

Thus spake “Furyofaseraph”:

You could add a Feature Request for it:

sourceforge.net/tracker/?group_ … tid=594234


J.


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

Post generated using Mail2Forum (mail2forum.com)