mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
Scripts depending on content_something are re-updating after updating the content properties
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@480 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -40,8 +40,9 @@ class ValueViewer : public StyleListener {
|
||||
inline const ValueP& getValue() const { return valueP; }
|
||||
|
||||
/// Prepare before drawing.
|
||||
/** Scripts are updated after preparing, allowing */
|
||||
virtual void prepare(RotatedDC& dc) {};
|
||||
/** Should return true if a content property has changed
|
||||
* Scripts are re-updated after preparing if they depend on content properties. */
|
||||
virtual bool prepare(RotatedDC& dc) { return false; };
|
||||
/// Draw this value
|
||||
virtual void draw(RotatedDC& dc) = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user