mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 13:17:00 -04:00
tweaks
allow import_image to accept script images import_image and download_image no longer save the set or require it to have been saved once console panel now tries to output toJson() before falling back to toCode()
This commit is contained in:
@@ -62,6 +62,8 @@ inline static void set_container(Value* container, ScriptValueP& value, String k
|
||||
cvalue->value = value->toString();
|
||||
}
|
||||
else if (PackageChoiceValue* pvalue = dynamic_cast<PackageChoiceValue*>(container)) {
|
||||
String package_name = value->toString();
|
||||
while (package_name.starts_with(_("/"))) package_name = package_name.substr(1);
|
||||
pvalue->package_name = value->toString();
|
||||
}
|
||||
else if (ColorValue* cvalue = dynamic_cast<ColorValue*>(container)) {
|
||||
|
||||
Reference in New Issue
Block a user