mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Added support for informational headings in native look editor.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@212 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include <data/field/image.hpp>
|
||||
#include <data/field/symbol.hpp>
|
||||
#include <data/field/color.hpp>
|
||||
#include <data/field/information.hpp>
|
||||
#include <util/error.hpp>
|
||||
|
||||
// ----------------------------------------------------------------------------- : Field
|
||||
@@ -69,6 +70,7 @@ shared_ptr<Field> read_new<Field>(Reader& reader) {
|
||||
else if (type == _("image")) return new_shared<ImageField>();
|
||||
else if (type == _("symbol")) return new_shared<SymbolField>();
|
||||
else if (type == _("color")) return new_shared<ColorField>();
|
||||
else if (type == _("info")) return new_shared<InfoField>();
|
||||
else {
|
||||
throw ParseError(_("Unsupported field type: '") + type + _("'"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user