mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user