InitCommit

update 1.4.2 source code
This commit is contained in:
kaia
2024-02-03 18:36:09 -06:00
commit ece4ffd123
216 changed files with 79783 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
extends Node2D
@onready var vbox = $VBoxContainer
var tick = 0
func _ready():
Global.updatePusherNode = self
set_process(false)
func pushUpdate(text):
var label = Label.new()
label.text = text
label.add_theme_color_override("font_outline_color",Color.BLACK)
label.add_theme_constant_override("outline_size",6)
vbox.add_child(label)
var count = vbox.get_children().size()
if count > 5:
vbox.get_child(0).queue_free()
modulate.a = 1.0
tick = 0
set_process(true)
func _process(delta):
tick += 1
if tick >= 240:
modulate.a -= delta
if modulate.a <= 0.0:
for child in vbox.get_children():
child.queue_free()
set_process(false)

View File

@@ -0,0 +1,21 @@
[gd_scene load_steps=2 format=3 uid="uid://cgto2hfjsb1oe"]
[ext_resource type="Script" path="res://ui_scenes/pushUpdates/push_updates.gd" id="1_6h2o8"]
[node name="PushUpdates" type="Node2D"]
script = ExtResource("1_6h2o8")
[node name="VBoxContainer" type="VBoxContainer" parent="."]
clip_contents = true
custom_minimum_size = Vector2(0, -250)
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 2.0
offset_top = -296.0
offset_right = 375.0
offset_bottom = -2.0
grow_vertical = 0
mouse_filter = 2
theme_override_constants/separation = 4
alignment = 2