Create account / Log in

Evaluate properties in initial value of Dynamic Property

Suggestions for additional features for the module editor and Vassal engine.

Moderators: uckelman, Tim M

Evaluate properties in initial value of Dynamic Property

Postby bobd » March 8th, 2011, 10:48 pm

Currently the initial value of a dynamic property does not have any $properties$ expanded but if any key press sets the value directly or prompts the user for a value then $properties$ in this value will be expanded.

This seems inconsistent (and it is stopping me doing what I want to do :D )
Bob
bobd
 
Posts: 20
Joined: March 6th, 2011, 11:09 pm

Re: [messages] [Feature Requests] Evaluate properties in ini

Postby Tim M » March 8th, 2011, 11:05 pm

What are you trying to do?

-----Original Message-----
From: messages-bounces@vassalengine.org
[mailto:messages-bounces@vassalengine.org] On Behalf Of bobd
Sent: Tuesday, March 08, 2011 4:49 PM
To: messages@vassalengine.org
Subject: [messages] [Feature Requests] Evaluate properties in initial
valueof Dynamic Property

Currently the initial value of a dynamic property does not have any
$properties$ expanded but if any key press sets the value directly or
prompts the user for a value then $properties$ in this value will be
expanded.

This seems inconsistent (and it is stopping me doing what I want to do
:D )
Bob

_______________________________________________
Read this topic online here:
viewtopic.php?p=22124#p22124
Tim,
Vassal Uber Geek/Guru

Problems? post your OS, Physical Mem, version of Vassal and Java plus the Module in question.
No developer can help with out that info, thx!
User avatar
Tim M
 
Posts: 1817
Joined: December 8th, 2007, 12:22 pm
Location: Earth

Re: Evaluate properties in initial value of Dynamic Property

Postby bobd » March 9th, 2011, 11:06 am

I wanted a text label that would display the piece name when in the game piece palette. It should be set to empty when on the map as the map will be zoomed and I will be using the mouse over stack viewer to identify pieces.

I intended to have a text label whose value was a dynamic property with the dynamic property having an initial value of $PieceName$ and a key command to set the value to empty, the key command being triggered by movement ending on the map.

Unfortunately my cunning plan doesn't work as the text label displays '$PieceName$' rather than the actual name of the piece.
bobd
 
Posts: 20
Joined: March 6th, 2011, 11:09 pm


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest