Create account / Log in

oldValue of global properties

Talk about module design ideas and techniques.

Moderators: Tim M, uckelman

oldValue of global properties

Postby AdamSzieberth » March 2nd, 2011, 7:25 am

Hi guys!

Is there an oldValue for a numeric global property to track changes in reports as for dynamic properties?
I tried $oldXXXX$ but it reported the new, actual value.
Or do I need to make a temporary property I copy all values in (with trigger action) before change and report?

Thanks,
Adam
User avatar
AdamSzieberth
 
Posts: 16
Joined: February 26th, 2011, 12:57 am

Re: [messages] [Module Design] oldValue of global properties

Postby Tim M » March 2nd, 2011, 11:53 am

You need to make a temporary

-----Original Message-----
From: messages-bounces@vassalengine.org
[mailto:messages-bounces@vassalengine.org] On Behalf Of AdamSzieberth
Sent: Wednesday, March 02, 2011 1:25 AM
To: messages@vassalengine.org
Subject: [messages] [Module Design] oldValue of global properties

Hi guys!

Is there an oldValue for a numeric global property to track changes in
reports as for dynamic properties?
I tried $oldXXXX$ but it reported the new, actual value.
Or do I need to make a temporary property I copy all values in (with
trigger action) before change and report?

Thanks,
Adam

_______________________________________________
Read this topic online here:
viewtopic.php?p=22039#p22039
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: 1777
Joined: December 8th, 2007, 12:22 pm
Location: Earth

Re: oldValue of global properties

Postby AdamSzieberth » April 3rd, 2011, 4:35 pm

A nameless toolbar button for the global property with report and a global hotkey trait for the gamepiece solves it.
User avatar
AdamSzieberth
 
Posts: 16
Joined: February 26th, 2011, 12:57 am


Return to Module Design

Who is online

Users browsing this forum: No registered users and 1 guest