initial commit, hope i didnt push any keys :P

This commit is contained in:
anne
2023-02-07 17:46:01 +01:00
commit 1416a35df1
362 changed files with 7234 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
extends Control
func _ready():
var stuff = yield($WeatherAPINode.get_current(), "completed")
var out = JSON.print(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)])
+16
View File
@@ -0,0 +1,16 @@
[gd_scene load_steps=3 format=2]
[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]
[node name="weatherapi" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 2 )
[node name="WeatherAPINode" type="Node" parent="."]
script = ExtResource( 1 )
[node name="RichTextLabel" type="RichTextLabel" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0