Browse Source

:tada: Add tuto screenshot in the example slideshow

DricomDragon 1 year ago
parent
commit
26b756f121

+ 2 - 2
godot/example/example_slide_show.tscn

@@ -21,11 +21,11 @@ hide_slides = true
 [node name="1MainTitle" parent="Show" instance=ExtResource("3_d02bq")]
 [node name="1MainTitle" parent="Show" instance=ExtResource("3_d02bq")]
 
 
 [node name="2Explain" parent="Show" instance=ExtResource("4_bt0ir")]
 [node name="2Explain" parent="Show" instance=ExtResource("4_bt0ir")]
-position = Vector2(859, -33)
+position = Vector2(171, 464)
 scale = Vector2(0.8, 0.8)
 scale = Vector2(0.8, 0.8)
 
 
 [node name="3Cool" parent="Show" instance=ExtResource("5_h5p25")]
 [node name="3Cool" parent="Show" instance=ExtResource("5_h5p25")]
-position = Vector2(451, 486)
+position = Vector2(644, 436)
 scale = Vector2(0.2, 0.2)
 scale = Vector2(0.2, 0.2)
 always_visible = true
 always_visible = true
 
 

BIN
godot/example/screenshots/slide-show-plugin-example-setup.png


+ 34 - 0
godot/example/screenshots/slide-show-plugin-example-setup.png.import

@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dynefxwpn4vpf"
+path="res://.godot/imported/slide-show-plugin-example-setup.png-3efa715ab5465bb99ecc2dcb663e719e.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://example/screenshots/slide-show-plugin-example-setup.png"
+dest_files=["res://.godot/imported/slide-show-plugin-example-setup.png-3efa715ab5465bb99ecc2dcb663e719e.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+compress/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=false
+mipmaps/limit=-1
+roughness/mode=0
+roughness/src_normal=""
+process/fix_alpha_border=true
+process/premult_alpha=false
+process/normal_map_invert_y=false
+process/hdr_as_srgb=false
+process/hdr_clamp_exposure=false
+process/size_limit=0
+detect_3d/compress_to=1

+ 24 - 5
godot/example/slides/1MainTitle.tscn

@@ -1,16 +1,35 @@
-[gd_scene load_steps=2 format=3 uid="uid://bs1nyjde3oghi"]
+[gd_scene load_steps=4 format=3 uid="uid://bs1nyjde3oghi"]
 
 
 [ext_resource type="Script" path="res://addons/slide_show/projector/slide/Slide.gd" id="1_f7yng"]
 [ext_resource type="Script" path="res://addons/slide_show/projector/slide/Slide.gd" id="1_f7yng"]
+[ext_resource type="Texture2D" uid="uid://dkodwtrw1tn0g" path="res://icon.svg" id="2_x18hq"]
+
+[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_sb3f4"]
+bg_color = Color(1, 1, 1, 1)
+corner_radius_top_left = 50
+corner_radius_top_right = 50
+corner_radius_bottom_right = 50
+corner_radius_bottom_left = 50
 
 
 [node name="1MainTitle" type="Node2D"]
 [node name="1MainTitle" type="Node2D"]
 script = ExtResource("1_f7yng")
 script = ExtResource("1_f7yng")
 
 
 [node name="Label" type="Label" parent="."]
 [node name="Label" type="Label" parent="."]
-offset_left = 101.0
-offset_top = 148.0
-offset_right = 1006.0
-offset_bottom = 542.0
+offset_left = 110.0
+offset_top = -4.0
+offset_right = 1015.0
+offset_bottom = 390.0
 theme_override_font_sizes/font_size = 142
 theme_override_font_sizes/font_size = 142
 text = "Hello GD
 text = "Hello GD
 Slide Show"
 Slide Show"
 horizontal_alignment = 1
 horizontal_alignment = 1
+
+[node name="Panel" type="Panel" parent="."]
+offset_left = 442.0
+offset_top = 384.0
+offset_right = 705.0
+offset_bottom = 623.0
+theme_override_styles/panel = SubResource("StyleBoxFlat_sb3f4")
+
+[node name="Sprite2D" type="Sprite2D" parent="."]
+position = Vector2(570, 503)
+texture = ExtResource("2_x18hq")

+ 11 - 6
godot/example/slides/2Explain.tscn

@@ -1,16 +1,17 @@
-[gd_scene load_steps=2 format=3 uid="uid://fv16fxt420pa"]
+[gd_scene load_steps=3 format=3 uid="uid://fv16fxt420pa"]
 
 
 [ext_resource type="Script" path="res://addons/slide_show/projector/slide/Slide.gd" id="1_7dhkj"]
 [ext_resource type="Script" path="res://addons/slide_show/projector/slide/Slide.gd" id="1_7dhkj"]
+[ext_resource type="Texture2D" uid="uid://dynefxwpn4vpf" path="res://example/screenshots/slide-show-plugin-example-setup.png" id="2_b5u6h"]
 
 
 [node name="2Explain" type="Node2D"]
 [node name="2Explain" type="Node2D"]
 script = ExtResource("1_7dhkj")
 script = ExtResource("1_7dhkj")
 
 
 [node name="Label" type="Label" parent="."]
 [node name="Label" type="Label" parent="."]
-offset_left = 76.0
-offset_top = 145.0
-offset_right = 1086.0
-offset_bottom = 539.0
-theme_override_font_sizes/font_size = 42
+offset_left = 14.0
+offset_top = 271.0
+offset_right = 941.0
+offset_bottom = 698.0
+theme_override_font_sizes/font_size = 37
 text = "1. Import the plugin
 text = "1. Import the plugin
 2. Create your main scene
 2. Create your main scene
 3. Instantiate a Focus
 3. Instantiate a Focus
@@ -18,3 +19,7 @@ text = "1. Import the plugin
 5. Create your own Slides by creating Scene based 
 5. Create your own Slides by creating Scene based 
 on Slide node
 on Slide node
 6. Instantiate your slides as children of Show"
 6. Instantiate your slides as children of Show"
+
+[node name="Sprite2D" type="Sprite2D" parent="."]
+position = Vector2(973, 200)
+texture = ExtResource("2_b5u6h")