mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 13:17:00 -04:00
Use underscores instead of spaces for all internal names. And renamed some script functions at the same time.
* cannocial_name_form now outputs "_", where it used to use " " * this simplifies reflectio and scripting code, because now C++ names are also MSE internal names * added 'caption' property to fields. This is used instead of the name in NativeLookEditor, since the latter will now contain underscores. * renamed text related script functions for consistency, since we were touching that part of the code anyway.
This commit is contained in:
@@ -70,7 +70,7 @@ template <>
|
||||
intrusive_ptr<SymbolFilter> read_new<SymbolFilter>(Reader& reader) {
|
||||
// there must be a fill type specified
|
||||
String fill_type;
|
||||
reader.handle(_("fill type"), fill_type);
|
||||
reader.handle(_("fill_type"), fill_type);
|
||||
if (fill_type == _("solid")) return intrusive(new SolidFillSymbolFilter);
|
||||
else if (fill_type == _("linear gradient")) return intrusive(new LinearGradientSymbolFilter);
|
||||
else if (fill_type == _("radial gradient")) return intrusive(new RadialGradientSymbolFilter);
|
||||
|
||||
Reference in New Issue
Block a user