diff options
| -rw-r--r-- | assets/sprites/inter-face/MP/ManaBar.png | bin | 0 -> 165 bytes | |||
| -rw-r--r-- | assets/sprites/inter-face/MP/ManaBar.png.import | 34 | ||||
| -rw-r--r-- | assets/sprites/inter-face/MP/ManaBarOverlay.png | bin | 0 -> 212 bytes | |||
| -rw-r--r-- | assets/sprites/inter-face/MP/ManaBarOverlay.png.import | 34 | ||||
| -rw-r--r-- | assets/sprites/inter-face/MP/ManaBarUnder2.png | bin | 0 -> 219 bytes | |||
| -rw-r--r-- | assets/sprites/inter-face/MP/ManaBarUnder2.png.import | 34 | ||||
| -rw-r--r-- | scenes/ui.tscn | 14 | ||||
| -rw-r--r-- | scripts/map/FieldOfView.cs | 2 |
8 files changed, 116 insertions, 2 deletions
diff --git a/assets/sprites/inter-face/MP/ManaBar.png b/assets/sprites/inter-face/MP/ManaBar.png Binary files differnew file mode 100644 index 0000000..326c6b6 --- /dev/null +++ b/assets/sprites/inter-face/MP/ManaBar.png diff --git a/assets/sprites/inter-face/MP/ManaBar.png.import b/assets/sprites/inter-face/MP/ManaBar.png.import new file mode 100644 index 0000000..72997b1 --- /dev/null +++ b/assets/sprites/inter-face/MP/ManaBar.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b1rotmrfynpau" +path="res://.godot/imported/ManaBar.png-fcac38e1ee0d09b31d017e0799d3a120.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/inter-face/MP/ManaBar.png" +dest_files=["res://.godot/imported/ManaBar.png-fcac38e1ee0d09b31d017e0799d3a120.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 diff --git a/assets/sprites/inter-face/MP/ManaBarOverlay.png b/assets/sprites/inter-face/MP/ManaBarOverlay.png Binary files differnew file mode 100644 index 0000000..e85d09c --- /dev/null +++ b/assets/sprites/inter-face/MP/ManaBarOverlay.png diff --git a/assets/sprites/inter-face/MP/ManaBarOverlay.png.import b/assets/sprites/inter-face/MP/ManaBarOverlay.png.import new file mode 100644 index 0000000..b1671f0 --- /dev/null +++ b/assets/sprites/inter-face/MP/ManaBarOverlay.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b2msd7khjxtat" +path="res://.godot/imported/ManaBarOverlay.png-1a92772906b959aac130b6504325effe.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/inter-face/MP/ManaBarOverlay.png" +dest_files=["res://.godot/imported/ManaBarOverlay.png-1a92772906b959aac130b6504325effe.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 diff --git a/assets/sprites/inter-face/MP/ManaBarUnder2.png b/assets/sprites/inter-face/MP/ManaBarUnder2.png Binary files differnew file mode 100644 index 0000000..8accb9b --- /dev/null +++ b/assets/sprites/inter-face/MP/ManaBarUnder2.png diff --git a/assets/sprites/inter-face/MP/ManaBarUnder2.png.import b/assets/sprites/inter-face/MP/ManaBarUnder2.png.import new file mode 100644 index 0000000..d72df6c --- /dev/null +++ b/assets/sprites/inter-face/MP/ManaBarUnder2.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://sgqb6ccdbt4h" +path="res://.godot/imported/ManaBarUnder2.png-1efd349e1a8f58f699efbfa9f95f766d.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/inter-face/MP/ManaBarUnder2.png" +dest_files=["res://.godot/imported/ManaBarUnder2.png-1efd349e1a8f58f699efbfa9f95f766d.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 diff --git a/scenes/ui.tscn b/scenes/ui.tscn index 1572bfc..b71e544 100644 --- a/scenes/ui.tscn +++ b/scenes/ui.tscn @@ -1,8 +1,11 @@ -[gd_scene load_steps=4 format=3 uid="uid://d0mir10g2vhk3"] +[gd_scene load_steps=7 format=3 uid="uid://b4h4xyr1g8o50"] [ext_resource type="Texture2D" uid="uid://ch6rupow513ab" path="res://assets/sprites/inter-face/HP/HealthBarUnder.png" id="1_yev5y"] [ext_resource type="Texture2D" uid="uid://c0vvfwqjxqjcv" path="res://assets/sprites/inter-face/HP/HealthBarOverlay.png" id="2_gdt2y"] [ext_resource type="Texture2D" uid="uid://ckbvtym6yywf0" path="res://assets/sprites/inter-face/HP/HealthBar.png" id="3_wm3ai"] +[ext_resource type="Texture2D" uid="uid://sgqb6ccdbt4h" path="res://assets/sprites/inter-face/MP/ManaBarUnder2.png" id="4_8dubc"] +[ext_resource type="Texture2D" uid="uid://b2msd7khjxtat" path="res://assets/sprites/inter-face/MP/ManaBarOverlay.png" id="5_p7vwb"] +[ext_resource type="Texture2D" uid="uid://b1rotmrfynpau" path="res://assets/sprites/inter-face/MP/ManaBar.png" id="6_ktti3"] [node name="UI" type="Node2D"] @@ -15,3 +18,12 @@ value = 100.0 texture_under = ExtResource("1_yev5y") texture_over = ExtResource("2_gdt2y") texture_progress = ExtResource("3_wm3ai") + +[node name="MPbar" type="TextureProgressBar" parent="CanvasLayer"] +offset_top = 11.0 +offset_right = 50.0 +offset_bottom = 21.0 +value = 100.0 +texture_under = ExtResource("4_8dubc") +texture_over = ExtResource("5_p7vwb") +texture_progress = ExtResource("6_ktti3") diff --git a/scripts/map/FieldOfView.cs b/scripts/map/FieldOfView.cs index cadaf74..bdcd206 100644 --- a/scripts/map/FieldOfView.cs +++ b/scripts/map/FieldOfView.cs @@ -93,4 +93,4 @@ public partial class FieldOfView : Node { CastLight(data, position, radius, 1, 1.0f, 0.0f, multipliers[0, i], multipliers[1, i], multipliers[2, i], multipliers[3, i]); } } -}
\ No newline at end of file +} |
