claude godot 4 port

This commit is contained in:
2026-06-13 16:08:36 -04:00
parent aa1f470a7b
commit 1c1109fe93
227 changed files with 3112 additions and 2505 deletions
+11 -7
View File
@@ -1,22 +1,26 @@
extends HBoxContainer
export var use_12_hours := true setget set_use_12_hours
export(Resource) var moment = Moment.new() setget set_moment
@export var use_12_hours: bool = true:
set = set_use_12_hours
@export var moment: Resource = Moment.new():
set = set_moment
onready var hour = $hour
onready var minute = $minute
onready var am_pm := $VBoxContainer/am_pm
@onready var hour = $hour
@onready var minute = $minute
@onready var am_pm = $VBoxContainer/am_pm
func set_moment(new_moment:Moment):
func set_moment(new_moment):
moment = new_moment
_update()
func set_use_12_hours(new_value:bool):
func set_use_12_hours(new_value: bool):
use_12_hours = new_value
_update()
func _update():
if not is_inside_tree():
return
minute.text = moment.padded_minute()
am_pm.visible = use_12_hours
am_pm.text = moment.am_pm()
+1
View File
@@ -0,0 +1 @@
uid://dgabsu410qkro
+34 -32
View File
@@ -1,51 +1,53 @@
[gd_scene load_steps=4 format=2]
[gd_scene load_steps=4 format=3]
[ext_resource path="res://assets/font/resource/time_small.tres" type="DynamicFont" id=1]
[ext_resource path="res://assets/font/resource/time_big.tres" type="DynamicFont" id=2]
[ext_resource path="res://scenes/time_display/time_display.gd" type="Script" id=3]
[ext_resource type="FontVariation" path="res://assets/font/resource/time_small.tres" id="1"]
[ext_resource type="FontVariation" path="res://assets/font/resource/time_big.tres" id="2"]
[ext_resource type="Script" path="res://scenes/time_display/time_display.gd" id="3"]
[node name="time_display" type="HBoxContainer"]
margin_right = 116.0
margin_bottom = 45.0
script = ExtResource( 3 )
offset_right = 116.0
offset_bottom = 45.0
script = ExtResource("3")
[node name="hour" type="Label" parent="."]
margin_right = 92.0
margin_bottom = 89.0
custom_fonts/font = ExtResource( 2 )
offset_right = 92.0
offset_bottom = 89.0
theme_override_fonts/font = ExtResource("2")
theme_override_font_sizes/font_size = 96
text = "10"
[node name="Control" type="Control" parent="."]
margin_left = 96.0
margin_right = 116.0
margin_bottom = 89.0
rect_min_size = Vector2( 20, 0 )
offset_left = 96.0
offset_right = 116.0
offset_bottom = 89.0
custom_minimum_size = Vector2(20, 0)
size_flags_horizontal = 3
[node name="minute" type="Label" parent="."]
margin_left = 120.0
margin_right = 212.0
margin_bottom = 89.0
custom_fonts/font = ExtResource( 2 )
offset_left = 120.0
offset_right = 212.0
offset_bottom = 89.0
theme_override_fonts/font = ExtResource("2")
theme_override_font_sizes/font_size = 96
text = "12"
[node name="VBoxContainer" type="VBoxContainer" parent="."]
margin_left = 216.0
margin_right = 246.0
margin_bottom = 89.0
custom_constants/separation = 0
offset_left = 216.0
offset_right = 246.0
offset_bottom = 89.0
theme_override_constants/separation = 0
[node name="am_pm" type="Label" parent="VBoxContainer"]
margin_right = 30.0
margin_bottom = 78.0
offset_right = 30.0
offset_bottom = 78.0
size_flags_vertical = 3
custom_fonts/font = ExtResource( 1 )
text = "am"
valign = 2
uppercase = true
theme_override_fonts/font = ExtResource("1")
theme_override_font_sizes/font_size = 24
text = "AM"
vertical_alignment = 2
[node name="Control" type="Control" parent="VBoxContainer"]
margin_top = 78.0
margin_right = 30.0
margin_bottom = 89.0
rect_min_size = Vector2( 0, 11 )
offset_top = 78.0
offset_right = 30.0
offset_bottom = 89.0
custom_minimum_size = Vector2(0, 11)