From 891e6b01d1c5e5200f45faf11145e46ed26e1402 Mon Sep 17 00:00:00 2001 From: yiyuezhuo Date: Sun, 8 May 2022 01:17:44 +0800 Subject: [PATCH] Check sample.tscn as a upload & download example. --- README.md | 9 ++++++--- addons/HTML5FileExchange/Sample.gd => Sample.gd | 0 project.godot | 2 +- addons/HTML5FileExchange/sample.tscn => sample.tscn | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) rename addons/HTML5FileExchange/Sample.gd => Sample.gd (100%) rename addons/HTML5FileExchange/sample.tscn => sample.tscn (92%) diff --git a/README.md b/README.md index bdd2590..b9b82af 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,11 @@ -# HTML5 File Exchange for Godot 3.2 +# HTML5 File Exchange for Godot 3.4 ## Usage +Check sample.tscn as a upload & download example. + +### Without sample + * Copy addons to your project. * Enable the plugin. (A `HTML5File` singleton should be added into autoload list). -* Add a HTML5 export item to enable HTML5 debugging option. -* Check sample.tscn for usage. \ No newline at end of file +* If the HTML5 debugging option is not enabled, add a HTML5 export item. \ No newline at end of file diff --git a/addons/HTML5FileExchange/Sample.gd b/Sample.gd similarity index 100% rename from addons/HTML5FileExchange/Sample.gd rename to Sample.gd diff --git a/project.godot b/project.godot index 251c54a..990fd2d 100644 --- a/project.godot +++ b/project.godot @@ -11,7 +11,7 @@ config_version=4 [application] config/name="HTML5-File-Exchange-for-Godot" -run/main_scene="res://addons/HTML5FileExchange/sample.tscn" +run/main_scene="res://sample.tscn" config/icon="res://icon.png" [autoload] diff --git a/addons/HTML5FileExchange/sample.tscn b/sample.tscn similarity index 92% rename from addons/HTML5FileExchange/sample.tscn rename to sample.tscn index b3c389a..1f915c9 100644 --- a/addons/HTML5FileExchange/sample.tscn +++ b/sample.tscn @@ -1,6 +1,6 @@ [gd_scene load_steps=2 format=2] -[ext_resource path="res://addons/HTML5FileExchange/Sample.gd" type="Script" id=1] +[ext_resource path="res://Sample.gd" type="Script" id=1] [node name="Control" type="Control"] anchor_right = 1.0