Add git, restructure

This commit is contained in:
bucket
2026-03-22 18:57:54 +01:00
parent 222d9b940d
commit 3a3c18ebc0
42 changed files with 580 additions and 81 deletions
+92 -2
View File
@@ -5,16 +5,27 @@
[sub_resource type="LabelSettings" id="LabelSettings_5xt3b"]
font_size = 30
[node name="OptionsWindow" type="Window" unique_id=1485451151 node_paths=PackedStringArray("dupe_clear_button", "save_v_1_button")]
[sub_resource type="LabelSettings" id="LabelSettings_gec7h"]
outline_color = Color(1, 0.7764706, 0.7764706, 1)
[node name="OptionsWindow" type="Window" unique_id=1485451151 node_paths=PackedStringArray("use_old", "dupe_clear_button", "save_v_1_button", "repo_edit", "email_edit", "name_edit", "key_edit", "clone_repo_button", "clone_log", "reset_repo_button")]
oversampling_override = 1.0
position = Vector2i(0, 36)
size = Vector2i(300, 200)
size = Vector2i(557, 397)
visible = false
force_native = true
min_size = Vector2i(262, 199)
script = ExtResource("1_5xt3b")
use_old = NodePath("MarginContainer/ScrollContainer/BoxContainer/UseOld")
dupe_clear_button = NodePath("MarginContainer/ScrollContainer/BoxContainer/DupeClearButton")
save_v_1_button = NodePath("MarginContainer/ScrollContainer/BoxContainer/SaveV1Button")
repo_edit = NodePath("MarginContainer/ScrollContainer/BoxContainer/Repo/RepoEdit")
email_edit = NodePath("MarginContainer/ScrollContainer/BoxContainer/Git Email/EmailEdit")
name_edit = NodePath("MarginContainer/ScrollContainer/BoxContainer/Git Username/NameEdit")
key_edit = NodePath("MarginContainer/ScrollContainer/BoxContainer/Git key/KeyEdit")
clone_repo_button = NodePath("MarginContainer/ScrollContainer/BoxContainer/CloneRepo")
clone_log = NodePath("MarginContainer/ScrollContainer/BoxContainer/CloneLog")
reset_repo_button = NodePath("MarginContainer/ScrollContainer/BoxContainer/Reset Repo")
[node name="ColorRect" type="ColorRect" parent="." unique_id=1724009282]
anchors_preset = 15
@@ -50,6 +61,16 @@ layout_mode = 2
size_flags_horizontal = 3
vertical = true
[node name="RichTextLabel3" type="Label" parent="MarginContainer/ScrollContainer/BoxContainer" unique_id=418846341]
layout_mode = 2
text = "General"
label_settings = SubResource("LabelSettings_5xt3b")
[node name="UseOld" type="CheckBox" parent="MarginContainer/ScrollContainer/BoxContainer" unique_id=1245550112]
layout_mode = 2
text = "Save file with OLD ban file structure(NEEDED before TFVR 4.0)"
autowrap_mode = 2
[node name="RichTextLabel" type="Label" parent="MarginContainer/ScrollContainer/BoxContainer" unique_id=66906023]
layout_mode = 2
text = "Utility"
@@ -64,3 +85,72 @@ text = "Clear Dupes"
layout_mode = 2
tooltip_text = "Save a version of the banlist in the legacy format"
text = "save duplicate v1 file"
[node name="RichTextLabel2" type="Label" parent="MarginContainer/ScrollContainer/BoxContainer" unique_id=824466576]
layout_mode = 2
text = "Git"
label_settings = SubResource("LabelSettings_5xt3b")
[node name="Repo" type="HBoxContainer" parent="MarginContainer/ScrollContainer/BoxContainer" unique_id=1177156648]
layout_mode = 2
[node name="Label" type="Label" parent="MarginContainer/ScrollContainer/BoxContainer/Repo" unique_id=1452601630]
layout_mode = 2
text = "GIT Repo:"
[node name="RepoEdit" type="LineEdit" parent="MarginContainer/ScrollContainer/BoxContainer/Repo" unique_id=74818467]
layout_mode = 2
size_flags_horizontal = 3
[node name="Git Email" type="HBoxContainer" parent="MarginContainer/ScrollContainer/BoxContainer" unique_id=1897029584]
layout_mode = 2
[node name="Label" type="Label" parent="MarginContainer/ScrollContainer/BoxContainer/Git Email" unique_id=1643679626]
layout_mode = 2
text = "GIT Email:"
[node name="EmailEdit" type="LineEdit" parent="MarginContainer/ScrollContainer/BoxContainer/Git Email" unique_id=1342026395]
layout_mode = 2
size_flags_horizontal = 3
[node name="Git Username" type="HBoxContainer" parent="MarginContainer/ScrollContainer/BoxContainer" unique_id=1185383015]
layout_mode = 2
[node name="Label" type="Label" parent="MarginContainer/ScrollContainer/BoxContainer/Git Username" unique_id=790257001]
layout_mode = 2
text = "GIT Name:"
[node name="NameEdit" type="LineEdit" parent="MarginContainer/ScrollContainer/BoxContainer/Git Username" unique_id=791124761]
layout_mode = 2
size_flags_horizontal = 3
[node name="Git key" type="HBoxContainer" parent="MarginContainer/ScrollContainer/BoxContainer" unique_id=670946792]
layout_mode = 2
[node name="Label" type="Label" parent="MarginContainer/ScrollContainer/BoxContainer/Git key" unique_id=1561518298]
layout_mode = 2
text = "GIT Key:"
[node name="KeyEdit" type="LineEdit" parent="MarginContainer/ScrollContainer/BoxContainer/Git key" unique_id=1089959886]
layout_mode = 2
size_flags_horizontal = 3
secret = true
[node name="CloneRepo" type="Button" parent="MarginContainer/ScrollContainer/BoxContainer" unique_id=1623040123]
layout_mode = 2
text = "Clone Repo"
[node name="CloneLog" type="Label" parent="MarginContainer/ScrollContainer/BoxContainer" unique_id=876009711]
layout_mode = 2
label_settings = SubResource("LabelSettings_gec7h")
autowrap_mode = 2
[node name="Reset Repo" type="Button" parent="MarginContainer/ScrollContainer/BoxContainer" unique_id=1348491757]
layout_mode = 2
text = "Reset Repo"
[node name="ResetInfo" type="Label" parent="MarginContainer/ScrollContainer/BoxContainer" unique_id=1109421918]
layout_mode = 2
text = "Reset the repo if you have a weird issue that you cannot fix by other means, this will reset all your local changes"
label_settings = SubResource("LabelSettings_gec7h")
autowrap_mode = 2
+3 -3
View File
@@ -1,6 +1,6 @@
[gd_scene format=3 uid="uid://bv4mvou68l2sk"]
[ext_resource type="Script" uid="uid://2f384phq5272" path="res://AltShowcase.gd" id="1_7tuyd"]
[ext_resource type="Script" uid="uid://2f384phq5272" path="res://Scripts/Gdscript/AltShowcase.gd" id="1_7tuyd"]
[sub_resource type="LabelSettings" id="LabelSettings_7tuyd"]
font_size = 20
@@ -10,7 +10,7 @@ font_size = 15
font_color = Color(0.74558026, 0.7455802, 0.7455802, 1)
[sub_resource type="LabelSettings" id="LabelSettings_y1bem"]
font_size = 27
font_size = 18
[node name="Altshowcase" type="Control" unique_id=96967418 node_paths=PackedStringArray("name_label", "uid_label", "count_label", "search_alts_button")]
custom_minimum_size = Vector2(0, 58.235)
@@ -54,7 +54,7 @@ label_settings = SubResource("LabelSettings_45q1g")
[node name="Count" type="Label" parent="HBoxContainer" unique_id=899914138]
layout_mode = 2
text = "67 alts"
text = "69420 alts"
label_settings = SubResource("LabelSettings_y1bem")
[node name="SearchAltsButton" type="Button" parent="HBoxContainer" unique_id=957758160]
+2
View File
@@ -111,7 +111,9 @@ text = "Ends on:"
[node name="DaysEdit" type="SpinBox" parent="margin/VBoxContainer/ScrollContainer/Container/Ends" unique_id=1346908939]
layout_mode = 2
size_flags_horizontal = 3
min_value = 1.0
max_value = 364.0
value = 1.0
prefix = "day "
[node name="YearsEdit" type="SpinBox" parent="margin/VBoxContainer/ScrollContainer/Container/Ends" unique_id=467960707]
+10
View File
@@ -1,7 +1,17 @@
class_name MoreOptionsWindow extends Window
@export var use_old: CheckBox
@export var dupe_clear_button: Button
@export var save_v_1_button: Button
@export var repo_edit: LineEdit
@export var email_edit: LineEdit
@export var name_edit: LineEdit
@export var key_edit: LineEdit
@export var clone_repo_button: Button
@export var clone_log: Label
@export var reset_repo_button:Button
signal remove_dupes
signal save_v_one