Choice rendering now uses "style.image()" instead of "style.choice_images[value]";

Added script functions for working with multiple choice values;
Added in_context support for filter_rule;
Optimized toUpper/toLower because they are slow on windows (they use thread local storage and mutexes)

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@427 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-06-17 13:13:56 +00:00
parent 59d0aee4e7
commit 97e0e8d6d6
16 changed files with 325 additions and 49 deletions
+4 -4
View File
@@ -46,13 +46,13 @@ class Defaultable {
is_default = false;
return value;
}
/// Get access to the value, for changing it, don't change the defaultness
inline T& mutateDontChangeDefault() { return value; }
/// Is this value in the default state?
inline bool isDefault() const { return is_default; }
/// Set the defaultness to true
inline void makeDefault() { is_default = true; }
/// Set the defaultness to false
inline void unsetDefault() { is_default = false; }
/// Set the defaultness to d
inline void makeDefault(bool d = true) { is_default = d; }
/// Compare the values, ignore defaultness
/** used by scriptable to check for changes */