support for masks in choice styles

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@148 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-12-22 19:29:51 +00:00
parent cf39deec24
commit 3eece6eb61
6 changed files with 22 additions and 4 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ String TextValue::toString() const {
}
bool TextValue::update(Context& ctx) {
Value::update(ctx);
WITH_DYNAMIC_ARG(last_update_age, last_update.get());
WITH_DYNAMIC_ARG(last_update_age, value.isDefault() ? 0 : last_update.get());
bool change = field().default_script.invokeOnDefault(ctx, value)
| field(). script.invokeOn(ctx, value);
if (change) last_update.update();