Added the taskbar
- Changed icons to use a flow container
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
@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 +0,0 @@
|
||||
uid://dhbusj7k1vdji
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user