Evaluate properties in initial value of 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 :smiley: )
Bob

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
:smiley: )
Bob


Read this topic online here:
https://forum.vassalengine.org/t/evaluate-properties-in-initial-value-of-dynamic-property/3734/1

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.