Added the taskbar

- Changed icons to use a flow container
This commit is contained in:
2025-11-08 18:48:43 +01:00
parent f73e2cd386
commit b3f73354e0
33 changed files with 443 additions and 37 deletions

BIN
Assets/Floppy Disk.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 KiB

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://kp6kw7osssao"
path="res://.godot/imported/Floppy Disk.png-6cee4603f12a72210714f43488316aed.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Assets/Floppy Disk.png"
dest_files=["res://.godot/imported/Floppy Disk.png-6cee4603f12a72210714f43488316aed.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

View File

Before

Width:  |  Height:  |  Size: 662 KiB

After

Width:  |  Height:  |  Size: 662 KiB

View File

@@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://8rdnqrdlik3u"
path="res://.godot/imported/My Computer.png-ccafe95b1f257d2819ca6b4c5284a641.ctex"
path="res://.godot/imported/My Computer.png-60cb4029499fe2f7dca3bdd84edbf6d7.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://My Computer.png"
dest_files=["res://.godot/imported/My Computer.png-ccafe95b1f257d2819ca6b4c5284a641.ctex"]
source_file="res://Assets/My Computer.png"
dest_files=["res://.godot/imported/My Computer.png-60cb4029499fe2f7dca3bdd84edbf6d7.ctex"]
[params]

View File

Before

Width:  |  Height:  |  Size: 351 KiB

After

Width:  |  Height:  |  Size: 351 KiB

View File

@@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://cpn4a1efcyw0"
path="res://.godot/imported/Recycle Bin (empty).png-30c6ed1ed94b1873b66d9390e20927bb.ctex"
path="res://.godot/imported/Recycle Bin (empty).png-d8437e624c2f5a1fa177474e015e6a3f.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Recycle Bin (empty).png"
dest_files=["res://.godot/imported/Recycle Bin (empty).png-30c6ed1ed94b1873b66d9390e20927bb.ctex"]
source_file="res://Assets/Recycle Bin (empty).png"
dest_files=["res://.godot/imported/Recycle Bin (empty).png-d8437e624c2f5a1fa177474e015e6a3f.ctex"]
[params]

BIN
Assets/Shortcut overlay.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c6yev8444hr3f"
path="res://.godot/imported/Shortcut overlay.png-c7fbe9f03211cae0e367d9346442b98a.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Assets/Shortcut overlay.png"
dest_files=["res://.godot/imported/Shortcut overlay.png-c7fbe9f03211cae0e367d9346442b98a.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

BIN
Assets/StartButton.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c68m1duigs3md"
path="res://.godot/imported/StartButton.png-8d3d1cfa73bfd51fab2c58ef300b91e4.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Assets/StartButton.png"
dest_files=["res://.godot/imported/StartButton.png-8d3d1cfa73bfd51fab2c58ef300b91e4.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

BIN
Assets/StartButton2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://d1k77bo3y8hjg"
path="res://.godot/imported/StartButton2.png-91df272d12d07ffc49beb87747d67de3.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Assets/StartButton2.png"
dest_files=["res://.godot/imported/StartButton2.png-91df272d12d07ffc49beb87747d67de3.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

BIN
Assets/Taskbar-right.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://fpai1y66x4ap"
path="res://.godot/imported/Taskbar-right.png-4d08c9792370be6b8d9fdccd2d3d1a30.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Assets/Taskbar-right.png"
dest_files=["res://.godot/imported/Taskbar-right.png-4d08c9792370be6b8d9fdccd2d3d1a30.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

BIN
Assets/Taskbar.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

40
Assets/Taskbar.png.import Normal file
View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c8bta3ai08hyw"
path="res://.godot/imported/Taskbar.png-c20a3db43d8954ba5e3e0a9486014059.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Assets/Taskbar.png"
dest_files=["res://.godot/imported/Taskbar.png-c20a3db43d8954ba5e3e0a9486014059.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

View File

Before

Width:  |  Height:  |  Size: 4.0 MiB

After

Width:  |  Height:  |  Size: 4.0 MiB

View File

@@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://d3xjcaldmcwo7"
path="res://.godot/imported/WindowsXP_Desktop.png-078ba42405f00bebeb098c15e0ceb3ca.ctex"
path="res://.godot/imported/WindowsXP_Desktop.png-6858a00c27c0eedde46de9b92a1ee3b6.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://WindowsXP_Desktop.png"
dest_files=["res://.godot/imported/WindowsXP_Desktop.png-078ba42405f00bebeb098c15e0ceb3ca.ctex"]
source_file="res://Assets/WindowsXP_Desktop.png"
dest_files=["res://.godot/imported/WindowsXP_Desktop.png-6858a00c27c0eedde46de9b92a1ee3b6.ctex"]
[params]

View File

Before

Width:  |  Height:  |  Size: 2.4 MiB

After

Width:  |  Height:  |  Size: 2.4 MiB

View File

@@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://bc6g14s6uvxir"
path="res://.godot/imported/bliss 600dpi.jpg-26e8b8b05938151b445f476b6a64f27c.ctex"
path="res://.godot/imported/bliss 600dpi.jpg-4779eb241a439dceca92175e1d53774c.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://bliss 600dpi.jpg"
dest_files=["res://.godot/imported/bliss 600dpi.jpg-26e8b8b05938151b445f476b6a64f27c.ctex"]
source_file="res://Assets/bliss 600dpi.jpg"
dest_files=["res://.godot/imported/bliss 600dpi.jpg-4779eb241a439dceca92175e1d53774c.ctex"]
[params]

View File

Before

Width:  |  Height:  |  Size: 995 B

After

Width:  |  Height:  |  Size: 995 B

View File

@@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://cf0gel5pfm6em"
path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"
path="res://.godot/imported/icon.svg-8193eb3d66a1b5143b8bb4c28c1dc139.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://icon.svg"
dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"]
source_file="res://Assets/icon.svg"
dest_files=["res://.godot/imported/icon.svg-8193eb3d66a1b5143b8bb4c28c1dc139.ctex"]
[params]

View File

Before

Width:  |  Height:  |  Size: 804 KiB

After

Width:  |  Height:  |  Size: 804 KiB

View File

@@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://c0o2q5i5ph4jd"
path="res://.godot/imported/tomtam_blep.png-4002d4a9893cffb304e122a8cbfd3e9d.ctex"
path="res://.godot/imported/tomtam_blep.png-dc0f9739241e6f08bcfed70b0ae31b1b.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://tomtam_blep.png"
dest_files=["res://.godot/imported/tomtam_blep.png-4002d4a9893cffb304e122a8cbfd3e9d.ctex"]
source_file="res://Assets/tomtam_blep.png"
dest_files=["res://.godot/imported/tomtam_blep.png-dc0f9739241e6f08bcfed70b0ae31b1b.ctex"]
[params]

View File

@@ -12,10 +12,10 @@ var label: Label
func _ready() -> void:
texture_rect = get_node("IcoTexture")
label = get_node("IcoLabel")
func _process(delta: float) -> void:
func _process(_delta: float) -> void:
update_icon()
func update_icon():
texture_rect.texture = icon_texture
texture_rect.custom_minimum_size = min_size

BIN
afbeelding.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

40
afbeelding.png.import Normal file
View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://6hhxm72xsmkc"
path="res://.godot/imported/afbeelding.png-1611d9d7be5c8562f0043648c118a1d5.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://afbeelding.png"
dest_files=["res://.godot/imported/afbeelding.png-1611d9d7be5c8562f0043648c118a1d5.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

View File

@@ -14,7 +14,7 @@ config/name="Stream Overlay"
config/tags=PackedStringArray("streaming")
run/main_scene="uid://bhg0uqxjr73e"
config/features=PackedStringArray("4.5", "Forward Plus")
config/icon="res://icon.svg"
config/icon="res://Assets/icon.svg"
[display]

View File

@@ -1,8 +1,8 @@
[gd_scene load_steps=4 format=3 uid="uid://owcnraxh2lvx"]
[ext_resource type="Script" uid="uid://dhbusj7k1vdji" path="res://scenes/desktop_icon.gd" id="1_ciefd"]
[ext_resource type="Script" uid="uid://dhbusj7k1vdji" path="res://Scripts/desktop_icon.gd" id="1_ciefd"]
[ext_resource type="Theme" uid="uid://dgf6fwq86texy" path="res://Desktop Icons.tres" id="2_ciefd"]
[ext_resource type="Texture2D" uid="uid://cf0gel5pfm6em" path="res://icon.svg" id="2_x2r5c"]
[ext_resource type="Texture2D" uid="uid://cf0gel5pfm6em" path="res://Assets/icon.svg" id="2_x2r5c"]
[node name="Desktop Icon" type="VBoxContainer"]
script = ExtResource("1_ciefd")

12
tray_clock.gd Normal file
View File

@@ -0,0 +1,12 @@
extends Control
var clock_txt: Label
func _ready() -> void:
clock_txt = get_node("Clock_label")
func _process(delta: float) -> void:
var time_dict = Time.get_time_dict_from_system()
var time_format: String = "%s:%s"
var time: String = time_format % [time_dict.hour, time_dict.minute]
clock_txt.text = time

1
tray_clock.gd.uid Normal file
View File

@@ -0,0 +1 @@
uid://c54eiokna6tpq

View File

@@ -1,10 +1,24 @@
[gd_scene load_steps=6 format=3 uid="uid://bhg0uqxjr73e"]
[gd_scene load_steps=13 format=3 uid="uid://bhg0uqxjr73e"]
[ext_resource type="Texture2D" uid="uid://bc6g14s6uvxir" path="res://bliss 600dpi.jpg" id="1_d8jhn"]
[ext_resource type="Texture2D" uid="uid://bc6g14s6uvxir" path="res://Assets/bliss 600dpi.jpg" id="1_d8jhn"]
[ext_resource type="PackedScene" uid="uid://owcnraxh2lvx" path="res://scenes/desktop_icon.tscn" id="2_31yks"]
[ext_resource type="Texture2D" uid="uid://c0o2q5i5ph4jd" path="res://tomtam_blep.png" id="3_1fypo"]
[ext_resource type="Texture2D" uid="uid://8rdnqrdlik3u" path="res://My Computer.png" id="4_1fypo"]
[ext_resource type="Texture2D" uid="uid://cpn4a1efcyw0" path="res://Recycle Bin (empty).png" id="4_te4f3"]
[ext_resource type="Texture2D" uid="uid://c0o2q5i5ph4jd" path="res://Assets/tomtam_blep.png" id="3_1fypo"]
[ext_resource type="Texture2D" uid="uid://8rdnqrdlik3u" path="res://Assets/My Computer.png" id="4_1fypo"]
[ext_resource type="Texture2D" uid="uid://kp6kw7osssao" path="res://Assets/Floppy Disk.png" id="4_f5eqh"]
[ext_resource type="Texture2D" uid="uid://cpn4a1efcyw0" path="res://Assets/Recycle Bin (empty).png" id="4_te4f3"]
[ext_resource type="Texture2D" uid="uid://c8bta3ai08hyw" path="res://Assets/Taskbar.png" id="7_0s07y"]
[ext_resource type="Texture2D" uid="uid://d1k77bo3y8hjg" path="res://Assets/StartButton2.png" id="8_rf44w"]
[ext_resource type="Texture2D" uid="uid://fpai1y66x4ap" path="res://Assets/Taskbar-right.png" id="9_u7tg2"]
[ext_resource type="Script" uid="uid://c54eiokna6tpq" path="res://tray_clock.gd" id="10_utjsd"]
[sub_resource type="SystemFont" id="SystemFont_nirc1"]
font_names = PackedStringArray("Arial")
font_italic = true
font_weight = 550
generate_mipmaps = true
[sub_resource type="SystemFont" id="SystemFont_ufj3f"]
font_names = PackedStringArray("Arial")
[node name="Control" type="Control"]
layout_mode = 3
@@ -28,31 +42,130 @@ expand_mode = 2
stretch_mode = 6
[node name="MarginContainer" type="MarginContainer" parent="."]
layout_mode = 0
offset_right = 64.0
offset_bottom = 132.0
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 10
theme_override_constants/margin_top = 10
theme_override_constants/margin_right = 10
theme_override_constants/margin_bottom = 10
theme_override_constants/margin_bottom = 32
[node name="GridContainer" type="GridContainer" parent="MarginContainer"]
[node name="VFlowContainer" type="VFlowContainer" parent="MarginContainer"]
layout_mode = 2
[node name="Desktop Icon" parent="MarginContainer/GridContainer" instance=ExtResource("2_31yks")]
[node name="Desktop Icon105" parent="MarginContainer/VFlowContainer" instance=ExtResource("2_31yks")]
layout_mode = 2
icon_texture = ExtResource("4_te4f3")
icon_text = "Recycle Bin"
min_size = Vector2(48, 48)
[node name="Desktop Icon3" parent="MarginContainer/GridContainer" instance=ExtResource("2_31yks")]
[node name="Desktop Icon106" parent="MarginContainer/VFlowContainer" instance=ExtResource("2_31yks")]
layout_mode = 2
icon_texture = ExtResource("4_1fypo")
icon_text = "My Stream"
min_size = Vector2(48, 48)
[node name="Desktop Icon2" parent="MarginContainer/GridContainer" instance=ExtResource("2_31yks")]
[node name="Desktop Icon104" parent="MarginContainer/VFlowContainer" instance=ExtResource("2_31yks")]
layout_mode = 2
icon_texture = ExtResource("4_f5eqh")
icon_text = "Doggo's Memory"
min_size = Vector2(48, 48)
[node name="Desktop Icon103" parent="MarginContainer/VFlowContainer" instance=ExtResource("2_31yks")]
layout_mode = 2
icon_texture = ExtResource("3_1fypo")
icon_text = "TomTam.exe"
min_size = Vector2(48, 48)
[node name="Taskbar9P" type="NinePatchRect" parent="."]
custom_minimum_size = Vector2(0, 32)
layout_mode = 1
anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 0
texture = ExtResource("7_0s07y")
patch_margin_top = 4
patch_margin_bottom = 5
[node name="StartButton9P" type="NinePatchRect" parent="Taskbar9P"]
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_top = -32.0
offset_right = 98.0
grow_vertical = 0
texture = ExtResource("8_rf44w")
patch_margin_left = 4
patch_margin_top = 12
patch_margin_right = 8
patch_margin_bottom = 11
[node name="HBoxContainer" type="HBoxContainer" parent="Taskbar9P/StartButton9P"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -37.0
offset_top = -13.0
offset_right = 35.5
offset_bottom = 13.0
grow_horizontal = 2
grow_vertical = 2
[node name="TextureRect" type="TextureRect" parent="Taskbar9P/StartButton9P/HBoxContainer"]
layout_mode = 2
texture = ExtResource("3_1fypo")
expand_mode = 2
[node name="Label" type="Label" parent="Taskbar9P/StartButton9P/HBoxContainer"]
layout_mode = 2
theme_override_colors/font_shadow_color = Color(0.015686275, 0.015686275, 0.015686275, 0.60784316)
theme_override_fonts/font = SubResource("SystemFont_nirc1")
text = "start"
[node name="SystemTray9P" type="NinePatchRect" parent="Taskbar9P"]
layout_mode = 1
anchors_preset = 6
anchor_left = 1.0
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_left = -124.0
offset_top = -16.0
offset_bottom = 16.0
grow_horizontal = 0
grow_vertical = 2
texture = ExtResource("9_u7tg2")
patch_margin_left = 11
patch_margin_top = 6
patch_margin_right = 8
patch_margin_bottom = 6
[node name="Clock" type="MarginContainer" parent="Taskbar9P/SystemTray9P"]
layout_mode = 1
anchors_preset = 6
anchor_left = 1.0
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_left = -41.0
offset_top = -16.0
offset_bottom = 16.0
grow_horizontal = 0
grow_vertical = 2
theme_override_constants/margin_right = 9
script = ExtResource("10_utjsd")
[node name="Clock_label" type="Label" parent="Taskbar9P/SystemTray9P/Clock"]
layout_mode = 2
theme_override_fonts/font = SubResource("SystemFont_ufj3f")
text = "18:30"