Skip to content

Commit

Permalink
Update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
heppocogne committed Mar 5, 2023
1 parent 5f19764 commit 1467879
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
2 changes: 1 addition & 1 deletion addons/svg_sprite/plugin.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
name="SVGSprite"
description="Rasterize svg dynamically"
author="heppocogne"
version="2.3.2"
version="2.0.0"
script="plugin.gd"
4 changes: 0 additions & 4 deletions addons/svg_sprite/svg_sprite.tscn

This file was deleted.

17 changes: 7 additions & 10 deletions demo/demo.tscn
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 1467879

Please sign in to comment.