diff --git a/DungeonShooting_Godot/prefab/role/Role.tscn b/DungeonShooting_Godot/prefab/role/Role.tscn index a3c93fe..0f4dd8e 100644 --- a/DungeonShooting_Godot/prefab/role/Role.tscn +++ b/DungeonShooting_Godot/prefab/role/Role.tscn @@ -88,6 +88,7 @@ position = Vector2( 0, -12 ) frames = SubResource( 6 ) animation = "idle" +frame = 1 playing = true [node name="Collision" type="CollisionShape2D" parent="."] diff --git a/DungeonShooting_Godot/prefab/ui/RoomUI.tscn b/DungeonShooting_Godot/prefab/ui/RoomUI.tscn index 41e8267..9441d00 100644 --- a/DungeonShooting_Godot/prefab/ui/RoomUI.tscn +++ b/DungeonShooting_Godot/prefab/ui/RoomUI.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=15 format=2] +[gd_scene load_steps=18 format=2] [ext_resource path="res://src/ui/RoomUI.cs" type="Script" id=1] [ext_resource path="res://resource/sprite/ui/mapBar.png" type="Texture" id=2] @@ -13,6 +13,9 @@ [ext_resource path="res://resource/font/cn_font_4.tres" type="DynamicFont" id=11] [ext_resource path="res://src/ui/InteractiveTipBar.cs" type="Script" id=12] [ext_resource path="res://resource/sprite/ui/font_bg.png" type="Texture" id=13] +[ext_resource path="res://resource/sprite/ui/reloadBar.png" type="Texture" id=14] +[ext_resource path="res://resource/sprite/ui/reloadBarBlock.png" type="Texture" id=15] +[ext_resource path="res://src/ui/ReloadBar.cs" type="Script" id=16] [sub_resource type="Gradient" id=1] colors = PoolColorArray( 0.4, 0.498039, 1, 1, 0.4, 0.498039, 1, 0.313726 ) @@ -109,6 +112,7 @@ [node name="GlobalNode" type="Node" parent="."] [node name="InteractiveTipBar" type="Node2D" parent="GlobalNode"] +visible = false z_index = 10 script = ExtResource( 12 ) @@ -141,3 +145,13 @@ points = PoolVector2Array( 0, -17, 0, 0 ) width = 1.0 gradient = SubResource( 1 ) + +[node name="ReloadBar" type="Sprite" parent="GlobalNode"] +visible = false +position = Vector2( 0, -26 ) +texture = ExtResource( 14 ) +script = ExtResource( 16 ) + +[node name="ReloadBarBlock" type="Sprite" parent="GlobalNode/ReloadBar"] +position = Vector2( -13, 0 ) +texture = ExtResource( 15 ) diff --git a/DungeonShooting_Godot/resource/sprite/ui/reloadBar.png b/DungeonShooting_Godot/resource/sprite/ui/reloadBar.png new file mode 100644 index 0000000..b139125 --- /dev/null +++ b/DungeonShooting_Godot/resource/sprite/ui/reloadBar.png Binary files differ diff --git a/DungeonShooting_Godot/resource/sprite/ui/reloadBar.png.import b/DungeonShooting_Godot/resource/sprite/ui/reloadBar.png.import new file mode 100644 index 0000000..e67786d --- /dev/null +++ b/DungeonShooting_Godot/resource/sprite/ui/reloadBar.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/reloadBar.png-4961e5f51bd5957a6e458f14c34d605f.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://resource/sprite/ui/reloadBar.png" +dest_files=[ "res://.import/reloadBar.png-4961e5f51bd5957a6e458f14c34d605f.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=false +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 +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=false +svg/scale=1.0 diff --git a/DungeonShooting_Godot/resource/sprite/ui/reloadBarBlock.png b/DungeonShooting_Godot/resource/sprite/ui/reloadBarBlock.png new file mode 100644 index 0000000..9062297 --- /dev/null +++ b/DungeonShooting_Godot/resource/sprite/ui/reloadBarBlock.png Binary files differ diff --git a/DungeonShooting_Godot/resource/sprite/ui/reloadBarBlock.png.import b/DungeonShooting_Godot/resource/sprite/ui/reloadBarBlock.png.import new file mode 100644 index 0000000..5f7451a --- /dev/null +++ b/DungeonShooting_Godot/resource/sprite/ui/reloadBarBlock.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/reloadBarBlock.png-c10c376109299573ac366ca2224169dd.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://resource/sprite/ui/reloadBarBlock.png" +dest_files=[ "res://.import/reloadBarBlock.png-c10c376109299573ac366ca2224169dd.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=false +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 +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=false +svg/scale=1.0 diff --git a/DungeonShooting_Godot/src/ui/ReloadBar.cs b/DungeonShooting_Godot/src/ui/ReloadBar.cs new file mode 100644 index 0000000..829cf27 --- /dev/null +++ b/DungeonShooting_Godot/src/ui/ReloadBar.cs @@ -0,0 +1,6 @@ +using Godot; + +public class ReloadBar : Sprite +{ + +} \ No newline at end of file