diff --git a/images/checkout.svg.import b/images/checkout.svg.import new file mode 100644 index 0000000..17b0b7d --- /dev/null +++ b/images/checkout.svg.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/checkout.svg-9d9f3c5ff5668245d8bdf2826f9e46f6.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://images/checkout.svg" +dest_files=[ "res://.import/checkout.svg-9d9f3c5ff5668245d8bdf2826f9e46f6.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/images/commit.svg b/images/commit.svg new file mode 100644 index 0000000..15ea81e --- /dev/null +++ b/images/commit.svg @@ -0,0 +1,79 @@ + + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/images/commit.svg.import b/images/commit.svg.import new file mode 100644 index 0000000..54316cf --- /dev/null +++ b/images/commit.svg.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/commit.svg-6ec3c9ce6fe011df527371878fcfe9b8.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://images/commit.svg" +dest_files=[ "res://.import/commit.svg-6ec3c9ce6fe011df527371878fcfe9b8.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/images/file.svg b/images/file.svg new file mode 100644 index 0000000..7ef3893 --- /dev/null +++ b/images/file.svg @@ -0,0 +1,169 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/images/file.svg.import b/images/file.svg.import new file mode 100644 index 0000000..12aa5dd --- /dev/null +++ b/images/file.svg.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/file.svg-7ab17abba6f9f631c0704e62c7804548.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://images/file.svg" +dest_files=[ "res://.import/file.svg-7ab17abba6f9f631c0704e62c7804548.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/images/head.svg b/images/head.svg new file mode 100644 index 0000000..fe26c7f --- /dev/null +++ b/images/head.svg @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + diff --git a/images/head.svg.import b/images/head.svg.import new file mode 100644 index 0000000..2a5c3cf --- /dev/null +++ b/images/head.svg.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/head.svg-ae0e309e573aee7fb692167423462810.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://images/head.svg" +dest_files=[ "res://.import/head.svg-ae0e309e573aee7fb692167423462810.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/images/ref.svg b/images/ref.svg new file mode 100644 index 0000000..f407c93 --- /dev/null +++ b/images/ref.svg @@ -0,0 +1,235 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/images/ref.svg.import b/images/ref.svg.import new file mode 100644 index 0000000..480c664 --- /dev/null +++ b/images/ref.svg.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/ref.svg-aa67d6a878f7082d8758514d5b9eac2a.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://images/ref.svg" +dest_files=[ "res://.import/ref.svg-aa67d6a878f7082d8758514d5b9eac2a.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/images/remote.svg b/images/remote.svg new file mode 100644 index 0000000..c201ed6 --- /dev/null +++ b/images/remote.svg @@ -0,0 +1,82 @@ + + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/images/remote.svg.import b/images/remote.svg.import new file mode 100644 index 0000000..762dceb --- /dev/null +++ b/images/remote.svg.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/remote.svg-7efe0b92e90a2ce57bc047939daa71f2.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://images/remote.svg" +dest_files=[ "res://.import/remote.svg-7efe0b92e90a2ce57bc047939daa71f2.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/images/string.svg b/images/string.svg new file mode 100644 index 0000000..ea5edef --- /dev/null +++ b/images/string.svg @@ -0,0 +1,94 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + diff --git a/images/string.svg.import b/images/string.svg.import new file mode 100644 index 0000000..97a8d20 --- /dev/null +++ b/images/string.svg.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/string.svg-c6f6a214f649f47a30ca1483c0b48d14.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://images/string.svg" +dest_files=[ "res://.import/string.svg-c6f6a214f649f47a30ca1483c0b48d14.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/resources/ref.svg.import b/resources/ref.svg.import new file mode 100644 index 0000000..6099cea --- /dev/null +++ b/resources/ref.svg.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/ref.svg-929118b775267deea6efa13f0380523f.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://resources/ref.svg" +dest_files=[ "res://.import/ref.svg-929118b775267deea6efa13f0380523f.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/scenes/card.gd b/scenes/card.gd index a06335a..a09d231 100644 --- a/scenes/card.gd +++ b/scenes/card.gd @@ -89,7 +89,19 @@ func _mouse_exited(): func set_command(new_command): command = new_command - $Label.text = command + var commands = new_command.split("[", true, 1) + var args = '' + if commands.size() > 1: + args = commands[1].replace("]", "") + args = args.replace(", ", "/") + args = args.replace("ref", " [img=20]images/ref.svg[/img] ") + args = args.replace("commit", " [img=20]images/commit.svg[/img] ") + args = args.replace("string", " [img=20]images/string.svg[/img] ") + args = args.replace("head", " [img=20]images/head.svg[/img] ") + args = args.replace("file", " [img=20]images/file.svg[/img] ") + args = args.replace("remote", " [img=20]images/remote.svg[/img] ") + $Label.bbcode_text = commands[0] + args + #$Label.text = command func set_description(new_description): description = new_description diff --git a/scenes/card.tscn b/scenes/card.tscn index e24e2a0..6f89db9 100644 --- a/scenes/card.tscn +++ b/scenes/card.tscn @@ -64,15 +64,14 @@ position = Vector2( 0, -145.336 ) position = Vector2( -6.10352e-05, -0.641296 ) shape = SubResource( 2 ) -[node name="Label" type="Label" parent="."] -margin_left = -89.0 +[node name="Label" type="RichTextLabel" parent="."] +margin_left = -91.0 margin_top = -279.0 -margin_right = 85.0 +margin_right = 95.0 margin_bottom = -189.0 -custom_fonts/font = ExtResource( 1 ) -custom_colors/font_color = Color( 0, 0, 0, 1 ) -text = "Name" -autowrap = true +mouse_filter = 2 +custom_colors/default_color = Color( 0, 0, 0, 1 ) +bbcode_enabled = true __meta__ = { "_edit_use_anchors_": false }