better update checker commit 2

This commit is contained in:
notdraimdev
2024-09-30 13:46:45 +02:00
committed by Bucket Of Chicken
parent 35acc4725b
commit c0b1bf0efb
2 changed files with 21 additions and 1 deletions
+14
View File
@@ -0,0 +1,14 @@
extends ColorRect
@onready var StandardColor = color
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if get_parent().is_hovered():
color = StandardColor.lightened(0.3)
else:
color = StandardColor
+7 -1
View File
@@ -1,4 +1,4 @@
[gd_scene load_steps=61 format=3 uid="uid://b2sygl55s6fng"] [gd_scene load_steps=62 format=3 uid="uid://b2sygl55s6fng"]
[ext_resource type="Script" path="res://main.gd" id="1_ubs1p"] [ext_resource type="Script" path="res://main.gd" id="1_ubs1p"]
[ext_resource type="Texture2D" uid="uid://b8on1case224h" path="res://LoopPressed.png" id="2_iolk5"] [ext_resource type="Texture2D" uid="uid://b8on1case224h" path="res://LoopPressed.png" id="2_iolk5"]
@@ -31,6 +31,7 @@
[ext_resource type="Script" path="res://yt_tab_button.gd" id="16_2t15p"] [ext_resource type="Script" path="res://yt_tab_button.gd" id="16_2t15p"]
[ext_resource type="Script" path="res://update_checker.gd" id="30_byc5i"] [ext_resource type="Script" path="res://update_checker.gd" id="30_byc5i"]
[ext_resource type="Script" path="res://patch_notes_button.gd" id="31_hjsj1"] [ext_resource type="Script" path="res://patch_notes_button.gd" id="31_hjsj1"]
[ext_resource type="Script" path="res://CustomButtonColor.gd" id="32_pwgec"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_ku7tv"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_ku7tv"]
shader = ExtResource("10_20857") shader = ExtResource("10_20857")
@@ -842,6 +843,7 @@ dialog_autowrap = true
cancel_button_text = "Download Song" cancel_button_text = "Download Song"
[node name="UpdateChecker" type="Control" parent="."] [node name="UpdateChecker" type="Control" parent="."]
visible = false
layout_mode = 1 layout_mode = 1
anchors_preset = 3 anchors_preset = 3
anchor_left = 1.0 anchor_left = 1.0
@@ -899,7 +901,9 @@ anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
grow_horizontal = 2 grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
mouse_filter = 2
color = Color(0.19706, 0.279877, 0.326012, 1) color = Color(0.19706, 0.279877, 0.326012, 1)
script = ExtResource("32_pwgec")
[node name="LinkButton" type="Button" parent="UpdateChecker/ColorRect"] [node name="LinkButton" type="Button" parent="UpdateChecker/ColorRect"]
z_index = 1 z_index = 1
@@ -922,7 +926,9 @@ anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
grow_horizontal = 2 grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
mouse_filter = 2
color = Color(0.264012, 0.463229, 0.504783, 1) color = Color(0.264012, 0.463229, 0.504783, 1)
script = ExtResource("32_pwgec")
[node name="CloseBuen" type="Button" parent="UpdateChecker/ColorRect"] [node name="CloseBuen" type="Button" parent="UpdateChecker/ColorRect"]
layout_mode = 1 layout_mode = 1