Legacy import hat guy

This commit is contained in:
CenTdemeern1 2025-04-30 23:45:56 +02:00
parent 47b8e556c1
commit b478843a03
2 changed files with 256 additions and 139 deletions

View file

@ -50,7 +50,7 @@ static func from_legacy_dict(data: Dictionary) -> SpriteData:
var error = image.load_png_from_buffer(Marshalls.base64_to_raw(data["imageData"]))
if error != OK:
return null
sprite.image = ImageTexture.create_from_image(image)
sprite.offset = legacy_get_from_string(data, "offset", sprite.offset)
sprite.pos = legacy_get_from_string(data, "pos", sprite.pos)