The new 'Only show games available on this platform' checkbox in the plugin settings drops games whose platforms don't include the OS OpenGamepadUI is running on (e.g. Windows-only games on Linux). Games with no platform info at all (HTML5) are kept since there's nothing to filter on. The setting is read on every library load, so toggling it reloads the itch.io library without a restart.
53 lines
1.4 KiB
Text
53 lines
1.4 KiB
Text
[gd_scene load_steps=2 format=3 uid="uid://itch_settings_scene"]
|
|
|
|
[ext_resource type="Script" path="res://plugins/itch/core/itch_settings.gd" id="1"]
|
|
|
|
[node name="ItchSettings" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
script = ExtResource("1")
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -200.0
|
|
offset_top = -60.0
|
|
offset_right = 200.0
|
|
offset_bottom = 60.0
|
|
|
|
[node name="TitleLabel" type="Label" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
text = "itch.io"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="StatusLabel" type="Label" parent="VBoxContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "Status: starting butlerd..."
|
|
|
|
[node name="ApiKeyInput" type="LineEdit" parent="VBoxContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
placeholder_text = "itch.io API key"
|
|
|
|
[node name="HelpLabel" type="Label" parent="VBoxContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
autowrap_mode = 2
|
|
text = "Get an API key from https://itch.io/user/settings/api-keys"
|
|
|
|
[node name="FilterUnsupported" type="CheckBox" parent="VBoxContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "Only show games available on this platform"
|
|
|
|
[node name="SaveButton" type="Button" parent="VBoxContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "Save and Log In"
|