mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 13:17:00 -04:00
Added script support for wxDateTime values:
- added ScriptDateTime type - added to_date function - added date formating support to to_string. - documented all of the above. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1348 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -25,6 +25,8 @@ template <> void GetDefaultMember::handle(const bool& v) { value = to_sc
|
||||
template <> void GetDefaultMember::handle(const tribool& v) { value = to_script((bool)v); }
|
||||
template <> void GetDefaultMember::handle(const Vector2D& v) { value = to_script(String::Format(_("(%.10lf,%.10lf)"), v.x, v.y)); }
|
||||
template <> void GetDefaultMember::handle(const Color& v) { value = to_script(v); }
|
||||
template <> void GetDefaultMember::handle(const AColor& v) { value = to_script(v); }
|
||||
template <> void GetDefaultMember::handle(const wxDateTime& v) { value = to_script(v); }
|
||||
void GetDefaultMember::handle(const ScriptValueP& v) { value = v; }
|
||||
void GetDefaultMember::handle(const ScriptP& v) { value = v; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user