Create account / Log in

Property Sheet enhancements

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

Moderators: uckelman, Tim M

Property Sheet enhancements

Postby Furyofaseraph » April 11th, 2009, 11:49 pm

I'm sure that this would be a fairly low priority enhancement, but here goes anyways.

Why not make it so that you can control how many entires span a row (instead of just one per row - making a very long property sheet if you have lots of entries). It would be a good idea to separate the name of the property from the label of the property. Adding HTML codes to the labels (ie: bold, or center) would be a nice improvement, too :-)
"Remember: there once was a time in the evolution of all things that work, when it did not." ~ Leo McGarry (John Spencer)
Furyofaseraph
 
Posts: 28
Joined: March 29th, 2009, 11:03 pm
Location: NJ, USA

Postby fuhrmanator » July 22nd, 2009, 2:48 am

I'll add my $0.02 (canadian?)... the following are all related in a way.

It would be nice if properties in property sheets could also map to dynamic properties. I already thought this might work with the static property type "label only" using syntax like $propertyname$ but it doesn't.

From a software design perspective, property sheets are a view of a model (a la MVC) and so it's cool if you can have more than one view of the same model elements (properties). This already works to some degree in VASSAL with labels, messages and such. Property sheets rock because everything is in one handy place, so it'd be cool to be able to have other properties linked there.

Finally, I'd like to see a way to initialize property sheet values from a Piece that imports the property sheet from a Prototype. Unfortunately, it seems the only way to initialize values in property sheets is in the prototype itself, which makes them less "reusable" (i.e. one initialization does not fit all Pieces that use that prototype).
User avatar
fuhrmanator
 
Posts: 43
Joined: October 28th, 2008, 9:56 pm

Postby vbbartlett » July 29th, 2009, 1:48 am

Another feature that is needed is reporting at least that properties have changed. The Report Action on a piece doesn't work since it is fired before any properties are changed.
vbbartlett
 
Posts: 42
Joined: June 23rd, 2009, 8:29 pm

Property Sheet enhancements

Postby Brent Easton » July 29th, 2009, 2:37 am

Another feature that is needed is reporting at least that properties have
changed. The Report Action on a piece doesn't work since it is fired
before any properties are changed.

Is your Report Action trait before or after the Property Sheet trait? Try it the opposite of how you have it now.

B.


_______________________________________________
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: 3198
Joined: December 21st, 2007, 3:06 am
Location: Berry, NSW, Australia

Postby vbbartlett » July 29th, 2009, 4:20 am

Doesn't matter which order. I finally got into the code and found that the Trigger Action fires all actions. Labels only work because to displays a showinputdialog which suspends execution. The Property sheet is a window that is set visible. Thus there is no suspension of the event. It finishes all the actions and returns. At some point later the Property window is closed and the information is committed (if using that option)

I have looked and I don't see any other way other than to add a format string to the property sheet the fires when the contents are saved either each keystroke or apply or exit.
vbbartlett
 
Posts: 42
Joined: June 23rd, 2009, 8:29 pm

Postby vbbartlett » July 29th, 2009, 4:22 am

Oh in the process I found that labels on the figure which are associated with the properties are not properly updated display. At least until the figure is redrawn.

Since im in this code does it make sense to add these features?
vbbartlett
 
Posts: 42
Joined: June 23rd, 2009, 8:29 pm


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 3 guests