Inital commit
- Desktop wallpaper
- Desktop Icons
- Added a simple script to set the icons texture and label
This commit is contained in:
4
.editorconfig
Normal file
4
.editorconfig
Normal file
@@ -0,0 +1,4 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Normalize EOL for all files that Git considers text files.
|
||||
* text=auto eol=lf
|
||||
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
# Godot 4+ specific ignores
|
||||
.godot/
|
||||
/android/
|
||||
5
Desktop Icons.tres
Normal file
5
Desktop Icons.tres
Normal file
@@ -0,0 +1,5 @@
|
||||
[gd_resource type="Theme" format=3 uid="uid://dgf6fwq86texy"]
|
||||
|
||||
[resource]
|
||||
Label/colors/font_shadow_color = Color(0, 0, 0, 0.5019608)
|
||||
Label/font_sizes/font_size = 11
|
||||
BIN
My Computer.png
Normal file
BIN
My Computer.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 662 KiB |
40
My Computer.png.import
Normal file
40
My Computer.png.import
Normal file
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://8rdnqrdlik3u"
|
||||
path="res://.godot/imported/My Computer.png-ccafe95b1f257d2819ca6b4c5284a641.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://My Computer.png"
|
||||
dest_files=["res://.godot/imported/My Computer.png-ccafe95b1f257d2819ca6b4c5284a641.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
Recycle Bin (empty).png
Normal file
BIN
Recycle Bin (empty).png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 351 KiB |
40
Recycle Bin (empty).png.import
Normal file
40
Recycle Bin (empty).png.import
Normal file
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cpn4a1efcyw0"
|
||||
path="res://.godot/imported/Recycle Bin (empty).png-30c6ed1ed94b1873b66d9390e20927bb.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Recycle Bin (empty).png"
|
||||
dest_files=["res://.godot/imported/Recycle Bin (empty).png-30c6ed1ed94b1873b66d9390e20927bb.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
WindowsXP_Desktop.png
Normal file
BIN
WindowsXP_Desktop.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.0 MiB |
40
WindowsXP_Desktop.png.import
Normal file
40
WindowsXP_Desktop.png.import
Normal file
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://d3xjcaldmcwo7"
|
||||
path="res://.godot/imported/WindowsXP_Desktop.png-078ba42405f00bebeb098c15e0ceb3ca.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://WindowsXP_Desktop.png"
|
||||
dest_files=["res://.godot/imported/WindowsXP_Desktop.png-078ba42405f00bebeb098c15e0ceb3ca.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
bliss 600dpi.jpg
Normal file
BIN
bliss 600dpi.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.4 MiB |
40
bliss 600dpi.jpg.import
Normal file
40
bliss 600dpi.jpg.import
Normal file
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bc6g14s6uvxir"
|
||||
path="res://.godot/imported/bliss 600dpi.jpg-26e8b8b05938151b445f476b6a64f27c.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://bliss 600dpi.jpg"
|
||||
dest_files=["res://.godot/imported/bliss 600dpi.jpg-26e8b8b05938151b445f476b6a64f27c.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
|
||||
1
icon.svg
Normal file
1
icon.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128"><rect width="124" height="124" x="2" y="2" fill="#363d52" stroke="#212532" stroke-width="4" rx="14"/><g fill="#fff" transform="translate(12.322 12.322)scale(.101)"><path d="M105 673v33q407 354 814 0v-33z"/><path fill="#478cbf" d="m105 673 152 14q12 1 15 14l4 67 132 10 8-61q2-11 15-15h162q13 4 15 15l8 61 132-10 4-67q3-13 15-14l152-14V427q30-39 56-81-35-59-83-108-43 20-82 47-40-37-88-64 7-51 8-102-59-28-123-42-26 43-46 89-49-7-98 0-20-46-46-89-64 14-123 42 1 51 8 102-48 27-88 64-39-27-82-47-48 49-83 108 26 42 56 81zm0 33v39c0 276 813 276 814 0v-39l-134 12-5 69q-2 10-14 13l-162 11q-12 0-16-11l-10-65H446l-10 65q-4 11-16 11l-162-11q-12-3-14-13l-5-69z"/><path d="M483 600c0 34 58 34 58 0v-86c0-34-58-34-58 0z"/><circle cx="725" cy="526" r="90"/><circle cx="299" cy="526" r="90"/></g><g fill="#414042" transform="translate(12.322 12.322)scale(.101)"><circle cx="307" cy="532" r="60"/><circle cx="717" cy="532" r="60"/></g></svg>
|
||||
|
After Width: | Height: | Size: 995 B |
43
icon.svg.import
Normal file
43
icon.svg.import
Normal file
@@ -0,0 +1,43 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cf0gel5pfm6em"
|
||||
path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://icon.svg"
|
||||
dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.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
|
||||
svg/scale=1.0
|
||||
editor/scale_with_editor_scale=false
|
||||
editor/convert_colors_with_editor_theme=false
|
||||
26
project.godot
Normal file
26
project.godot
Normal file
@@ -0,0 +1,26 @@
|
||||
; Engine configuration file.
|
||||
; It's best edited using the editor UI and not directly,
|
||||
; since the parameters that go here are not all obvious.
|
||||
;
|
||||
; Format:
|
||||
; [section] ; section goes between []
|
||||
; param=value ; assign values to parameters
|
||||
|
||||
config_version=5
|
||||
|
||||
[application]
|
||||
|
||||
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"
|
||||
|
||||
[display]
|
||||
|
||||
window/size/viewport_width=1280
|
||||
window/size/viewport_height=720
|
||||
|
||||
[dotnet]
|
||||
|
||||
project/assembly_name="Stream Overlay"
|
||||
22
scenes/desktop_icon.gd
Normal file
22
scenes/desktop_icon.gd
Normal file
@@ -0,0 +1,22 @@
|
||||
@tool
|
||||
class_name DesktopIcon
|
||||
extends VBoxContainer
|
||||
|
||||
@export var icon_texture: Texture
|
||||
@export var icon_text: String
|
||||
@export var min_size: Vector2 = Vector2(32,32)
|
||||
|
||||
var texture_rect: TextureRect
|
||||
var label: Label
|
||||
|
||||
func _ready() -> void:
|
||||
texture_rect = get_node("IcoTexture")
|
||||
label = get_node("IcoLabel")
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
update_icon()
|
||||
|
||||
func update_icon():
|
||||
texture_rect.texture = icon_texture
|
||||
texture_rect.custom_minimum_size = min_size
|
||||
label.text = icon_text
|
||||
1
scenes/desktop_icon.gd.uid
Normal file
1
scenes/desktop_icon.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://dhbusj7k1vdji
|
||||
28
scenes/desktop_icon.tscn
Normal file
28
scenes/desktop_icon.tscn
Normal file
@@ -0,0 +1,28 @@
|
||||
[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="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"]
|
||||
|
||||
[node name="Desktop Icon" type="VBoxContainer"]
|
||||
script = ExtResource("1_ciefd")
|
||||
icon_texture = ExtResource("2_x2r5c")
|
||||
icon_text = "TomTam_test.exe Lorem Ipsum dolor sit amet"
|
||||
|
||||
[node name="IcoTexture" type="TextureRect" parent="."]
|
||||
custom_minimum_size = Vector2(32, 32)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 0
|
||||
texture = ExtResource("2_x2r5c")
|
||||
expand_mode = 2
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="IcoLabel" type="Label" parent="."]
|
||||
custom_minimum_size = Vector2(96, 36)
|
||||
layout_mode = 2
|
||||
theme = ExtResource("2_ciefd")
|
||||
text = "TomTam_test.exe Lorem Ipsum dolor sit amet"
|
||||
horizontal_alignment = 1
|
||||
autowrap_mode = 2
|
||||
text_overrun_behavior = 3
|
||||
max_lines_visible = 2
|
||||
BIN
tomtam_blep.png
Normal file
BIN
tomtam_blep.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 804 KiB |
40
tomtam_blep.png.import
Normal file
40
tomtam_blep.png.import
Normal file
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c0o2q5i5ph4jd"
|
||||
path="res://.godot/imported/tomtam_blep.png-4002d4a9893cffb304e122a8cbfd3e9d.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://tomtam_blep.png"
|
||||
dest_files=["res://.godot/imported/tomtam_blep.png-4002d4a9893cffb304e122a8cbfd3e9d.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
|
||||
58
windows_xp_desktop.tscn
Normal file
58
windows_xp_desktop.tscn
Normal file
@@ -0,0 +1,58 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://bhg0uqxjr73e"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bc6g14s6uvxir" path="res://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"]
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("1_d8jhn")
|
||||
expand_mode = 2
|
||||
stretch_mode = 6
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 64.0
|
||||
offset_bottom = 132.0
|
||||
theme_override_constants/margin_left = 10
|
||||
theme_override_constants/margin_top = 10
|
||||
theme_override_constants/margin_right = 10
|
||||
theme_override_constants/margin_bottom = 10
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Desktop Icon" parent="MarginContainer/GridContainer" 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")]
|
||||
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")]
|
||||
layout_mode = 2
|
||||
icon_texture = ExtResource("3_1fypo")
|
||||
icon_text = "TomTam.exe"
|
||||
min_size = Vector2(48, 48)
|
||||
Reference in New Issue
Block a user