mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 21:06:59 -04:00
use font settings for drawing multiple choice text labels, spacing and direction are scriptable.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1298 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#include <gfx/color.hpp>
|
||||
|
||||
Alignment from_string(const String&);
|
||||
bool parse_enum(const String&,Direction&);
|
||||
|
||||
DECLARE_TYPEOF_COLLECTION(ScriptParseError);
|
||||
|
||||
@@ -30,6 +31,7 @@ void store(const ScriptValueP& val, Defaultable<String>& var) { var.assign(*val)
|
||||
void store(const ScriptValueP& val, Defaultable<Color>& var) { var.assign((AColor)*val); }
|
||||
void store(const ScriptValueP& val, Defaultable<AColor>& var) { var.assign(*val); }
|
||||
void store(const ScriptValueP& val, Alignment& var) { var = from_string(val->toString()); }
|
||||
void store(const ScriptValueP& val, Direction& var) { parse_enum(val->toString(),var); }
|
||||
|
||||
// ----------------------------------------------------------------------------- : OptionalScript
|
||||
|
||||
|
||||
Reference in New Issue
Block a user