summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/sprites/inter-face/MP/ManaBar.pngbin0 -> 165 bytes
-rw-r--r--assets/sprites/inter-face/MP/ManaBar.png.import34
-rw-r--r--assets/sprites/inter-face/MP/ManaBarOverlay.pngbin0 -> 212 bytes
-rw-r--r--assets/sprites/inter-face/MP/ManaBarOverlay.png.import34
-rw-r--r--assets/sprites/inter-face/MP/ManaBarUnder2.pngbin0 -> 219 bytes
-rw-r--r--assets/sprites/inter-face/MP/ManaBarUnder2.png.import34
-rw-r--r--scenes/ui.tscn14
-rw-r--r--scripts/map/FieldOfView.cs2
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
new file mode 100644
index 0000000..326c6b6
--- /dev/null
+++ b/assets/sprites/inter-face/MP/ManaBar.png
Binary files differ
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
new file mode 100644
index 0000000..e85d09c
--- /dev/null
+++ b/assets/sprites/inter-face/MP/ManaBarOverlay.png
Binary files differ
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
new file mode 100644
index 0000000..8accb9b
--- /dev/null
+++ b/assets/sprites/inter-face/MP/ManaBarUnder2.png
Binary files differ
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 df54892..47fdf59 100644
--- a/scenes/ui.tscn
+++ b/scenes/ui.tscn
@@ -1,9 +1,12 @@
-[gd_scene load_steps=5 format=3 uid="uid://bnuyp1ahv7q0h"]
+[gd_scene load_steps=7 format=3 uid="uid://b4h4xyr1g8o50"]
[ext_resource type="Script" uid="uid://br7w3abe0boqb" path="res://scripts/UI.cs" id="1_gdt2y"]
[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"]
script = ExtResource("1_gdt2y")
@@ -18,3 +21,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
+}