summaryrefslogtreecommitdiff
path: root/UI
diff options
context:
space:
mode:
Diffstat (limited to 'UI')
-rw-r--r--UI/Assets/Button_Green_9Slides_2.pngbin0 -> 4045 bytes
-rw-r--r--UI/Assets/Button_Green_9Slides_2.png.import34
-rw-r--r--UI/Assets/Button_Green_9Slides_2.png~bin0 -> 4041 bytes
-rw-r--r--UI/Assets/Icons/door.pngbin0 -> 15149 bytes
-rw-r--r--UI/Assets/Icons/door.png.import34
-rw-r--r--UI/Assets/Icons/gear.pngbin0 -> 15475 bytes
-rw-r--r--UI/Assets/Icons/gear.png.import34
-rw-r--r--UI/Assets/Icons/key_e.pngbin0 -> 138 bytes
-rw-r--r--UI/Assets/Icons/key_e.png.import34
-rw-r--r--UI/Assets/Icons/key_r.pngbin0 -> 144 bytes
-rw-r--r--UI/Assets/Icons/key_r.png.import34
-rw-r--r--UI/Assets/Icons/tilemap_white.pngbin0 -> 10054 bytes
-rw-r--r--UI/Assets/Icons/tilemap_white.png.import34
-rw-r--r--UI/Assets/Icons/wrench.pngbin0 -> 15327 bytes
-rw-r--r--UI/Assets/Icons/wrench.png.import34
-rw-r--r--UI/Assets/Icons/zoom.pngbin0 -> 15329 bytes
-rw-r--r--UI/Assets/Icons/zoom.png.import34
-rw-r--r--UI/Assets/Icons/zoomDefault.pngbin0 -> 15343 bytes
-rw-r--r--UI/Assets/Icons/zoomDefault.png.import34
-rw-r--r--UI/Assets/Icons/zoomIn.pngbin0 -> 15343 bytes
-rw-r--r--UI/Assets/Icons/zoomIn.png.import34
-rw-r--r--UI/Assets/Icons/zoomOut.pngbin0 -> 15339 bytes
-rw-r--r--UI/Assets/Icons/zoomOut.png.import34
-rw-r--r--UI/Camera.gd1
-rw-r--r--UI/SpawnButton.tscn4
-rw-r--r--UI/spawn_button.gd4
26 files changed, 382 insertions, 1 deletions
diff --git a/UI/Assets/Button_Green_9Slides_2.png b/UI/Assets/Button_Green_9Slides_2.png
new file mode 100644
index 0000000..f868263
--- /dev/null
+++ b/UI/Assets/Button_Green_9Slides_2.png
Binary files differ
diff --git a/UI/Assets/Button_Green_9Slides_2.png.import b/UI/Assets/Button_Green_9Slides_2.png.import
new file mode 100644
index 0000000..09dec97
--- /dev/null
+++ b/UI/Assets/Button_Green_9Slides_2.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://bxq68idyeo6gm"
+path="res://.godot/imported/Button_Green_9Slides_2.png-0c6d25552d85d31722e4048e9330a7de.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://UI/Assets/Button_Green_9Slides_2.png"
+dest_files=["res://.godot/imported/Button_Green_9Slides_2.png-0c6d25552d85d31722e4048e9330a7de.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/UI/Assets/Button_Green_9Slides_2.png~ b/UI/Assets/Button_Green_9Slides_2.png~
new file mode 100644
index 0000000..15988a8
--- /dev/null
+++ b/UI/Assets/Button_Green_9Slides_2.png~
Binary files differ
diff --git a/UI/Assets/Icons/door.png b/UI/Assets/Icons/door.png
new file mode 100644
index 0000000..1e53791
--- /dev/null
+++ b/UI/Assets/Icons/door.png
Binary files differ
diff --git a/UI/Assets/Icons/door.png.import b/UI/Assets/Icons/door.png.import
new file mode 100644
index 0000000..948a028
--- /dev/null
+++ b/UI/Assets/Icons/door.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dau8u0yw83a6d"
+path="res://.godot/imported/door.png-d01668e5bca7e3b2040489f10796ca61.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://UI/Assets/Icons/door.png"
+dest_files=["res://.godot/imported/door.png-d01668e5bca7e3b2040489f10796ca61.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/UI/Assets/Icons/gear.png b/UI/Assets/Icons/gear.png
new file mode 100644
index 0000000..9663f90
--- /dev/null
+++ b/UI/Assets/Icons/gear.png
Binary files differ
diff --git a/UI/Assets/Icons/gear.png.import b/UI/Assets/Icons/gear.png.import
new file mode 100644
index 0000000..62b625d
--- /dev/null
+++ b/UI/Assets/Icons/gear.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://vq0n0i5f4mtu"
+path="res://.godot/imported/gear.png-c798bd00e97013cd349c08351e8e9365.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://UI/Assets/Icons/gear.png"
+dest_files=["res://.godot/imported/gear.png-c798bd00e97013cd349c08351e8e9365.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/UI/Assets/Icons/key_e.png b/UI/Assets/Icons/key_e.png
new file mode 100644
index 0000000..2e51475
--- /dev/null
+++ b/UI/Assets/Icons/key_e.png
Binary files differ
diff --git a/UI/Assets/Icons/key_e.png.import b/UI/Assets/Icons/key_e.png.import
new file mode 100644
index 0000000..1a30062
--- /dev/null
+++ b/UI/Assets/Icons/key_e.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://c7ntdvxvv16io"
+path="res://.godot/imported/key_e.png-3f73f20da5b7e38c120d6e64781b17b1.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://UI/Assets/Icons/key_e.png"
+dest_files=["res://.godot/imported/key_e.png-3f73f20da5b7e38c120d6e64781b17b1.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/UI/Assets/Icons/key_r.png b/UI/Assets/Icons/key_r.png
new file mode 100644
index 0000000..22d4284
--- /dev/null
+++ b/UI/Assets/Icons/key_r.png
Binary files differ
diff --git a/UI/Assets/Icons/key_r.png.import b/UI/Assets/Icons/key_r.png.import
new file mode 100644
index 0000000..9aabdbe
--- /dev/null
+++ b/UI/Assets/Icons/key_r.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://hljlcokgys6y"
+path="res://.godot/imported/key_r.png-04ae5649a9112c98b95dbfa6c859ad7e.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://UI/Assets/Icons/key_r.png"
+dest_files=["res://.godot/imported/key_r.png-04ae5649a9112c98b95dbfa6c859ad7e.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/UI/Assets/Icons/tilemap_white.png b/UI/Assets/Icons/tilemap_white.png
new file mode 100644
index 0000000..207208e
--- /dev/null
+++ b/UI/Assets/Icons/tilemap_white.png
Binary files differ
diff --git a/UI/Assets/Icons/tilemap_white.png.import b/UI/Assets/Icons/tilemap_white.png.import
new file mode 100644
index 0000000..7c86ea5
--- /dev/null
+++ b/UI/Assets/Icons/tilemap_white.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dlg78heamuf5g"
+path="res://.godot/imported/tilemap_white.png-de35b5c1d117311fa91d8ce605d3b526.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://UI/Assets/Icons/tilemap_white.png"
+dest_files=["res://.godot/imported/tilemap_white.png-de35b5c1d117311fa91d8ce605d3b526.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/UI/Assets/Icons/wrench.png b/UI/Assets/Icons/wrench.png
new file mode 100644
index 0000000..fd16f6b
--- /dev/null
+++ b/UI/Assets/Icons/wrench.png
Binary files differ
diff --git a/UI/Assets/Icons/wrench.png.import b/UI/Assets/Icons/wrench.png.import
new file mode 100644
index 0000000..1a69093
--- /dev/null
+++ b/UI/Assets/Icons/wrench.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://8nwosf1t03m7"
+path="res://.godot/imported/wrench.png-fe966896040bfe3dc92030166a6eaded.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://UI/Assets/Icons/wrench.png"
+dest_files=["res://.godot/imported/wrench.png-fe966896040bfe3dc92030166a6eaded.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/UI/Assets/Icons/zoom.png b/UI/Assets/Icons/zoom.png
new file mode 100644
index 0000000..f8c60c8
--- /dev/null
+++ b/UI/Assets/Icons/zoom.png
Binary files differ
diff --git a/UI/Assets/Icons/zoom.png.import b/UI/Assets/Icons/zoom.png.import
new file mode 100644
index 0000000..0bea4e7
--- /dev/null
+++ b/UI/Assets/Icons/zoom.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://cdmyw6ucmvq5a"
+path="res://.godot/imported/zoom.png-b6b534437d120155424c2f14ae6889dd.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://UI/Assets/Icons/zoom.png"
+dest_files=["res://.godot/imported/zoom.png-b6b534437d120155424c2f14ae6889dd.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/UI/Assets/Icons/zoomDefault.png b/UI/Assets/Icons/zoomDefault.png
new file mode 100644
index 0000000..a18677f
--- /dev/null
+++ b/UI/Assets/Icons/zoomDefault.png
Binary files differ
diff --git a/UI/Assets/Icons/zoomDefault.png.import b/UI/Assets/Icons/zoomDefault.png.import
new file mode 100644
index 0000000..f2ab962
--- /dev/null
+++ b/UI/Assets/Icons/zoomDefault.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://ciojbjh3mpiag"
+path="res://.godot/imported/zoomDefault.png-46c2e4a2ad3f0c644da1df7dc02ba10b.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://UI/Assets/Icons/zoomDefault.png"
+dest_files=["res://.godot/imported/zoomDefault.png-46c2e4a2ad3f0c644da1df7dc02ba10b.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/UI/Assets/Icons/zoomIn.png b/UI/Assets/Icons/zoomIn.png
new file mode 100644
index 0000000..70fff49
--- /dev/null
+++ b/UI/Assets/Icons/zoomIn.png
Binary files differ
diff --git a/UI/Assets/Icons/zoomIn.png.import b/UI/Assets/Icons/zoomIn.png.import
new file mode 100644
index 0000000..d48aa93
--- /dev/null
+++ b/UI/Assets/Icons/zoomIn.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://bvv4vc5rot73y"
+path="res://.godot/imported/zoomIn.png-c12836e7f94e61943d43536e9760f5ba.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://UI/Assets/Icons/zoomIn.png"
+dest_files=["res://.godot/imported/zoomIn.png-c12836e7f94e61943d43536e9760f5ba.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/UI/Assets/Icons/zoomOut.png b/UI/Assets/Icons/zoomOut.png
new file mode 100644
index 0000000..7f20ad2
--- /dev/null
+++ b/UI/Assets/Icons/zoomOut.png
Binary files differ
diff --git a/UI/Assets/Icons/zoomOut.png.import b/UI/Assets/Icons/zoomOut.png.import
new file mode 100644
index 0000000..d019796
--- /dev/null
+++ b/UI/Assets/Icons/zoomOut.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dwed1e2bvyixn"
+path="res://.godot/imported/zoomOut.png-dd8aed3aac684833472c5de1a557d9af.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://UI/Assets/Icons/zoomOut.png"
+dest_files=["res://.godot/imported/zoomOut.png-dd8aed3aac684833472c5de1a557d9af.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/UI/Camera.gd b/UI/Camera.gd
index e10c371..1fd9361 100644
--- a/UI/Camera.gd
+++ b/UI/Camera.gd
@@ -48,6 +48,7 @@ func _input(event):
zoom = Vector2(new_zoom, new_zoom)
global_position += previous_mouse_position - get_global_mouse_position()
zoomed.emit(zoom)
+
if event.is_action("camera_zoom_in"):
var previous_mouse_position := get_global_mouse_position()
var new_zoom = min(zoom.x + zoom_step, zoom_max)
diff --git a/UI/SpawnButton.tscn b/UI/SpawnButton.tscn
index 7b3450b..a5954a0 100644
--- a/UI/SpawnButton.tscn
+++ b/UI/SpawnButton.tscn
@@ -3,12 +3,14 @@
[ext_resource type="Script" path="res://UI/spawn_button.gd" id="1_ayei4"]
[node name="SpawnButton" type="TextureButton"]
+texture_filter = 1
custom_minimum_size = Vector2(32, 32)
offset_left = 2.0
offset_top = 2.0
offset_right = 38.0
offset_bottom = 38.0
-stretch_mode = 3
+mouse_default_cursor_shape = 2
+stretch_mode = 5
script = ExtResource("1_ayei4")
[connection signal="pressed" from="." to="." method="_on_pressed"]
diff --git a/UI/spawn_button.gd b/UI/spawn_button.gd
index ba67e37..a773406 100644
--- a/UI/spawn_button.gd
+++ b/UI/spawn_button.gd
@@ -2,6 +2,7 @@ extends TextureButton
@export var texture: Texture2D
+@export var sprite_sheet: SpriteFrames
func _on_pressed() -> void:
@@ -11,4 +12,7 @@ func _on_pressed() -> void:
unit.get_node("Sprite2D").texture = texture
unit.get_node("Sprite2D").scale = Vector2(32,32) / texture.get_size()
+ if sprite_sheet:
+ unit.get_node("AnimatedSprite2D").sprite_frames = sprite_sheet
+
Client.spawn_unit(unit, Client.current_stage.get_spawn(), Client.current_stage.get_overwrite_target())