TD-66 CodeCleanup2.0
Some checks failed
Quality Check / Linting (push) Failing after 5s
Quality Check / Linting (pull_request) Failing after 6s

This commit is contained in:
Mosh 2025-02-14 12:33:41 +01:00
parent ba6fa4193b
commit 8c23ec64fa
6 changed files with 55 additions and 60 deletions

View file

@ -1,12 +1,59 @@
[gd_scene load_steps=6 format=3 uid="uid://dtaaw31x3n22f"] [gd_scene load_steps=6 format=3 uid="uid://dtaaw31x3n22f"]
[ext_resource type="Script" path="res://scenes/v_box_container.gd" id="1_xvh5p"] [ext_resource type="Script" path="res://scripts/login/v_box_container.gd" id="1_xvh5p"]
[ext_resource type="Script" path="res://scripts/Login/login_button.gd" id="2_lg3ab"]
[ext_resource type="Script" path="res://scenes/username_label.gd" id="2_sxlqo"]
[ext_resource type="Script" path="res://scenes/username_input.gd" id="3_q2601"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_d0bbp"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_d0bbp"]
[sub_resource type="GDScript" id="GDScript_ol411"]
script/source = "extends RichTextLabel
# 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:
pass
"
[sub_resource type="GDScript" id="GDScript_4n687"]
script/source = "extends LineEdit
# 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:
pass
"
[sub_resource type="GDScript" id="GDScript_7g1da"]
script/source = "extends Node
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _on_button_up() -> void:
pass # Replace with function body.
func _on_username_input_text_changed(new_text: String) -> void:
pass # Replace with function body.
"
[node name="Login" type="Control"] [node name="Login" type="Control"]
layout_mode = 3 layout_mode = 3
anchors_preset = 15 anchors_preset = 15
@ -61,11 +108,11 @@ text = "Username:
" "
fit_content = true fit_content = true
scroll_active = false scroll_active = false
script = ExtResource("2_sxlqo") script = SubResource("GDScript_ol411")
[node name="UsernameInput" type="LineEdit" parent="Panel/VBoxContainer/InputContainer/UsernameContainer"] [node name="UsernameInput" type="LineEdit" parent="Panel/VBoxContainer/InputContainer/UsernameContainer"]
layout_mode = 2 layout_mode = 2
script = ExtResource("3_q2601") script = SubResource("GDScript_4n687")
[node name="PasswordContainer" type="VBoxContainer" parent="Panel/VBoxContainer/InputContainer"] [node name="PasswordContainer" type="VBoxContainer" parent="Panel/VBoxContainer/InputContainer"]
layout_mode = 2 layout_mode = 2
@ -82,7 +129,7 @@ layout_mode = 2
[node name="Button" type="Button" parent="Panel/VBoxContainer"] [node name="Button" type="Button" parent="Panel/VBoxContainer"]
layout_mode = 2 layout_mode = 2
text = "Login" text = "Login"
script = ExtResource("2_lg3ab") script = SubResource("GDScript_7g1da")
[node name="HTTPRequest" type="HTTPRequest" parent="Panel/VBoxContainer"] [node name="HTTPRequest" type="HTTPRequest" parent="Panel/VBoxContainer"]

View file

@ -1,11 +0,0 @@
extends LineEdit
# 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:
pass

View file

@ -1,11 +0,0 @@
extends RichTextLabel
# 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:
pass

View file

@ -1,19 +0,0 @@
extends Node
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _on_button_up() -> void:
pass # Replace with function body.
func _on_username_input_text_changed(new_text: String) -> void:
pass # Replace with function body.

View file

@ -20,5 +20,5 @@ func _on_button_button_up() -> void:
$HTTPRequest.request(url, headers, HTTPClient.METHOD_POST, json) $HTTPRequest.request(url, headers, HTTPClient.METHOD_POST, json)
func _on_http_request_request_completed(result: int, response_code: int, headers: PackedStringArray, body: PackedByteArray) -> void: func _on_http_request_request_completed( result: int, response_code: int, headers: PackedStringArray, body: PackedByteArray) -> void:
print(body.get_string_from_utf8()) print(body.get_string_from_utf8())

11
test.gd
View file

@ -1,11 +0,0 @@
extends Control
# 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:
pass