mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Added dummy keyword panel; fixed directory finding; added more controls to style panel
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@86 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -72,3 +72,34 @@ template <> void GetDefaultMember::handle(const OptionalScript& os) {
|
||||
handle(script_nil);
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------- : StringScript
|
||||
|
||||
const String& StringScript::get() const {
|
||||
return unparsed;
|
||||
}
|
||||
|
||||
void StringScript::set(const String& s) {
|
||||
unparsed = s;
|
||||
script = ::parse(unparsed, true);
|
||||
}
|
||||
|
||||
template <> void Reader::handle(StringScript& os) {
|
||||
handle(os.unparsed);
|
||||
os.parse(*this, true);
|
||||
}
|
||||
|
||||
// same as OptionalScript
|
||||
|
||||
template <> void Writer::handle(const StringScript& os) {
|
||||
handle(os.unparsed);
|
||||
}
|
||||
|
||||
template <> void GetDefaultMember::handle(const StringScript& os) {
|
||||
// reflect as the script itself
|
||||
if (os.script) {
|
||||
handle(os.script);
|
||||
} else {
|
||||
handle(script_nil);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user