diff --git a/addons/svg_sprite/plugin.cfg b/addons/svg_sprite/plugin.cfg index 64532a0..4444618 100644 --- a/addons/svg_sprite/plugin.cfg +++ b/addons/svg_sprite/plugin.cfg @@ -3,5 +3,5 @@ name="SVGSprite" description="Rasterize svg dynamically" author="heppocogne" -version="2.3.2" +version="2.0.0" script="plugin.gd" diff --git a/addons/svg_sprite/svg_sprite.tscn b/addons/svg_sprite/svg_sprite.tscn deleted file mode 100644 index 98366db..0000000 --- a/addons/svg_sprite/svg_sprite.tscn +++ /dev/null @@ -1,4 +0,0 @@ -[gd_scene format=3 uid="uid://ciei173yd5dx3"] - -[node name="SVGSprite" type="SVGSprite"] -centered = true diff --git a/demo/demo.tscn b/demo/demo.tscn index 6398668..7f13f5a 100644 --- a/demo/demo.tscn +++ b/demo/demo.tscn @@ -1,25 +1,22 @@ -[gd_scene load_steps=3 format=3 uid="uid://bch56n5ivop8n"] +[gd_scene load_steps=2 format=3 uid="uid://bch56n5ivop8n"] [ext_resource type="Script" path="res://demo/demo.gd" id="1"] -[ext_resource type="PackedScene" uid="uid://ciei173yd5dx3" path="res://addons/svg_sprite/svg_sprite.tscn" id="2"] [node name="Demo" type="Node2D"] position = Vector2(512, 300) script = ExtResource("1") -[node name="SVGSprite" parent="." instance=ExtResource("2")] +[node name="SVGSprite" type="SVGSprite" parent="."] svg_file = "res://demo/icon.svg" -position = Vector2(100, -100) +position = Vector2(-100, -100) scale = Vector2(0.1, 0.1) -[node name="SVGSprite2" parent="." instance=ExtResource("2")] +[node name="SVGSprite2" type="SVGSprite" parent="."] svg_file = "res://demo/logo.svg" -flip_h = true -flip_v = true position = Vector2(0, 100) -scale = Vector2(0.25, 0.25) +scale = Vector2(0.5, 0.5) -[node name="SVGSprite3" parent="." instance=ExtResource("2")] +[node name="SVGSprite3" type="SVGSprite" parent="."] svg_file = "res://demo/icon_outlined.svg" -position = Vector2(-100, -100) +position = Vector2(100, -100) scale = Vector2(0.1, 0.1)