Khastore/scenes/interface/page_game.tscn
2024-06-29 23:47:38 +02:00

146 lines
4.2 KiB
Text

[gd_scene load_steps=4 format=3 uid="uid://h4sygmnwvcvf"]
[ext_resource type="Script" path="res://scripts/interface/page_game.gd" id="1_f1igk"]
[ext_resource type="Texture2D" uid="uid://ckukbjjvm54c5" path="res://assets/background/settings-Khanat-background.png" id="2_gqbla"]
[ext_resource type="Theme" uid="uid://qdstcmrdbjar" path="res://assets/tres/khaganat.tres" id="3_xc68h"]
[node name="page_choice_game" type="Control"]
layout_mode = 3
anchor_right = 1.111
anchor_bottom = 1.11
offset_right = -1279.87
offset_bottom = -719.28
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_f1igk")
[node name="background" type="TextureRect" parent="."]
layout_mode = 0
offset_right = 1280.0
offset_bottom = 720.0
texture = ExtResource("2_gqbla")
[node name="label_titre" type="Label" parent="."]
layout_mode = 0
offset_left = 321.0
offset_top = 11.0
offset_right = 1017.0
offset_bottom = 122.0
theme = ExtResource("3_xc68h")
theme_override_font_sizes/font_size = 76
text = "The games catalog"
[node name="label_description" type="Label" parent="."]
layout_mode = 0
offset_left = 287.0
offset_top = 213.0
offset_right = 1098.0
offset_bottom = 481.0
theme = ExtResource("3_xc68h")
[node name="label_size" type="Label" parent="."]
layout_mode = 0
offset_left = 635.0
offset_top = 147.0
offset_right = 1062.0
offset_bottom = 185.0
theme = ExtResource("3_xc68h")
[node name="OptionButton" type="OptionButton" parent="."]
layout_mode = 0
offset_left = 318.0
offset_top = 137.0
offset_right = 587.0
offset_bottom = 193.0
tooltip_text = "Select Games"
theme = ExtResource("3_xc68h")
action_mode = 1
alignment = 1
selected = 0
fit_to_longest_item = false
allow_reselect = true
item_count = 1
popup/item_0/text = "Select Games"
popup/item_0/disabled = true
[node name="DownloadButton" type="Button" parent="."]
layout_mode = 0
offset_left = 285.0
offset_top = 504.0
offset_right = 495.0
offset_bottom = 547.0
theme = ExtResource("3_xc68h")
text = "Donwload Game"
[node name="PatchButton" type="Button" parent="."]
layout_mode = 0
offset_left = 539.0
offset_top = 508.0
offset_right = 826.0
offset_bottom = 542.0
theme = ExtResource("3_xc68h")
text = "Patch Game"
[node name="PatchButtonQuit" type="Button" parent="."]
visible = false
layout_mode = 0
offset_left = 532.0
offset_top = 294.0
offset_right = 761.0
offset_bottom = 359.0
theme = ExtResource("3_xc68h")
text = "Reboot after Maj"
[node name="LaunchGameButton" type="Button" parent="."]
custom_minimum_size = Vector2(200, 40)
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 888.0
offset_top = 511.0
offset_right = 1088.0
offset_bottom = 562.0
grow_vertical = 0
theme = ExtResource("3_xc68h")
text = "Lauch Game"
[node name="DownloadProgressBar" type="ProgressBar" parent="."]
layout_mode = 0
offset_left = 278.0
offset_top = 561.0
offset_right = 850.0
offset_bottom = 588.0
theme = ExtResource("3_xc68h")
[node name="UpdateProgressBar" type="ProgressBar" parent="."]
layout_mode = 0
offset_left = 277.0
offset_top = 595.0
offset_right = 849.0
offset_bottom = 622.0
theme = ExtResource("3_xc68h")
[node name="button_quit" type="Button" parent="."]
layout_mode = 0
offset_left = 936.0
offset_top = 594.0
offset_right = 1096.0
offset_bottom = 625.0
theme = ExtResource("3_xc68h")
text = "QUIT"
[node name="DownloadProgressTimer" type="Timer" parent="."]
[node name="UpdateProgressTimer" type="Timer" parent="."]
[node name="HTTPRequest" type="HTTPRequest" parent="."]
[connection signal="item_selected" from="OptionButton" to="." method="_on_option_button_item_selected"]
[connection signal="pressed" from="DownloadButton" to="." method="_on_download_button_pressed"]
[connection signal="pressed" from="PatchButton" to="." method="_on_update_game_button_pressed"]
[connection signal="pressed" from="PatchButtonQuit" to="." method="_on_patch_button_quit_pressed"]
[connection signal="pressed" from="LaunchGameButton" to="." method="_on_launch_game_button_pressed"]
[connection signal="changed" from="DownloadProgressBar" to="." method="_check_download_progress"]
[connection signal="changed" from="UpdateProgressBar" to="." method="_on_file_downloaded_update_progress"]
[connection signal="pressed" from="button_quit" to="." method="_on_quit_button_down"]