Renamed search and add functions for Steam to _handle_steam_*, Added ItchIO handlers Updated Steam Add to check and see if we have already fetched the App information, and if so, use it, otherwise try to search. *Note* Need to clear after adding, so we don't accidently add to the wrong user, and need to validate if the game has already been added or not. Added Logic to for ItchIO.
249 lines
16 KiB
Text
249 lines
16 KiB
Text
[gd_scene format=3 uid="uid://cojuxefo7cryj"]
|
||
|
||
[ext_resource type="Texture2D" uid="uid://bexdhdpprh6aa" path="res://assets/font_awesome/magnifying-glass-location.svg" id="1_7mil5"]
|
||
[ext_resource type="Script" uid="uid://bj06jd8vt70im" path="res://UI/Panels/User/user_games.gd" id="1_myc1y"]
|
||
[ext_resource type="Texture2D" uid="uid://4nae34ce8pjn" path="res://assets/bootstrap/plus-circle.svg" id="2_0hl8v"]
|
||
[ext_resource type="Script" uid="uid://chgufd1youdel" path="res://lib/games_info/steam_service.gd" id="2_u0xo6"]
|
||
[ext_resource type="Script" uid="uid://cyef5m8x5f7k6" path="res://lib/games_info/itch_io_service.gd" id="3_hk3mv"]
|
||
[ext_resource type="PackedScene" uid="uid://685pgmw1cdw3" path="res://UI/Panels/steam_app_panel.tscn" id="3_j36q5"]
|
||
[ext_resource type="Script" uid="uid://bllsv2cy6komw" path="res://lib/models/steam_app_data.gd" id="4_myc1y"]
|
||
[ext_resource type="PackedScene" uid="uid://c0ahhupmdstxq" path="res://UI/Panels/itch_app_panel.tscn" id="8_hk3mv"]
|
||
|
||
[sub_resource type="Resource" id="Resource_yiww1"]
|
||
script = ExtResource("4_myc1y")
|
||
steam_app_id = 3712430
|
||
type = "game"
|
||
name = "Carbrix"
|
||
short_description = "Carbrix is a sci-fi inspired multiplayer vehicle-building sandbox game where creativity meets action. Design and construct anything you can imagine—from sleek cars and powerful trucks to futuristic planes, bikes, and rockets."
|
||
detailed_description = "<p class=\"bb_paragraph\" ></p><p class=\"bb_paragraph\" style=\"text-align: center\"><span class=\"bb_img_ctn\"><img class=\"bb_img\" src=\"https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/extras/ddedd3e2cbbbda0b12059974c2562381.avif?t=1771564874\" width=545 height=124 /></span></p><p class=\"bb_paragraph\" style=\"text-align: center\"></p><p class=\"bb_paragraph\" style=\"text-align: center\"><strong>Carbrix is a sci-fi inspired multiplayer vehicle-building sandbox game</strong> where creativity meets action. Design and construct anything you can imagine, from sleek cars and powerful trucks to futuristic planes, bikes, and rockets.</p><p class=\"bb_paragraph\" style=\"text-align: center\">Play solo or team up with friends in multiplayer to share your creations, race, battle, or simply explore endless possibilities. With intuitive building tools and a physics-driven world, Carbrix offers a playground of imagination, competition, and fun.</p><p class=\"bb_paragraph\" ></p><p class=\"bb_paragraph\" ></p><p class=\"bb_paragraph\" ></p><p class=\"bb_paragraph\" style=\"text-align: center\"><span class=\"bb_img_ctn\"><img class=\"bb_img\" src=\"https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/extras/62d477ed4a8d0610fe41ebcfe4d80a5c.avif?t=1771564874\" width=592 height=124 /></span></p><p class=\"bb_paragraph\" style=\"text-align: center\">With <strong>Carbrix</strong>, you can build cars, trucks, planes, bikes—and so much more!</p><p class=\"bb_paragraph\" style=\"text-align: center\">Thanks to the intuitive building system, you can <strong>build, test, and drive</strong> with ease.</p><p class=\"bb_paragraph\" ></p><p class=\"bb_paragraph\" ></p><h2 class=\"bb_tag\" style=\"text-align: center\"><span class=\"bb_img_ctn\"><img class=\"bb_img\" src=\"https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/extras/8c98159aaf423437bda13df2b30a2e5e.avif?t=1771564874\" width=905 height=121 /></span></h2><p class=\"bb_paragraph\" style=\"text-align: center\"><span class=\"bb_img_ctn\"><video class=\"bb_img\" autoplay muted loop playsinline crossorigin=\"anonymous\" poster=\"https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/extras/3babe6402e31c20319d567a0821a29c3.poster.avif?t=1771564874\" width=640 height=360 ><source src=\"https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/extras/3babe6402e31c20319d567a0821a29c3.webm?t=1771564874\" type=\"video/webm; codecs=vp9\"></video></span></p><p class=\"bb_paragraph\" style=\"text-align: center\">Looking for something to sink your teeth into?</p><p class=\"bb_paragraph\" style=\"text-align: center\">With the built-in destruction system, worry no more</p><p class=\"bb_paragraph\" style=\"text-align: center\">Create combat-oriented vehicles and battle your friends!</p><p class=\"bb_paragraph\" ></p><h2 class=\"bb_tag\" style=\"text-align: center\"><span class=\"bb_img_ctn\"><img class=\"bb_img\" src=\"https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/extras/b54bb17deb785da3089c5b644e3f91ab.avif?t=1771564874\" width=923 height=121 /></span></h2><p class=\"bb_paragraph\" style=\"text-align: center\"><strong>With multiplayer, the fun never ends!</strong><br>Team up with your friends to build together—or challenge them in head-to-head battles.</p><p class=\"bb_paragraph\" style=\"text-align: center\">Take part in thrilling races, compete in creative build contests,<br>or just mess around and see who can come up with the wildest inventions.</p><p class=\"bb_paragraph\" style=\"text-align: center\">With so many ways to play, there’s always something new to try!</p><p class=\"bb_paragraph\" ></p><p class=\"bb_paragraph\" ></p><p class=\"bb_paragraph\" ></p>"
|
||
header_image = "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/a18c9a286445c8553a4eac10ba42df6b96ce63ed/header.jpg?t=1771564874"
|
||
capsule_image = "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/0e3354ecdcc92437b51dcc8a7ce5aec3c956d6b8/capsule_231x87.jpg?t=1771564874"
|
||
capsule_imagev5 = "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/0e3354ecdcc92437b51dcc8a7ce5aec3c956d6b8/capsule_184x69.jpg?t=1771564874"
|
||
developers = Array[String](["Redston4D"])
|
||
publishers = Array[String](["Redston4D"])
|
||
platforms = {
|
||
"linux": true,
|
||
"mac": false,
|
||
"windows": true
|
||
}
|
||
genres = Array[Dictionary]([{
|
||
"description": "Action",
|
||
"id": "1"
|
||
}, {
|
||
"description": "Adventure",
|
||
"id": "25"
|
||
}, {
|
||
"description": "Casual",
|
||
"id": "4"
|
||
}, {
|
||
"description": "Indie",
|
||
"id": "23"
|
||
}, {
|
||
"description": "Racing",
|
||
"id": "9"
|
||
}, {
|
||
"description": "Simulation",
|
||
"id": "28"
|
||
}])
|
||
release_date = {
|
||
"coming_soon": true,
|
||
"date": "Coming soon"
|
||
}
|
||
screenshots_full = Array[String](["https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/4a0c3b9405921fd84ee530e87c4bb49e5bac47d5/ss_4a0c3b9405921fd84ee530e87c4bb49e5bac47d5.1920x1080.jpg?t=1771564874", "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/c3bfb9c95fafd7e2e42bf22b2e1a6324202ff3b3/ss_c3bfb9c95fafd7e2e42bf22b2e1a6324202ff3b3.1920x1080.jpg?t=1771564874", "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/41a0157dabd641a59f561befa2d36687405f906c/ss_41a0157dabd641a59f561befa2d36687405f906c.1920x1080.jpg?t=1771564874", "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/d6440c8c03850fa478c8c845561c6729bf69b981/ss_d6440c8c03850fa478c8c845561c6729bf69b981.1920x1080.jpg?t=1771564874", "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/8c8af6ab67b663d1860e5ebdfe3943eebe85e222/ss_8c8af6ab67b663d1860e5ebdfe3943eebe85e222.1920x1080.jpg?t=1771564874", "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/7ebb66440d8eef2e94a818d95f0805f89ca881d3/ss_7ebb66440d8eef2e94a818d95f0805f89ca881d3.1920x1080.jpg?t=1771564874"])
|
||
screenshots_thumbs = Array[String](["https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/4a0c3b9405921fd84ee530e87c4bb49e5bac47d5/ss_4a0c3b9405921fd84ee530e87c4bb49e5bac47d5.600x338.jpg?t=1771564874", "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/c3bfb9c95fafd7e2e42bf22b2e1a6324202ff3b3/ss_c3bfb9c95fafd7e2e42bf22b2e1a6324202ff3b3.600x338.jpg?t=1771564874", "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/41a0157dabd641a59f561befa2d36687405f906c/ss_41a0157dabd641a59f561befa2d36687405f906c.600x338.jpg?t=1771564874", "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/d6440c8c03850fa478c8c845561c6729bf69b981/ss_d6440c8c03850fa478c8c845561c6729bf69b981.600x338.jpg?t=1771564874", "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/8c8af6ab67b663d1860e5ebdfe3943eebe85e222/ss_8c8af6ab67b663d1860e5ebdfe3943eebe85e222.600x338.jpg?t=1771564874", "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/7ebb66440d8eef2e94a818d95f0805f89ca881d3/ss_7ebb66440d8eef2e94a818d95f0805f89ca881d3.600x338.jpg?t=1771564874"])
|
||
categories = Array[Dictionary]([{
|
||
"description": "Single-player",
|
||
"id": 2.0
|
||
}, {
|
||
"description": "Multi-player",
|
||
"id": 1.0
|
||
}, {
|
||
"description": "PvP",
|
||
"id": 49.0
|
||
}, {
|
||
"description": "Online PvP",
|
||
"id": 36.0
|
||
}, {
|
||
"description": "Co-op",
|
||
"id": 9.0
|
||
}, {
|
||
"description": "Online Co-op",
|
||
"id": 38.0
|
||
}, {
|
||
"description": "Steam Achievements",
|
||
"id": 22.0
|
||
}, {
|
||
"description": "Steam Workshop",
|
||
"id": 30.0
|
||
}, {
|
||
"description": "Custom Volume Controls",
|
||
"id": 68.0
|
||
}, {
|
||
"description": "Adjustable Difficulty",
|
||
"id": 78.0
|
||
}, {
|
||
"description": "Playable without Timed Input",
|
||
"id": 74.0
|
||
}, {
|
||
"description": "Save Anytime",
|
||
"id": 79.0
|
||
}, {
|
||
"description": "Stereo Sound",
|
||
"id": 69.0
|
||
}, {
|
||
"description": "Surround Sound",
|
||
"id": 70.0
|
||
}, {
|
||
"description": "Partial Controller Support",
|
||
"id": 18.0
|
||
}, {
|
||
"description": "Family Sharing",
|
||
"id": 62.0
|
||
}])
|
||
pc_requirements = "<strong>Minimum:</strong><br><ul class=\"bb_ul\"><li>Requires a 64-bit processor and operating system<br></li><li><strong>OS *:</strong> Windows 7 +<br></li><li><strong>Processor:</strong> Intel Core i5-4670k<br></li><li><strong>Memory:</strong> 8 GB RAM<br></li><li><strong>Graphics:</strong> Intel HD 4600 Graphics<br></li><li><strong>DirectX:</strong> Version 12<br></li><li><strong>Storage:</strong> 1 GB available space<br></li><li><strong>Additional Notes:</strong> Please make sure your GraphicsCard has vulkan</li></ul>"
|
||
mac_requirements = "{ \"minimum\": \"<strong>Minimum:</strong><br><ul class=\\\"bb_ul\\\"></ul>\", \"recommended\": \"<strong>Recommended:</strong><br><ul class=\\\"bb_ul\\\"></ul>\" }"
|
||
linux_requirements = "{ \"minimum\": \"<strong>Minimum:</strong><br><ul class=\\\"bb_ul\\\"><li><strong>Processor:</strong> Intel Core i5-4670k<br></li><li><strong>Memory:</strong> 8 GB RAM<br></li><li><strong>Graphics:</strong> Please make sure your GraphicsCard has vulkan<br></li><li><strong>Storage:</strong> 1 GB available space</li></ul>\", \"recommended\": \"<strong>Recommended:</strong><br><ul class=\\\"bb_ul\\\"><li><strong>Processor:</strong> Intel Core i5-8500<br></li><li><strong>Memory:</strong> 16 GB RAM<br></li><li><strong>Graphics:</strong> Please make sure your GraphicsCard has vulkan<br></li><li><strong>Storage:</strong> 1 GB available space</li></ul>\" }"
|
||
support_email = "CarbrixGame@gmail.com"
|
||
background_image = "https://store.akamai.steamstatic.com/images/storepagebackground/app/3712430?t=1771564874"
|
||
background_image_raw = "https://store.akamai.steamstatic.com/images/storepagebackground/app/3712430?t=1771564874"
|
||
|
||
[node name="UserGames" type="PanelContainer" unique_id=2022365407]
|
||
anchors_preset = 15
|
||
anchor_right = 1.0
|
||
anchor_bottom = 1.0
|
||
grow_horizontal = 2
|
||
grow_vertical = 2
|
||
script = ExtResource("1_myc1y")
|
||
|
||
[node name="SteamService" type="Node" parent="." unique_id=1181960445]
|
||
unique_name_in_owner = true
|
||
script = ExtResource("2_u0xo6")
|
||
metadata/_custom_type_script = "uid://chgufd1youdel"
|
||
|
||
[node name="ItchIOService" type="Node" parent="." unique_id=400309790]
|
||
unique_name_in_owner = true
|
||
script = ExtResource("3_hk3mv")
|
||
metadata/_custom_type_script = "uid://cyef5m8x5f7k6"
|
||
|
||
[node name="Splitter" type="HSplitContainer" parent="." unique_id=182228020]
|
||
unique_name_in_owner = true
|
||
layout_mode = 2
|
||
split_offsets = PackedInt32Array(530)
|
||
split_offset = 530
|
||
|
||
[node name="VBoxContainer" type="VBoxContainer" parent="Splitter" unique_id=869345086]
|
||
layout_mode = 2
|
||
|
||
[node name="Label" type="Label" parent="Splitter/VBoxContainer" unique_id=385647229]
|
||
layout_mode = 2
|
||
text = "Games"
|
||
horizontal_alignment = 1
|
||
|
||
[node name="HSeparator" type="HSeparator" parent="Splitter/VBoxContainer" unique_id=1347394535]
|
||
layout_mode = 2
|
||
|
||
[node name="HBoxContainer" type="HBoxContainer" parent="Splitter/VBoxContainer" unique_id=123570347]
|
||
layout_mode = 2
|
||
size_flags_vertical = 3
|
||
|
||
[node name="SteamColumn" type="VBoxContainer" parent="Splitter/VBoxContainer/HBoxContainer" unique_id=1965017268]
|
||
layout_mode = 2
|
||
size_flags_horizontal = 3
|
||
|
||
[node name="SteamSearch" type="HBoxContainer" parent="Splitter/VBoxContainer/HBoxContainer/SteamColumn" unique_id=476996992]
|
||
layout_mode = 2
|
||
|
||
[node name="SteamGameInput" type="LineEdit" parent="Splitter/VBoxContainer/HBoxContainer/SteamColumn/SteamSearch" unique_id=135652688]
|
||
unique_name_in_owner = true
|
||
layout_mode = 2
|
||
size_flags_horizontal = 3
|
||
placeholder_text = "steam app id or url"
|
||
|
||
[node name="SteamSearch" type="Button" parent="Splitter/VBoxContainer/HBoxContainer/SteamColumn/SteamSearch" unique_id=1427348414]
|
||
unique_name_in_owner = true
|
||
custom_minimum_size = Vector2(32, 32)
|
||
layout_mode = 2
|
||
icon = ExtResource("1_7mil5")
|
||
icon_alignment = 1
|
||
expand_icon = true
|
||
|
||
[node name="AddSteamGame" type="Button" parent="Splitter/VBoxContainer/HBoxContainer/SteamColumn/SteamSearch" unique_id=1199771317]
|
||
unique_name_in_owner = true
|
||
custom_minimum_size = Vector2(32, 32)
|
||
layout_mode = 2
|
||
icon = ExtResource("2_0hl8v")
|
||
icon_alignment = 1
|
||
expand_icon = true
|
||
|
||
[node name="PanelContainer" type="PanelContainer" parent="Splitter/VBoxContainer/HBoxContainer/SteamColumn" unique_id=1782797010]
|
||
layout_mode = 2
|
||
size_flags_vertical = 3
|
||
|
||
[node name="ScrollContainer" type="ScrollContainer" parent="Splitter/VBoxContainer/HBoxContainer/SteamColumn/PanelContainer" unique_id=1538765940]
|
||
layout_mode = 2
|
||
|
||
[node name="SteamList" type="VBoxContainer" parent="Splitter/VBoxContainer/HBoxContainer/SteamColumn/PanelContainer/ScrollContainer" unique_id=788126228]
|
||
unique_name_in_owner = true
|
||
layout_mode = 2
|
||
size_flags_horizontal = 3
|
||
|
||
[node name="VSeparator" type="VSeparator" parent="Splitter/VBoxContainer/HBoxContainer" unique_id=220505221]
|
||
layout_mode = 2
|
||
|
||
[node name="ItchColumn" type="VBoxContainer" parent="Splitter/VBoxContainer/HBoxContainer" unique_id=1035792899]
|
||
layout_mode = 2
|
||
size_flags_horizontal = 3
|
||
|
||
[node name="ItchSearch" type="HBoxContainer" parent="Splitter/VBoxContainer/HBoxContainer/ItchColumn" unique_id=58917565]
|
||
layout_mode = 2
|
||
|
||
[node name="ItchInput" type="LineEdit" parent="Splitter/VBoxContainer/HBoxContainer/ItchColumn/ItchSearch" unique_id=81918204]
|
||
unique_name_in_owner = true
|
||
layout_mode = 2
|
||
size_flags_horizontal = 3
|
||
placeholder_text = "itch.io link"
|
||
|
||
[node name="ItchFetch" type="Button" parent="Splitter/VBoxContainer/HBoxContainer/ItchColumn/ItchSearch" unique_id=1917953068]
|
||
unique_name_in_owner = true
|
||
custom_minimum_size = Vector2(32, 32)
|
||
layout_mode = 2
|
||
icon = ExtResource("1_7mil5")
|
||
icon_alignment = 1
|
||
expand_icon = true
|
||
|
||
[node name="ItchAdd" type="Button" parent="Splitter/VBoxContainer/HBoxContainer/ItchColumn/ItchSearch" unique_id=1726319206]
|
||
unique_name_in_owner = true
|
||
custom_minimum_size = Vector2(32, 32)
|
||
layout_mode = 2
|
||
icon = ExtResource("2_0hl8v")
|
||
icon_alignment = 1
|
||
expand_icon = true
|
||
|
||
[node name="PanelContainer" type="PanelContainer" parent="Splitter/VBoxContainer/HBoxContainer/ItchColumn" unique_id=1055230274]
|
||
layout_mode = 2
|
||
size_flags_vertical = 3
|
||
|
||
[node name="ScrollContainer" type="ScrollContainer" parent="Splitter/VBoxContainer/HBoxContainer/ItchColumn/PanelContainer" unique_id=1143536360]
|
||
layout_mode = 2
|
||
|
||
[node name="ItchList" type="VBoxContainer" parent="Splitter/VBoxContainer/HBoxContainer/ItchColumn/PanelContainer/ScrollContainer" unique_id=1691269823]
|
||
unique_name_in_owner = true
|
||
layout_mode = 2
|
||
size_flags_horizontal = 3
|
||
|
||
[node name="TabContainer" type="TabContainer" parent="Splitter" unique_id=298665581]
|
||
layout_mode = 2
|
||
current_tab = 1
|
||
tabs_visible = false
|
||
|
||
[node name="SteamAppPanel" parent="Splitter/TabContainer" unique_id=597550935 instance=ExtResource("3_j36q5")]
|
||
unique_name_in_owner = true
|
||
visible = false
|
||
layout_mode = 2
|
||
test_data = SubResource("Resource_yiww1")
|
||
metadata/_tab_index = 0
|
||
|
||
[node name="ItchAppPanel" parent="Splitter/TabContainer" unique_id=691251029 instance=ExtResource("8_hk3mv")]
|
||
unique_name_in_owner = true
|
||
layout_mode = 2
|
||
metadata/_tab_index = 1
|