diff --git a/Example/Action3D/MainGame.tscn b/Example/OldTest/Action3D/MainGame.tscn similarity index 93% rename from Example/Action3D/MainGame.tscn rename to Example/OldTest/Action3D/MainGame.tscn index 34ba4cd..4a5e339 100644 --- a/Example/Action3D/MainGame.tscn +++ b/Example/OldTest/Action3D/MainGame.tscn @@ -1,9 +1,9 @@ [gd_scene load_steps=19 format=3 uid="uid://05atvgqt8tku"] -[ext_resource type="Texture2D" uid="uid://ss8dh8aaqc4w" path="res://Example/Action3D/SkyBox/lakeside.jpg" id="1_akq3m"] +[ext_resource type="Texture2D" uid="uid://ss8dh8aaqc4w" path="res://Example/OldTest/Action3D/SkyBox/lakeside.jpg" id="1_akq3m"] [ext_resource type="Texture2D" uid="uid://31r216hix0wk" path="res://icon.svg" id="2_b66wh"] -[ext_resource type="Script" path="res://Example/Action3D/Script/ActionPlayer.cs" id="2_c0s4j"] -[ext_resource type="Script" path="res://Example/Action3D/Script/ActionCamera.cs" id="3_ue0e3"] +[ext_resource type="Script" path="res://Example/OldTest/Action3D/Script/ActionPlayer.cs" id="2_c0s4j"] +[ext_resource type="Script" path="res://Example/OldTest/Action3D/Script/ActionCamera.cs" id="3_ue0e3"] [sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_hbme1"] panorama = ExtResource("1_akq3m") diff --git a/Example/Action3D/Script/ActionCamera.cs b/Example/OldTest/Action3D/Script/ActionCamera.cs similarity index 100% rename from Example/Action3D/Script/ActionCamera.cs rename to Example/OldTest/Action3D/Script/ActionCamera.cs diff --git a/Example/Action3D/Script/ActionPlayer.cs b/Example/OldTest/Action3D/Script/ActionPlayer.cs similarity index 100% rename from Example/Action3D/Script/ActionPlayer.cs rename to Example/OldTest/Action3D/Script/ActionPlayer.cs diff --git a/Example/Action3D/SkyBox/lakeside.jpg b/Example/OldTest/Action3D/SkyBox/lakeside.jpg similarity index 100% rename from Example/Action3D/SkyBox/lakeside.jpg rename to Example/OldTest/Action3D/SkyBox/lakeside.jpg diff --git a/Example/Action3D/SkyBox/lakeside.jpg.import b/Example/OldTest/Action3D/SkyBox/lakeside.jpg.import similarity index 58% rename from Example/Action3D/SkyBox/lakeside.jpg.import rename to Example/OldTest/Action3D/SkyBox/lakeside.jpg.import index d27376e..6d513af 100644 --- a/Example/Action3D/SkyBox/lakeside.jpg.import +++ b/Example/OldTest/Action3D/SkyBox/lakeside.jpg.import @@ -3,8 +3,8 @@ importer="texture" type="CompressedTexture2D" uid="uid://ss8dh8aaqc4w" -path.s3tc="res://.godot/imported/lakeside.jpg-33a4031d53286dbc1f7dd66477cda464.s3tc.ctex" -path.etc2="res://.godot/imported/lakeside.jpg-33a4031d53286dbc1f7dd66477cda464.etc2.ctex" +path.s3tc="res://.godot/imported/lakeside.jpg-73a51a0ded8953c63fe1a3672086bc03.s3tc.ctex" +path.etc2="res://.godot/imported/lakeside.jpg-73a51a0ded8953c63fe1a3672086bc03.etc2.ctex" metadata={ "imported_formats": ["s3tc_bptc", "etc2_astc"], "vram_texture": true @@ -12,8 +12,8 @@ metadata={ [deps] -source_file="res://Example/Action3D/SkyBox/lakeside.jpg" -dest_files=["res://.godot/imported/lakeside.jpg-33a4031d53286dbc1f7dd66477cda464.s3tc.ctex", "res://.godot/imported/lakeside.jpg-33a4031d53286dbc1f7dd66477cda464.etc2.ctex"] +source_file="res://Example/OldTest/Action3D/SkyBox/lakeside.jpg" +dest_files=["res://.godot/imported/lakeside.jpg-73a51a0ded8953c63fe1a3672086bc03.s3tc.ctex", "res://.godot/imported/lakeside.jpg-73a51a0ded8953c63fe1a3672086bc03.etc2.ctex"] [params] diff --git a/Example/Gateway/Gateway.tscn b/Example/OldTest/Gateway/Gateway.tscn similarity index 80% rename from Example/Gateway/Gateway.tscn rename to Example/OldTest/Gateway/Gateway.tscn index 29e586e..6455807 100644 --- a/Example/Gateway/Gateway.tscn +++ b/Example/OldTest/Gateway/Gateway.tscn @@ -1,9 +1,9 @@ [gd_scene load_steps=6 format=3 uid="uid://hp4ae14r3hpm"] -[ext_resource type="Script" path="res://Example/Gateway/Script/View/ViewGateway.cs" id="1_tas7d"] -[ext_resource type="Script" path="res://Example/Gateway/Script/View/ViewTcpGateway.cs" id="2_ct4oh"] -[ext_resource type="Script" path="res://Example/Gateway/Script/View/ViewBacNetGateway.cs" id="3_ip8nj"] -[ext_resource type="Script" path="res://Example/Gateway/Script/View/ViewBacnetHttpServer.cs" id="4_plubp"] +[ext_resource type="Script" path="res://Example/OldTest/Gateway/Script/View/ViewGateway.cs" id="1_tas7d"] +[ext_resource type="Script" path="res://Example/OldTest/Gateway/Script/View/ViewTcpGateway.cs" id="2_ct4oh"] +[ext_resource type="Script" path="res://Example/OldTest/Gateway/Script/View/ViewBacNetGateway.cs" id="3_ip8nj"] +[ext_resource type="Script" path="res://Example/OldTest/Gateway/Script/View/ViewBacnetHttpServer.cs" id="4_plubp"] [ext_resource type="FontFile" uid="uid://b1atsgy4xkk7d" path="res://Font/SourceHanSansCN-Regular.otf" id="5_q4lsg"] [node name="Gateway" type="Control"] diff --git a/Example/Gateway/GatewayManual/BacnetGatewayManual_CN.md b/Example/OldTest/Gateway/GatewayManual/BacnetGatewayManual_CN.md similarity index 100% rename from Example/Gateway/GatewayManual/BacnetGatewayManual_CN.md rename to Example/OldTest/Gateway/GatewayManual/BacnetGatewayManual_CN.md diff --git a/Example/Gateway/ModbusGateway.tscn b/Example/OldTest/Gateway/ModbusGateway.tscn similarity index 78% rename from Example/Gateway/ModbusGateway.tscn rename to Example/OldTest/Gateway/ModbusGateway.tscn index 00ce914..f50a11e 100644 --- a/Example/Gateway/ModbusGateway.tscn +++ b/Example/OldTest/Gateway/ModbusGateway.tscn @@ -1,6 +1,6 @@ [gd_scene load_steps=2 format=3 uid="uid://c8vhi8ojdtjnb"] -[ext_resource type="Script" path="res://Example/Gateway/Script/View/ViewModbusGateway.cs" id="1_34uaa"] +[ext_resource type="Script" path="res://Example/OldTest/Gateway/Script/View/ViewModbusGateway.cs" id="1_34uaa"] [node name="ModbusGateway" type="Control"] layout_mode = 3 diff --git a/Example/Gateway/Script/Data/DataBacNetGatewaySetting.cs b/Example/OldTest/Gateway/Script/Data/DataBacNetGatewaySetting.cs similarity index 100% rename from Example/Gateway/Script/Data/DataBacNetGatewaySetting.cs rename to Example/OldTest/Gateway/Script/Data/DataBacNetGatewaySetting.cs diff --git a/Example/Gateway/Script/Data/DataGatewayInfo.cs b/Example/OldTest/Gateway/Script/Data/DataGatewayInfo.cs similarity index 100% rename from Example/Gateway/Script/Data/DataGatewayInfo.cs rename to Example/OldTest/Gateway/Script/Data/DataGatewayInfo.cs diff --git a/Example/Gateway/Script/Data/DataModbusGatewaySettings.cs b/Example/OldTest/Gateway/Script/Data/DataModbusGatewaySettings.cs similarity index 100% rename from Example/Gateway/Script/Data/DataModbusGatewaySettings.cs rename to Example/OldTest/Gateway/Script/Data/DataModbusGatewaySettings.cs diff --git a/Example/Gateway/Script/Data/DataTcpGatewaySetting.cs b/Example/OldTest/Gateway/Script/Data/DataTcpGatewaySetting.cs similarity index 100% rename from Example/Gateway/Script/Data/DataTcpGatewaySetting.cs rename to Example/OldTest/Gateway/Script/Data/DataTcpGatewaySetting.cs diff --git a/Example/Gateway/Script/Interface/IGateway.cs b/Example/OldTest/Gateway/Script/Interface/IGateway.cs similarity index 100% rename from Example/Gateway/Script/Interface/IGateway.cs rename to Example/OldTest/Gateway/Script/Interface/IGateway.cs diff --git a/Example/Gateway/Script/OutData/ValueGenerator.cs b/Example/OldTest/Gateway/Script/OutData/ValueGenerator.cs similarity index 100% rename from Example/Gateway/Script/OutData/ValueGenerator.cs rename to Example/OldTest/Gateway/Script/OutData/ValueGenerator.cs diff --git a/Example/Gateway/Script/View/ViewBacNetGateway.cs b/Example/OldTest/Gateway/Script/View/ViewBacNetGateway.cs similarity index 100% rename from Example/Gateway/Script/View/ViewBacNetGateway.cs rename to Example/OldTest/Gateway/Script/View/ViewBacNetGateway.cs diff --git a/Example/Gateway/Script/View/ViewBacnetHttpServer.cs b/Example/OldTest/Gateway/Script/View/ViewBacnetHttpServer.cs similarity index 100% rename from Example/Gateway/Script/View/ViewBacnetHttpServer.cs rename to Example/OldTest/Gateway/Script/View/ViewBacnetHttpServer.cs diff --git a/Example/Gateway/Script/View/ViewGateway.cs b/Example/OldTest/Gateway/Script/View/ViewGateway.cs similarity index 100% rename from Example/Gateway/Script/View/ViewGateway.cs rename to Example/OldTest/Gateway/Script/View/ViewGateway.cs diff --git a/Example/Gateway/Script/View/ViewModbusGateway.cs b/Example/OldTest/Gateway/Script/View/ViewModbusGateway.cs similarity index 100% rename from Example/Gateway/Script/View/ViewModbusGateway.cs rename to Example/OldTest/Gateway/Script/View/ViewModbusGateway.cs diff --git a/Example/Gateway/Script/View/ViewTcpGateway.cs b/Example/OldTest/Gateway/Script/View/ViewTcpGateway.cs similarity index 100% rename from Example/Gateway/Script/View/ViewTcpGateway.cs rename to Example/OldTest/Gateway/Script/View/ViewTcpGateway.cs diff --git a/Example/ModbusDebugTool/Component/modbus_item.tscn b/Example/OldTest/ModbusDebugTool/Component/modbus_item.tscn similarity index 97% rename from Example/ModbusDebugTool/Component/modbus_item.tscn rename to Example/OldTest/ModbusDebugTool/Component/modbus_item.tscn index 73338e8..90a4071 100644 --- a/Example/ModbusDebugTool/Component/modbus_item.tscn +++ b/Example/OldTest/ModbusDebugTool/Component/modbus_item.tscn @@ -1,6 +1,6 @@ [gd_scene load_steps=3 format=3 uid="uid://c8kk7iegicmdr"] -[ext_resource type="Script" path="res://Example/ModbusDebugTool/Script/ViewModbusItem.cs" id="1_ih8g3"] +[ext_resource type="Script" path="res://Example/OldTest/ModbusDebugTool/Script/ViewModbusItem.cs" id="1_ih8g3"] [ext_resource type="FontFile" uid="uid://b1atsgy4xkk7d" path="res://Font/SourceHanSansCN-Regular.otf" id="1_upshn"] [node name="ModbusItem" type="Control"] diff --git a/Example/ModbusDebugTool/Script/DataModbusItem.cs b/Example/OldTest/ModbusDebugTool/Script/DataModbusItem.cs similarity index 100% rename from Example/ModbusDebugTool/Script/DataModbusItem.cs rename to Example/OldTest/ModbusDebugTool/Script/DataModbusItem.cs diff --git a/Example/ModbusDebugTool/Script/ViewEdit.cs b/Example/OldTest/ModbusDebugTool/Script/ViewEdit.cs similarity index 100% rename from Example/ModbusDebugTool/Script/ViewEdit.cs rename to Example/OldTest/ModbusDebugTool/Script/ViewEdit.cs diff --git a/Example/ModbusDebugTool/Script/ViewMenu.cs b/Example/OldTest/ModbusDebugTool/Script/ViewMenu.cs similarity index 100% rename from Example/ModbusDebugTool/Script/ViewMenu.cs rename to Example/OldTest/ModbusDebugTool/Script/ViewMenu.cs diff --git a/Example/ModbusDebugTool/Script/ViewMessage.cs b/Example/OldTest/ModbusDebugTool/Script/ViewMessage.cs similarity index 100% rename from Example/ModbusDebugTool/Script/ViewMessage.cs rename to Example/OldTest/ModbusDebugTool/Script/ViewMessage.cs diff --git a/Example/ModbusDebugTool/Script/ViewModbusItem.cs b/Example/OldTest/ModbusDebugTool/Script/ViewModbusItem.cs similarity index 100% rename from Example/ModbusDebugTool/Script/ViewModbusItem.cs rename to Example/OldTest/ModbusDebugTool/Script/ViewModbusItem.cs diff --git a/Example/ModbusDebugTool/Script/ViewSettings.cs b/Example/OldTest/ModbusDebugTool/Script/ViewSettings.cs similarity index 100% rename from Example/ModbusDebugTool/Script/ViewSettings.cs rename to Example/OldTest/ModbusDebugTool/Script/ViewSettings.cs diff --git a/Example/ModbusDebugTool/TestModbus.tscn b/Example/OldTest/ModbusDebugTool/TestModbus.tscn similarity index 95% rename from Example/ModbusDebugTool/TestModbus.tscn rename to Example/OldTest/ModbusDebugTool/TestModbus.tscn index 352b645..3c9ca15 100644 --- a/Example/ModbusDebugTool/TestModbus.tscn +++ b/Example/OldTest/ModbusDebugTool/TestModbus.tscn @@ -1,11 +1,11 @@ [gd_scene load_steps=7 format=3 uid="uid://qo2w16ececmu"] -[ext_resource type="Script" path="res://Example/ModbusDebugTool/Script/ViewMenu.cs" id="1_7ubyu"] +[ext_resource type="Script" path="res://Example/OldTest/ModbusDebugTool/Script/ViewMenu.cs" id="1_7ubyu"] [ext_resource type="FontFile" uid="uid://b1atsgy4xkk7d" path="res://Font/SourceHanSansCN-Regular.otf" id="1_tw1qu"] -[ext_resource type="PackedScene" uid="uid://c8kk7iegicmdr" path="res://Example/ModbusDebugTool/Component/modbus_item.tscn" id="3_c8jeq"] -[ext_resource type="Script" path="res://Example/ModbusDebugTool/Script/ViewEdit.cs" id="4_smsvf"] -[ext_resource type="Script" path="res://Example/ModbusDebugTool/Script/ViewMessage.cs" id="5_8s6lk"] -[ext_resource type="Script" path="res://Example/ModbusDebugTool/Script/ViewSettings.cs" id="6_38tri"] +[ext_resource type="PackedScene" uid="uid://c8kk7iegicmdr" path="res://Example/OldTest/ModbusDebugTool/Component/modbus_item.tscn" id="3_c8jeq"] +[ext_resource type="Script" path="res://Example/OldTest/ModbusDebugTool/Script/ViewEdit.cs" id="4_smsvf"] +[ext_resource type="Script" path="res://Example/OldTest/ModbusDebugTool/Script/ViewMessage.cs" id="5_8s6lk"] +[ext_resource type="Script" path="res://Example/OldTest/ModbusDebugTool/Script/ViewSettings.cs" id="6_38tri"] [node name="Menu" type="Control"] layout_mode = 3 diff --git a/Example/SystemExamples/ItemList/HPPotion.tres b/Example/OldTest/SystemExamples/ItemList/HPPotion.tres similarity index 54% rename from Example/SystemExamples/ItemList/HPPotion.tres rename to Example/OldTest/SystemExamples/ItemList/HPPotion.tres index d57c54a..a09bfde 100644 --- a/Example/SystemExamples/ItemList/HPPotion.tres +++ b/Example/OldTest/SystemExamples/ItemList/HPPotion.tres @@ -1,6 +1,6 @@ [gd_resource type="Resource" load_steps=2 format=3 uid="uid://bhsavl0d80s6j"] -[ext_resource type="Script" path="res://Example/SystemExamples/PlayerStorage/Script/DataStorageItem.cs" id="1_j773b"] +[ext_resource type="Script" path="res://Example/OldTest/SystemExamples/PlayerStorage/Script/DataStorageItem.cs" id="1_j773b"] [resource] script = ExtResource("1_j773b") diff --git a/Example/SystemExamples/ItemList/ItemList.CSV.import b/Example/OldTest/SystemExamples/ItemList/ItemList.CSV.import similarity index 100% rename from Example/SystemExamples/ItemList/ItemList.CSV.import rename to Example/OldTest/SystemExamples/ItemList/ItemList.CSV.import diff --git a/Example/SystemExamples/ItemList/ItemList.json b/Example/OldTest/SystemExamples/ItemList/ItemList.json similarity index 100% rename from Example/SystemExamples/ItemList/ItemList.json rename to Example/OldTest/SystemExamples/ItemList/ItemList.json diff --git a/Example/SystemExamples/ItemList/ItemList.txt b/Example/OldTest/SystemExamples/ItemList/ItemList.txt similarity index 100% rename from Example/SystemExamples/ItemList/ItemList.txt rename to Example/OldTest/SystemExamples/ItemList/ItemList.txt diff --git a/Example/SystemExamples/PlayerStorage/PlayerStorage.tscn b/Example/OldTest/SystemExamples/PlayerStorage/PlayerStorage.tscn similarity index 67% rename from Example/SystemExamples/PlayerStorage/PlayerStorage.tscn rename to Example/OldTest/SystemExamples/PlayerStorage/PlayerStorage.tscn index fb8d2b5..3f9207f 100644 --- a/Example/SystemExamples/PlayerStorage/PlayerStorage.tscn +++ b/Example/OldTest/SystemExamples/PlayerStorage/PlayerStorage.tscn @@ -1,6 +1,6 @@ [gd_scene load_steps=2 format=3 uid="uid://tee7nc525si7"] -[ext_resource type="Script" path="res://Example/SystemExamples/PlayerStorage/Script/ViewStorage.cs" id="1_goow2"] +[ext_resource type="Script" path="res://Example/OldTest/SystemExamples/PlayerStorage/Script/ViewStorage.cs" id="1_goow2"] [node name="PlayerStorage" type="Control"] layout_mode = 3 diff --git a/Example/SystemExamples/PlayerStorage/Script/DataStorageItem.cs b/Example/OldTest/SystemExamples/PlayerStorage/Script/DataStorageItem.cs similarity index 100% rename from Example/SystemExamples/PlayerStorage/Script/DataStorageItem.cs rename to Example/OldTest/SystemExamples/PlayerStorage/Script/DataStorageItem.cs diff --git a/Example/SystemExamples/PlayerStorage/Script/InterfaceStorage.cs b/Example/OldTest/SystemExamples/PlayerStorage/Script/InterfaceStorage.cs similarity index 100% rename from Example/SystemExamples/PlayerStorage/Script/InterfaceStorage.cs rename to Example/OldTest/SystemExamples/PlayerStorage/Script/InterfaceStorage.cs diff --git a/Example/SystemExamples/PlayerStorage/Script/ViewStorage.cs b/Example/OldTest/SystemExamples/PlayerStorage/Script/ViewStorage.cs similarity index 100% rename from Example/SystemExamples/PlayerStorage/Script/ViewStorage.cs rename to Example/OldTest/SystemExamples/PlayerStorage/Script/ViewStorage.cs diff --git a/Example/SaveSystem/Scene/SaveSystem.tscn b/Example/SaveSystem/Scene/SaveSystem.tscn new file mode 100644 index 0000000..3ef7ff6 --- /dev/null +++ b/Example/SaveSystem/Scene/SaveSystem.tscn @@ -0,0 +1,12 @@ +[gd_scene load_steps=2 format=3 uid="uid://bvnma1n064xbx"] + +[ext_resource type="Script" path="res://Example/SaveSystem/Script/ViewSaveSystem.cs" id="1_mtdgp"] + +[node name="SaveSystem" type="Control"] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +script = ExtResource("1_mtdgp") diff --git a/Example/SaveSystem/Script/ViewSaveSystem.cs b/Example/SaveSystem/Script/ViewSaveSystem.cs new file mode 100644 index 0000000..738e18b --- /dev/null +++ b/Example/SaveSystem/Script/ViewSaveSystem.cs @@ -0,0 +1,21 @@ +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Godot; +using LiteDB; +using Renci.SshNet; + +namespace EGFramework.Examples.Test{ + public partial class ViewSaveSystem : Node,IEGFramework + { + public override void _Ready() + { + + } + + public override void _ExitTree() + { + + } + } +} \ No newline at end of file diff --git a/Example/Theme/StyleBox/CardFrame.tres b/Example/Theme/StyleBox/CardFrame.tres deleted file mode 100644 index 78e9a64..0000000 --- a/Example/Theme/StyleBox/CardFrame.tres +++ /dev/null @@ -1,14 +0,0 @@ -[gd_resource type="StyleBoxFlat" format=3 uid="uid://t4prctf3uxtb"] - -[resource] -bg_color = Color(0.858824, 0.858824, 0.858824, 1) -border_width_left = 2 -border_width_top = 2 -border_width_right = 2 -border_width_bottom = 2 -border_color = Color(0, 0, 0, 1) -corner_radius_top_left = 16 -corner_radius_top_right = 16 -corner_radius_bottom_right = 16 -corner_radius_bottom_left = 16 -corner_detail = 1 diff --git a/Example/Theme/White/White.tres b/Example/Theme/White/White.tres deleted file mode 100644 index 2eedc70..0000000 --- a/Example/Theme/White/White.tres +++ /dev/null @@ -1,3 +0,0 @@ -[gd_resource type="Theme" format=3 uid="uid://cbf2s7b2p1p2j"] - -[resource] diff --git a/Example/Tween/EGTween.tscn b/Example/Tween/EGTween.tscn index 8a91732..9abd864 100644 --- a/Example/Tween/EGTween.tscn +++ b/Example/Tween/EGTween.tscn @@ -1,7 +1,6 @@ -[gd_scene load_steps=3 format=3 uid="uid://1garq2laye1n"] +[gd_scene load_steps=2 format=3 uid="uid://1garq2laye1n"] [ext_resource type="Script" path="res://Example/Tween/Script/TweenTest.cs" id="1_jpym0"] -[ext_resource type="StyleBox" uid="uid://t4prctf3uxtb" path="res://Example/Theme/StyleBox/CardFrame.tres" id="2_cbb73"] [node name="EgTween" type="Control" node_paths=PackedStringArray("Target", "Target2D")] layout_mode = 3 @@ -20,7 +19,6 @@ Target2D = NodePath("Polygon2D") offset_right = 90.0 offset_bottom = 160.0 pivot_offset = Vector2(45, 80) -theme_override_styles/panel = ExtResource("2_cbb73") [node name="Camera2D" type="Camera2D" parent="."] position = Vector2(146, 80) diff --git a/Example/UsingTest/Scene/TestEGFramework.tscn b/Example/UsingTest/Scene/TestEGFramework.tscn deleted file mode 100644 index 4e31c68..0000000 --- a/Example/UsingTest/Scene/TestEGFramework.tscn +++ /dev/null @@ -1,26 +0,0 @@ -[gd_scene load_steps=2 format=3 uid="uid://dfa86yq8m28rk"] - -[ext_resource type="Script" path="res://Example/UsingTest/Script/EGSaveTest.cs" id="1_eij2h"] - -[node name="Test" type="Control"] -layout_mode = 3 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -script = ExtResource("1_eij2h") - -[node name="Timer" type="Timer" parent="."] -autostart = true - -[node name="Label" type="Label" parent="."] -layout_mode = 0 -offset_right = 361.0 -offset_bottom = 164.0 - -[node name="Button1" type="Button" parent="."] -visible = false -layout_mode = 0 -offset_right = 50.0 -offset_bottom = 50.0 diff --git a/Example/UsingTest/Script/EGMDnsTest.cs b/Example/UsingTest/Script/EGMDnsTest.cs deleted file mode 100644 index 28f3ae9..0000000 --- a/Example/UsingTest/Script/EGMDnsTest.cs +++ /dev/null @@ -1,45 +0,0 @@ -using Godot; -using System; -using EGFramework; -using WebDav; -using System.Threading.Tasks; -using System.Net; - -public partial class EGMDnsTest : Node, IEGFramework -{ - private string serverUrl = "http://192.168.1.170:5212/dav"; - private string username = "ZK@zk.com"; - private string password = "uQTl7lzLSMZQ1QBd7sZZMlG2Gya65XKM"; - - public override void _Ready() - { - //TestDav(); - } - - public async void TestDav(){ - this.EGWebDav().InitClient(serverUrl,username,password); - await InitClient(); - } - public async Task InitClient() - { - string result = EncodeCredentials(username,password); - GD.Print(result); - //ScanWebDavAndDownload(); - //await this.EGWebDav().DownloadFile("/dav/Picture/风景1.jpg",ProjectSettings.GlobalizePath("user://"),"风景1.jpg"); - //Print("download success!"); - //await this.EGWebDav().UploadFile(ProjectSettings.GlobalizePath("user://4.mp4"),"/dav/Picture","4.mp4"); - await this.EGWebDav().UploadFile(ProjectSettings.GlobalizePath("user://PPT_Test.jpg"),"/dav/Picture","PPT_Test.jpg"); - GD.Print("upload success!"); - //var result = await this.EGWebDav().GetList("/Video"); - //Print(JsonConvert.SerializeObject(result)); - return true; - } - public static string EncodeCredentials(string username, string password) - { - string credentials = $"{username}:{password}"; - byte[] credentialsBytes = System.Text.Encoding.UTF8.GetBytes(credentials); - string encodedCredentials = Convert.ToBase64String(credentialsBytes); - return encodedCredentials; - } - -} diff --git a/Example/UsingTest/Script/EGSaveTest.cs b/Example/UsingTest/Script/EGSaveTest.cs deleted file mode 100644 index bada628..0000000 --- a/Example/UsingTest/Script/EGSaveTest.cs +++ /dev/null @@ -1,249 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Godot; -using LiteDB; -using Renci.SshNet; - -namespace EGFramework.Examples.Test{ - public partial class EGSaveTest : Node,IEGFramework - { - public Label Label { set; get; } - public override void _Ready() - { - this.Label = this.GetNode