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
+2 -4
View File
@@ -2,13 +2,11 @@ extends Control
func _ready():
var stuff = yield($WeatherAPINode.get_current(), "completed")
var out = JSON.print(stuff, " ")
var stuff = await $WeatherAPINode.get_current()
var out = JSON.stringify(stuff, " ")
$RichTextLabel.text = out
var WC = str(stuff['current']['condition']['code'])
print([WC])
print(Constants.weather_codes)
print(Constants.weather_codes.has(WC))
print(Constants.WEATHER.keys()[Constants.code_to_weather(WC)])
@@ -0,0 +1 @@
uid://c2s7mgf5ote6d
+5 -5
View File
@@ -1,15 +1,15 @@
[gd_scene load_steps=3 format=2]
[gd_scene load_steps=3 format=3]
[ext_resource path="res://addons/WeatherAPI/node.gd" type="Script" id=1]
[ext_resource path="res://scenes/debug/weatherapi/weatherapi.gd" type="Script" id=2]
[ext_resource type="Script" path="res://addons/WeatherAPI/node.gd" id="1"]
[ext_resource type="Script" path="res://scenes/debug/weatherapi/weatherapi.gd" id="2"]
[node name="weatherapi" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 2 )
script = ExtResource("2")
[node name="WeatherAPINode" type="Node" parent="."]
script = ExtResource( 1 )
script = ExtResource("1")
[node name="RichTextLabel" type="RichTextLabel" parent="."]
anchor_right = 1.0