mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-29 00:55:42 +00:00
Merge branch 'feat/godot' of https://github.com/RetroDECK/RetroDECK into feat/okonomiyaki
This commit is contained in:
commit
4e591549ad
|
@ -16,6 +16,7 @@ borders_folder=/home/deck/retrodeck/borders
|
|||
sdcard=/run/media/mmcblk0p1
|
||||
|
||||
[options]
|
||||
|
||||
power_user_warning=true
|
||||
desktop_mode_warning=true
|
||||
low_space_warning=true
|
||||
|
@ -31,6 +32,9 @@ developer_options=false
|
|||
kiroi_ponzu=false
|
||||
akai_ponzu=false
|
||||
steam_sync=false
|
||||
sound_effects=true
|
||||
volume_effects=10
|
||||
font=1
|
||||
|
||||
[cheevos]
|
||||
duckstation=false
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
[gd_resource type="Theme" load_steps=5 format=3 uid="uid://co27jgr76wvcl"]
|
||||
|
||||
[ext_resource type="FontFile" uid="uid://c8lbo5ljgtaaa" path="res://assets/fonts/OpenDyslexic3/OpenDyslexic3-Regular.ttf" id="1_d8f12"]
|
||||
[ext_resource type="Texture2D" uid="uid://buod4n6hw4i2m" path="res://assets/icons/pixelitos/vcs-normal.svg" id="1_pvl23"]
|
||||
[ext_resource type="Texture2D" uid="uid://cn0tfnnihjvy7" path="res://assets/icons/pixelitos/vcs-grey.svg" id="2_ud3yg"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ghisc"]
|
||||
bg_color = Color(0.6, 0.168627, 0.6, 0.372549)
|
||||
|
||||
[resource]
|
||||
default_font = ExtResource("1_d8f12")
|
||||
Button/styles/focus = SubResource("StyleBoxFlat_ghisc")
|
||||
CheckBox/constants/check_v_offset = 0
|
||||
CheckBox/constants/h_separation = 0
|
||||
CheckBox/icons/checked = ExtResource("1_pvl23")
|
||||
CheckBox/icons/unchecked = ExtResource("2_ud3yg")
|
|
@ -1,14 +1,65 @@
|
|||
[gd_resource type="Theme" load_steps=4 format=3 uid="uid://hhc60cllcg47"]
|
||||
[gd_resource type="Theme" load_steps=7 format=3 uid="uid://hhc60cllcg47"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://buod4n6hw4i2m" path="res://assets/icons/pixelitos/vcs-normal.svg" id="1_pvl23"]
|
||||
[ext_resource type="Texture2D" uid="uid://cn0tfnnihjvy7" path="res://assets/icons/pixelitos/vcs-grey.svg" id="2_ud3yg"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ghisc"]
|
||||
bg_color = Color(0.6, 0.168627, 0.6, 0.372549)
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_md22p"]
|
||||
bg_color = Color(0.580392, 0.419608, 0.921569, 1)
|
||||
border_width_left = 15
|
||||
border_width_top = 15
|
||||
border_width_right = 15
|
||||
border_width_bottom = 15
|
||||
border_color = Color(0.843137, 0.137255, 0.909804, 1)
|
||||
border_blend = true
|
||||
corner_radius_top_left = 25
|
||||
corner_radius_top_right = 25
|
||||
corner_radius_bottom_right = 25
|
||||
corner_radius_bottom_left = 25
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_kr58o"]
|
||||
bg_color = Color(0.580392, 0.419608, 0.921569, 1)
|
||||
border_width_left = 15
|
||||
border_width_top = 15
|
||||
border_width_right = 15
|
||||
border_width_bottom = 15
|
||||
border_color = Color(0.136826, 0.136826, 0.136826, 1)
|
||||
border_blend = true
|
||||
corner_radius_top_left = 25
|
||||
corner_radius_top_right = 25
|
||||
corner_radius_bottom_right = 25
|
||||
corner_radius_bottom_left = 25
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_0ahfc"]
|
||||
bg_color = Color(0.454524, 0.454524, 0.454524, 1)
|
||||
border_width_left = 10
|
||||
border_width_top = 10
|
||||
border_width_right = 10
|
||||
border_width_bottom = 10
|
||||
border_color = Color(0.101961, 0.623529, 1, 1)
|
||||
border_blend = true
|
||||
corner_radius_top_left = 25
|
||||
corner_radius_top_right = 25
|
||||
corner_radius_bottom_right = 25
|
||||
corner_radius_bottom_left = 25
|
||||
corner_detail = 7
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_o8sf1"]
|
||||
bg_color = Color(0.101961, 0.623529, 1, 1)
|
||||
border_width_left = 15
|
||||
border_width_top = 14
|
||||
border_width_right = 15
|
||||
border_width_bottom = 15
|
||||
border_blend = true
|
||||
corner_radius_top_left = 25
|
||||
corner_radius_top_right = 25
|
||||
corner_radius_bottom_right = 25
|
||||
corner_radius_bottom_left = 25
|
||||
|
||||
[resource]
|
||||
Button/styles/focus = SubResource("StyleBoxFlat_ghisc")
|
||||
CheckBox/constants/check_v_offset = 0
|
||||
CheckBox/constants/h_separation = 0
|
||||
Button/constants/align_to_largest_stylebox = 1
|
||||
Button/styles/focus = SubResource("StyleBoxFlat_md22p")
|
||||
Button/styles/hover = SubResource("StyleBoxFlat_kr58o")
|
||||
Button/styles/normal = SubResource("StyleBoxFlat_0ahfc")
|
||||
Button/styles/pressed = SubResource("StyleBoxFlat_o8sf1")
|
||||
CheckBox/icons/checked = ExtResource("1_pvl23")
|
||||
CheckBox/icons/unchecked = ExtResource("2_ud3yg")
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
[gd_resource type="Theme" load_steps=5 format=3 uid="uid://dcyix4kssqal2"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://buod4n6hw4i2m" path="res://assets/icons/pixelitos/vcs-normal.svg" id="1_pvl23"]
|
||||
[ext_resource type="FontFile" uid="uid://1x3s2oon2g64" path="res://assets/fonts/akrobat/Akrobat-Regular.otf" id="1_qs1qb"]
|
||||
[ext_resource type="Texture2D" uid="uid://cn0tfnnihjvy7" path="res://assets/icons/pixelitos/vcs-grey.svg" id="2_ud3yg"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ghisc"]
|
||||
bg_color = Color(0.6, 0.168627, 0.6, 0.372549)
|
||||
|
||||
[resource]
|
||||
default_font = ExtResource("1_qs1qb")
|
||||
Button/styles/focus = SubResource("StyleBoxFlat_ghisc")
|
||||
CheckBox/constants/check_v_offset = 0
|
||||
CheckBox/constants/h_separation = 0
|
||||
CheckBox/icons/checked = ExtResource("1_pvl23")
|
||||
CheckBox/icons/unchecked = ExtResource("2_ud3yg")
|
|
@ -1,16 +0,0 @@
|
|||
[gd_resource type="Theme" load_steps=5 format=3 uid="uid://3ljv5xgd4c1u"]
|
||||
|
||||
[ext_resource type="FontFile" uid="uid://q405aelgnmvo" path="res://assets/fonts/munro/munro.ttf" id="1_kirwi"]
|
||||
[ext_resource type="Texture2D" uid="uid://buod4n6hw4i2m" path="res://assets/icons/pixelitos/vcs-normal.svg" id="1_pvl23"]
|
||||
[ext_resource type="Texture2D" uid="uid://cn0tfnnihjvy7" path="res://assets/icons/pixelitos/vcs-grey.svg" id="2_ud3yg"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ghisc"]
|
||||
bg_color = Color(0.6, 0.168627, 0.6, 0.372549)
|
||||
|
||||
[resource]
|
||||
default_font = ExtResource("1_kirwi")
|
||||
Button/styles/focus = SubResource("StyleBoxFlat_ghisc")
|
||||
CheckBox/constants/check_v_offset = 0
|
||||
CheckBox/constants/h_separation = 0
|
||||
CheckBox/icons/checked = ExtResource("1_pvl23")
|
||||
CheckBox/icons/unchecked = ExtResource("2_ud3yg")
|
|
@ -8,17 +8,8 @@ var console: bool = false
|
|||
var BIOS_COLUMNS_BASIC := ["BIOS File Name", "System", "Found", "Hash Match", "Description"]
|
||||
var BIOS_COLUMNS_EXPERT := ["BIOS File Name", "System", "Found", "Hash Match", "Description", "Subdirectory", "Hash"]
|
||||
@onready var bios_type:int = get_tree().current_scene.bios_type
|
||||
@onready var custom_theme: Theme = get_tree().current_scene.custom_theme
|
||||
|
||||
func _ready():
|
||||
$".".theme = custom_theme
|
||||
#Check if XDG_RUNTIME_DIR is set and choose temp file location
|
||||
if OS.has_environment("XDG_RUNTIME_DIR"):
|
||||
bios_tempfile = OS.get_environment("XDG_RUNTIME_DIR") + "/godot_temp/godot_bios_files_checked.tmp"
|
||||
#bios_tempfile = "/var/config/retrodeck/godot/godot_bios_files_checked.tmp"
|
||||
else:
|
||||
bios_tempfile = "/var/config/retrodeck/godot/godot_bios_files_checked.tmp"
|
||||
|
||||
var table := $Table
|
||||
|
||||
if bios_type == 0: #Basic BIOS button pressed
|
||||
|
@ -38,27 +29,17 @@ func _ready():
|
|||
#var parameters = ["log", "i", "Configurator: " + "check_bios_files"]
|
||||
# classFunctions.execute_command(command, parameters, false)
|
||||
var parameters = ["check_bios_files","basic"]
|
||||
#result = classFunctions.execute_command(command, parameters, false)
|
||||
#threaded
|
||||
await run_thread_command(command, parameters, console)
|
||||
|
||||
bios_result = await class_functions.run_thread_command(class_functions.wrapper_command, parameters, console)
|
||||
else: #Assume advanced BIOS button pressed
|
||||
var parameters = ["check_bios_files"]
|
||||
class_functions.execute_command(command, parameters, false)
|
||||
await run_thread_command(command, parameters, console)
|
||||
#OS.execute("/app/tools/retrodeck_function_wrapper.sh",["check_bios_files"])
|
||||
|
||||
if file.file_exists(bios_tempfile): #File to be removed after script is done
|
||||
var bios_list := file.open(bios_tempfile, FileAccess.READ)
|
||||
var bios_line := []
|
||||
while ! bios_list.eof_reached():
|
||||
bios_line = bios_list.get_csv_line("^")
|
||||
bios_result = await class_functions.run_thread_command(class_functions.wrapper_command, parameters, console)
|
||||
var bios_list = bios_result["output"]
|
||||
var bios_lines = bios_list.split("\n")
|
||||
for line in bios_lines:
|
||||
var bios_line = line.split("^")
|
||||
var table_line: TreeItem = table.create_item(root)
|
||||
for i in bios_line.size():
|
||||
table_line.set_text(i, bios_line[i])
|
||||
if table_line.get_index() % 2 == 1:
|
||||
table_line.set_custom_bg_color(i,Color(0.15, 0.15, 0.15, 1),false)
|
||||
table_line.set_custom_color(i,Color(1,1,1,1))
|
||||
|
||||
func run_thread_command(command: String, parameters: Array, console: bool) -> void:
|
||||
var result = await class_functions.run_command_in_thread(command, parameters, console)
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
extends Control
|
||||
|
||||
var content = null
|
||||
@onready var custom_theme: Theme = get_tree().current_scene.custom_theme
|
||||
#@onready var button_off = get_node(current_scene.%l1_button)# .current_scene.l1_button
|
||||
@onready var lbhide: TextureButton = get_tree().current_scene.get_node("%l1_button")
|
||||
@onready var rbhide: TextureButton = get_tree().current_scene.get_node("%r1_button")
|
||||
|
@ -9,8 +8,8 @@ var content = null
|
|||
func _ready():
|
||||
lbhide.visible=false
|
||||
rbhide.visible=false
|
||||
$".".theme = custom_theme
|
||||
if (content != null):
|
||||
# TODO this alowes copy and paste from RTB in logs?
|
||||
if (content != null and bios_type > 0):
|
||||
$Panel/MarginContainer/VBoxContainer/ContentContainer/MarginContainer.add_child(content)
|
||||
|
||||
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="csv_translation"
|
||||
type="Translation"
|
||||
uid="uid://cwb782o5jh5lx"
|
||||
|
||||
[deps]
|
||||
|
||||
files=["res://locales/interface.en.translation", "res://locales/interface.it.translation", "res://locales/interface.de.translation", "res://locales/interface.sv.translation", "res://locales/interface.ua.translation", "res://locales/interface.ja.translation", "res://locales/interface.zh.translation"]
|
||||
|
||||
source_file="res://locales/interface.csv"
|
||||
dest_files=["res://locales/interface.en.translation", "res://locales/interface.it.translation", "res://locales/interface.de.translation", "res://locales/interface.sv.translation", "res://locales/interface.ua.translation", "res://locales/interface.ja.translation", "res://locales/interface.zh.translation"]
|
||||
|
||||
[params]
|
||||
|
||||
compress=true
|
||||
delimiter=0
|
File diff suppressed because it is too large
Load diff
|
@ -27,9 +27,7 @@ data_handler="*res://scripts/data_handler.gd"
|
|||
|
||||
window/size/viewport_width=1280
|
||||
window/size/viewport_height=800
|
||||
window/size/transparent=true
|
||||
window/stretch/mode="canvas_items"
|
||||
window/per_pixel_transparency/allowed=true
|
||||
|
||||
[filesystem]
|
||||
|
||||
|
@ -77,6 +75,7 @@ next_tab={
|
|||
"events": [Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":10,"pressure":0.0,"pressed":false,"script":null)
|
||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":69,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":5,"pressure":0.0,"pressed":true,"script":null)
|
||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194328,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
previous_tab={
|
||||
|
@ -84,6 +83,7 @@ previous_tab={
|
|||
"events": [Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":9,"pressure":0.0,"pressed":false,"script":null)
|
||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":81,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":4,"pressure":0.0,"pressed":true,"script":null)
|
||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194326,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
back_button={
|
||||
|
@ -100,6 +100,7 @@ action_button={
|
|||
quit1={
|
||||
"deadzone": 0.5,
|
||||
"events": [Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":6,"pressure":0.0,"pressed":true,"script":null)
|
||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194306,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
quit2={
|
||||
|
@ -114,7 +115,6 @@ locale/translation_remaps={
|
|||
"res://res/pixel_ui_theme/8x8_ui_elements.png": PackedStringArray("res://res/pixel_ui_theme/8x8_ui_elements_de.png:de", "res://res/pixel_ui_theme/8x8_ui_elements_sv.png:sv"),
|
||||
"res://res/pixel_ui_theme/8x8_ui_elements2x.png": PackedStringArray("res://res/pixel_ui_theme/8x8_ui_elements2x_de.png:de", "res://res/pixel_ui_theme/8x8_ui_elements2x_sv.png:sv")
|
||||
}
|
||||
locale/translations=PackedStringArray("res://locales/interface.en.translation", "res://locales/interface.it.translation", "res://locales/interface.de.translation", "res://locales/interface.sv.translation", "res://locales/interface.ua.translation", "res://locales/interface.zh.translation", "res://locales/interface.ja.translation")
|
||||
|
||||
[rendering]
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[gd_resource type="Theme" load_steps=132 format=4 uid="uid://bq8dsxeo34sl"]
|
||||
[gd_resource type="Theme" load_steps=129 format=4 uid="uid://bq8dsxeo34sl"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dx0u5hiwxfgu5" path="res://res/pixel_ui_theme/8x8_ui_elements.png" id="1_ak8qr"]
|
||||
[ext_resource type="Texture2D" uid="uid://c4vntk8yri4yw" path="res://res/pixel_ui_theme/8x8_ui_elements2x.png" id="2_jrpaj"]
|
||||
|
@ -1087,7 +1087,7 @@ cache/0/16/0/glyphs/95/uv_rect = Rect2(92, 148, 6, 1)
|
|||
cache/0/16/0/glyphs/95/texture_idx = 0
|
||||
cache/0/16/0/kerning_overrides/16/0 = Vector2(0, 0)
|
||||
|
||||
[sub_resource type="Image" id="Image_5erl7"]
|
||||
[sub_resource type="Image" id="Image_nu6pr"]
|
||||
data = {
|
||||
"data": PackedByteArray("4ODg4ODg4OD//////////+Dg4ODg4ODg///////////g4ODg4ODg4P//////////4ODg4ODg4OD//////////+Dg4ODg4ODg///////////g4ODg4ODg4P//////////4ODg4ODg4OD//////////+Dg4ODg4ODg/////////////////////+Dg4ODg4ODg///////////g4ODg4ODg4P//////////4ODg4ODg4OD//////////+Dg4ODg4ODg///////////g4ODg4ODg4P//////////4ODg4ODg4OD//////////+Dg4ODg4ODg///////////g4ODg4ODg4A=="),
|
||||
"format": "Lum8",
|
||||
|
@ -1097,9 +1097,9 @@ data = {
|
|||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="447"]
|
||||
image = SubResource("Image_5erl7")
|
||||
image = SubResource("Image_nu6pr")
|
||||
|
||||
[sub_resource type="Image" id="Image_u2s1p"]
|
||||
[sub_resource type="Image" id="Image_g63b3"]
|
||||
data = {
|
||||
"data": PackedByteArray("AAQACgARABkAHwAiACQAJAAkACQAIgAfABkAEQAKAAQACgAVACUANAA/AEYARwBIAEgARwBGAD8ANAAlABUACgARACU/d1rvVv9W/1b/Vv9W/1b/Vv9W/1rvP3cAJQARABkANFnvSP9E/0P/Q/9D/0P/Q/9D/0T/SP9Z7wA0ABkAHwA/VP9D/0P/Q/9D/0P/Q/9D/0P/Q/9D/1T/AD8AHwAiAEZS/0L/Qv9C/0L/Qv9C/0L/Qv9C/0L/Uv8ARgAiACQAR1H/QP9A/0D/QP9A/0D/QP9A/0D/QP9R/wBHACQAJABIT/8//z//P/8//z//P/8//z//P/8//0//AEgAJAAkAEhN/z7/Pv8+/z7/Pv8+/z7/Pv8+/z7/Tf8ASAAkACQAR0z/Pf89/z3/Pf89/z3/Pf89/z3/Pf9M/wBHACQAIgBGSv87/zv/O/87/zv/O/87/zv/O/87/0r/AEYAIgAfAD9J/zr/Ov86/zr/Ov86/zr/Ov86/zr/Sf8APwAfABkANEvvPf85/zn/Of85/zn/Of85/zn/Pf9L7wA0ABkAEQAlNXdK70f/Rv9G/0b/Rv9G/0b/R/9K7TV3ACUAEQAKABUAJQA0AD8ARgBHAEgASABHAEYAPwA0ACUAFQAKAAQACgARABkAHwAiACQAJAAkACQAIgAfABkAEQAKAAQ="),
|
||||
"format": "LumAlpha8",
|
||||
|
@ -1109,7 +1109,7 @@ data = {
|
|||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="53"]
|
||||
image = SubResource("Image_u2s1p")
|
||||
image = SubResource("Image_g63b3")
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="54"]
|
||||
content_margin_left = 6.0
|
||||
|
@ -1123,7 +1123,7 @@ expand_margin_right = 2.0
|
|||
expand_margin_bottom = 2.0
|
||||
region_rect = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="Image" id="Image_7jtn8"]
|
||||
[sub_resource type="Image" id="Image_asfoq"]
|
||||
data = {
|
||||
"data": PackedByteArray("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEeMvw5HjL85R4y/aEeMv3pHjL97R4y/e0eMv3tHjL97R4y/ekeMv2hHjL85R4y/DgAAAAAAAAAAAAAAAAAAAABHjL86R4y/dEeMvxBHjL8IR4y/CEeMvwhHjL8IR4y/CEeMvwhHjL8QR4y/dEeMvzoAAAAAAAAAAAAAAAAAAAAAR4y/aUeMvw8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEeMvw9HjL9pAAAAAAAAAAAAAAAAAAAAAEeMv3tHjL8GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABHjL8GR4y/ewAAAAAAAAAAAAAAAAAAAABHjL97R4y/CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAR4y/CEeMv3sAAAAAAAAAAAAAAAAAAAAAR4y/e0eMvwgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEeMvwhHjL97AAAAAAAAAAAAAAAAAAAAAEeMv3tHjL8IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABHjL8IR4y/ewAAAAAAAAAAAAAAAAAAAABHjL97R4y/CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAR4y/CEeMv3sAAAAAAAAAAAAAAAAAAAAAR4y/e0eMvwYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEeMvwZHjL97AAAAAAAAAAAAAAAAAAAAAEeMv2lHjL8PAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABHjL8OR4y/aQAAAAAAAAAAAAAAAAAAAABHjL86R4y/dUeMvw9HjL8IR4y/CEeMvwhHjL8IR4y/CEeMvwhHjL8RR4y/dEeMvzoAAAAAAAAAAAAAAAAAAAAAR4y/DkeMvzpHjL9oR4y/ekeMv3tHjL97R4y/e0eMv3tHjL96R4y/aEeMvzlHjL8OAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="),
|
||||
"format": "RGBA8",
|
||||
|
@ -1133,7 +1133,7 @@ data = {
|
|||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="56"]
|
||||
image = SubResource("Image_7jtn8")
|
||||
image = SubResource("Image_asfoq")
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="57"]
|
||||
content_margin_left = 6.0
|
||||
|
@ -1147,7 +1147,7 @@ expand_margin_right = 2.0
|
|||
expand_margin_bottom = 2.0
|
||||
region_rect = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="Image" id="Image_vhvkw"]
|
||||
[sub_resource type="Image" id="Image_ki6gy"]
|
||||
data = {
|
||||
"data": PackedByteArray("AAAABAAAAAoAAAARAAAAGQAAAB8AAAAiAAAAJAAAACQAAAAkAAAAJAAAACIAAAAfAAAAGQAAABEAAAAKAAAABAAAAAoAAAAVAAAAJQAAADQAAAA/AAAARgAAAEcAAABIAAAASAAAAEcAAABGAAAAPwAAADQAAAAlAAAAFQAAAAoAAAARAAAAJUJAS3dfWmzvW1do/1pWZ/9aVmf/WlZn/1pWZ/9aVmf/WlZn/1tXaP9fWmzvQkBLdwAAACUAAAARAAAAGQAAADRfWmvvTUpX/0lGUv9IRVH/SEVR/0hFUf9IRVH/SEVR/0hFUf9JRlL/TUpX/19aa+8AAAA0AAAAGQAAAB8AAAA/W1dm/0lGUv9IRVH/SEVR/0hFUf9IRVH/SEVR/0hFUf9IRVH/SEVR/0lGUv9bV2b/AAAAPwAAAB8AAAAiAAAARllVZP9HRFD/R0RQ/0dEUP9HRFD/R0RQ/0dEUP9HRFD/R0RQ/0dEUP9HRFD/WVVk/wAAAEYAAAAiAAAAJAAAAEdYVGT/RkNQ/0ZDUP9GQ1D/RkNQ/0ZDUP9GQ1D/RkNQ/0ZDUP9GQ1D/RkNQ/1hUZP8AAABHAAAAJAAAACQAAABIVlNj/0VCT/9FQk//RUJP/0VCT/9FQk//RUJP/0VCT/9FQk//RUJP/0VCT/9WU2P/AAAASAAAACQAAAAkAAAASFZTYv9FQk7/RUJO/0VCTv9FQk7/RUJO/0VCTv9FQk7/RUJO/0VCTv9FQk7/VlNi/wAAAEgAAAAkAAAAJAAAAEdVUWL/REFO/0RBTv9EQU7/REFO/0RBTv9EQU7/REFO/0RBTv9EQU7/REFO/1VRYv8AAABHAAAAJAAAACIAAABGVVFg/0RBTf9EQU3/REFN/0RBTf9EQU3/REFN/0RBTf9EQU3/REFN/0RBTf9VUWD/AAAARgAAACIAAAAfAAAAP1VRYP9EQU3/Q0BM/0NATP9DQEz/Q0BM/0NATP9DQEz/Q0BM/0NATP9EQU3/VVFg/wAAAD8AAAAfAAAAGQAAADRWU2TvR0NR/0M/Tf9CP0z/Qj9M/0I/TP9CP0z/Qj9M/0I/TP9DP03/R0NR/1dTZO8AAAA0AAAAGQAAABEAAAAlPjtGd1dTY+9TUF//U09e/1NPXv9TT17/U09e/1NPXv9TT17/U1Bf/1dTY+0+O0Z3AAAAJQAAABEAAAAKAAAAFQAAACUAAAA0AAAAPwAAAEYAAABHAAAASAAAAEgAAABHAAAARgAAAD8AAAA0AAAAJQAAABUAAAAKAAAABAAAAAoAAAARAAAAGQAAAB8AAAAiAAAAJAAAACQAAAAkAAAAJAAAACIAAAAfAAAAGQAAABEAAAAKAAAABA=="),
|
||||
"format": "RGBA8",
|
||||
|
@ -1157,7 +1157,7 @@ data = {
|
|||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="59"]
|
||||
image = SubResource("Image_vhvkw")
|
||||
image = SubResource("Image_ki6gy")
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="60"]
|
||||
content_margin_left = 6.0
|
||||
|
@ -1175,7 +1175,7 @@ expand_margin_right = 2.0
|
|||
expand_margin_bottom = 2.0
|
||||
region_rect = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="Image" id="Image_djtfc"]
|
||||
[sub_resource type="Image" id="Image_jvn7o"]
|
||||
data = {
|
||||
"data": PackedByteArray("AAAABAAAAAoAAAARAAAAGQAAAB8AAAAiAAAAJAAAACQAAAAkAAAAJAAAACIAAAAfAAAAGQAAABEAAAAKAAAABAAAAAoAAAAVAAAAJQAAADQAAAA/AAAARgAAAEcAAABIAAAASAAAAEcAAABGAAAAPwAAADQAAAAlAAAAFQAAAAoAAAARAAAAJTw6RHdWU2HvUlBd/1FPXf9RT13/UU9d/1FPXf9RT13/UU9d/1JQXf9WU2HvPDpEdwAAACUAAAARAAAAGQAAADRWUmDvRkJO/0I+Sv9BPkn/QT5J/0E+Sf9BPkn/QT5J/0E+Sf9CPkr/RkJO/1ZSYO8AAAA0AAAAGQAAAB8AAAA/UU5b/0E+Sf9APkj/QD5I/0A+SP9APkj/QD5I/0A+SP9APkj/QD5I/0E+Sf9RTlv/AAAAPwAAAB8AAAAiAAAARk9MWf8/PUf/Pz1H/z89R/8/PUf/Pz1H/z89R/8/PUf/Pz1H/z89R/8/PUf/T0xZ/wAAAEYAAAAiAAAAJAAAAEdOSlj/PjtG/z47Rv8+O0b/PjtG/z47Rv8+O0b/PjtG/z47Rv8+O0b/PjtG/05KWP8AAABHAAAAJAAAACQAAABIS0lV/zw6RP88OkT/PDpE/zw6RP88OkT/PDpE/zw6RP88OkT/PDpE/zw6RP9LSVX/AAAASAAAACQAAAAkAAAASEpHVP87OUP/OzlD/zs5Q/87OUP/OzlD/zs5Q/87OUP/OzlD/zs5Q/87OUP/SkdU/wAAAEgAAAAkAAAAJAAAAEdJRlP/OjhC/zo4Qv86OEL/OjhC/zo4Qv86OEL/OjhC/zo4Qv86OEL/OjhC/0lGU/8AAABHAAAAJAAAACIAAABGR0VQ/zk3QP85N0D/OTdA/zk3QP85N0D/OTdA/zk3QP85N0D/OTdA/zk3QP9HRVD/AAAARgAAACIAAAAfAAAAP0dDUP84NT//ODU//zg1P/84NT//ODU//zg1P/84NT//ODU//zg1P/84NT//R0NQ/wAAAD8AAAAfAAAAGQAAADRHRFLvOjhC/zY0Pv82ND7/NjQ+/zY0Pv82ND7/NjQ+/zY0Pv82ND7/OjhC/0dEUu8AAAA0AAAAGQAAABEAAAAlMzE5d0dEUO9EQk3/REFM/0RBTP9EQUz/REFM/0RBTP9EQUz/REJN/0dEUe0zMTl3AAAAJQAAABEAAAAKAAAAFQAAACUAAAA0AAAAPwAAAEYAAABHAAAASAAAAEgAAABHAAAARgAAAD8AAAA0AAAAJQAAABUAAAAKAAAABAAAAAoAAAARAAAAGQAAAB8AAAAiAAAAJAAAACQAAAAkAAAAJAAAACIAAAAfAAAAGQAAABEAAAAKAAAABA=="),
|
||||
"format": "RGBA8",
|
||||
|
@ -1185,7 +1185,7 @@ data = {
|
|||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="62"]
|
||||
image = SubResource("Image_djtfc")
|
||||
image = SubResource("Image_jvn7o")
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="63"]
|
||||
content_margin_left = 6.0
|
||||
|
@ -1199,7 +1199,7 @@ expand_margin_right = 2.0
|
|||
expand_margin_bottom = 2.0
|
||||
region_rect = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="Image" id="Image_dfxxt"]
|
||||
[sub_resource type="Image" id="Image_jy5tk"]
|
||||
data = {
|
||||
"data": PackedByteArray("AAAABAAAAAoAAAARAAAAGQAAAB8AAAAiAAAAJAAAACQAAAAkAAAAJAAAACIAAAAfAAAAGQAAABEAAAAKAAAABAAAAAsAAAAWAAAAJwAAADYAAABBAAAASQAAAEoAAABLAAAASwAAAEoAAABJAAAAQQAAADYAAAAnAAAAFgAAAAsAAAATAAAAKTEvN4BGQ0/xQ0BM/0JAS/9CQEv/QkBL/0JAS/9CQEv/QkBL/0NATP9GQ0/xMS83fwAAACkAAAATAAAAHgAAAD1HRFDyOjhB/wsLDP8LCgz/CwoM/wsKDP8LCgz/CwsM/wsLDP8LCwz/OjhB/0dEUPIAAAA9AAAAHgAAACcAAABNREJO/w8OEf8PDhH/Dw4R/w8OEf8PDhH/Dw4R/w8OEf8PDhH/Dw4R/w8OEf9EQk7/AAAATQAAACcAAAAsAAAAWEZCT/8UExb/ExIW/xMSFv8UExb/ExIW/xQTFv8UExb/FBMW/xQTFv8TEhb/RkJP/wAAAFgAAAAsAAAAMgAAAF1HRVD/GBcb/xgXG/8YFxv/GBcb/xgXG/8YFxv/GBcb/xkYHP8YFxv/GBcb/0dFUP8AAABdAAAAMgAAADMAAABjSUZT/x0cIf8dHCH/HRwh/x0cIf8dHCH/HRwh/x0cIf8dHCH/HRwh/x0cIf9JRlP/AAAAYwAAADMAAAA2AAAAZkpHVP8iISf/IiEn/yIhJ/8iISf/IiEn/yIhJ/8iISf/IiEn/yIhJ/8iISf/SkdU/wAAAGYAAAA2AAAAOQAAAGlLSVX/JyYt/ycmLf8nJi3/JyYt/ycmLf8nJi3/JyYt/ygmLf8nJi3/KCYt/0tJVf8AAABpAAAAOQAAADgAAABsTkpY/y0rM/8tKzP/LSsz/y0rM/8tKzP/LSsz/y0rM/8tKzP/LSsz/y0rM/9OSlj/AAAAbAAAADgAAAA1AAAAZVBNWv8zMTr/MzE5/zMxOf8zMTn/MzE5/zMxOf8zMTn/MzE5/zMxOf8zMTr/UE1a/wAAAGUAAAA1AAAALQAAAFlVUl/8RUJN/zk3QP84N0D/OTdA/zg3QP84N0D/ODdA/zg3QP86N0H/RUJN/1VSYPwAAABZAAAALQAAACAAAABEPTpFtFZSYP1STlz/UU5b/1FOW/9RTlv/UU5b/1FOW/9RTlv/Uk5c/1ZSYP09OkW0AAAARAAAACAAAAAUAAAAKAAAAEUAAABdAAAAbgAAAHkAAAB6AAAAfAAAAHwAAAB6AAAAeQAAAG4AAABdAAAARQAAACgAAAAUAAAACAAAABQAAAAhAAAAMAAAADoAAAA/AAAAQwAAAEMAAABDAAAAQwAAAD8AAAA6AAAAMAAAACEAAAAUAAAACA=="),
|
||||
"format": "RGBA8",
|
||||
|
@ -1209,7 +1209,7 @@ data = {
|
|||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="65"]
|
||||
image = SubResource("Image_dfxxt")
|
||||
image = SubResource("Image_jy5tk")
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="66"]
|
||||
content_margin_left = 6.0
|
||||
|
@ -1223,7 +1223,7 @@ expand_margin_right = 2.0
|
|||
expand_margin_bottom = 2.0
|
||||
region_rect = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="Image" id="Image_cu3dl"]
|
||||
[sub_resource type="Image" id="Image_jc3ub"]
|
||||
data = {
|
||||
"data": PackedByteArray("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ODg/+Dg4P/g4OD/4ODg/+Dg4P/g4OD/4ODg/wAAAADf39+IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAODg4P/g4OD/4ODg/+Dg4P/g4OD/4ODg/+Dg4P8AAAAA4ODg/9/f34gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADg4OD/4ODg/+Dg4P/g4OD/4ODg/+Dg4P/g4OD/AAAAAODg4P/g4OD/39/fiAAAAAAAAAAAAAAAAAAAAAAAAAAA4ODg/+Dg4P/g4OD/4ODg/+Dg4P/g4OD/4ODg/wAAAADg4OD/4ODg/+Dg4P/f39+IAAAAAAAAAAAAAAAAAAAAAODg4P/g4OD/4ODg/+Dg4P/g4OD/4ODg/+Dg4P8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADg4OD/4ODg/+Dg4P/g4OD/4ODg/+Dg4P/g4OD/4ODg/+Dg4P/g4OD/4ODg/+Dg4P8AAAAAAAAAAAAAAAAAAAAA4ODg/+Dg4P/g4OD/4ODg/+Dg4P/g4OD/4ODg/+Dg4P/g4OD/4ODg/+Dg4P/g4OD/AAAAAAAAAAAAAAAAAAAAAODg4P/g4OD/4ODg/+Dg4P/g4OD/4ODg/+Dg4P/g4OD/4ODg/+Dg4P/g4OD/4ODg/wAAAAAAAAAAAAAAAAAAAADg4OD/4ODg/+Dg4P/g4OD/4ODg/+Dg4P/g4OD/4ODg/+Dg4P/g4OD/4ODg/+Dg4P8AAAAAAAAAAAAAAAAAAAAA4ODg/+Dg4P/g4OD/4ODg/+Dg4P/g4OD/4ODg/+Dg4P/g4OD/4ODg/+Dg4P/g4OD/AAAAAAAAAAAAAAAAAAAAAODg4P/g4OD/4ODg/+Dg4P/g4OD/4ODg/+Dg4P/g4OD/4ODg/+Dg4P/g4OD/4ODg/wAAAAAAAAAAAAAAAAAAAADg4OD/4ODg/+Dg4P/g4OD/4ODg/+Dg4P/g4OD/4ODg/+Dg4P/g4OD/4ODg/+Dg4P8AAAAAAAAAAAAAAAAAAAAA4ODg/+Dg4P/g4OD/4ODg/+Dg4P/g4OD/4ODg/+Dg4P/g4OD/4ODg/+Dg4P/g4OD/AAAAAAAAAAAAAAAAAAAAAODg4P/g4OD/4ODg/+Dg4P/g4OD/4ODg/+Dg4P/g4OD/4ODg/+Dg4P/g4OD/4ODg/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="),
|
||||
"format": "RGBA8",
|
||||
|
@ -1233,9 +1233,9 @@ data = {
|
|||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="425"]
|
||||
image = SubResource("Image_cu3dl")
|
||||
image = SubResource("Image_jc3ub")
|
||||
|
||||
[sub_resource type="Image" id="Image_06k3s"]
|
||||
[sub_resource type="Image" id="Image_un5by"]
|
||||
data = {
|
||||
"data": PackedByteArray("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4MXg/+D/4P/g/+D/4P/gwwAAAAAAAAAAAAAAAAAAAADg/+D/4P/g/+D/4P/g/+D/AAAAAAAAAAAAAAAAAAAAAOD/4P/g/+D/4P/g/+D/4P/hPAAAAAAAAAAAAAAAAAAA4P/g/+D/4P/g/+D/4P/g/+D/4P/g/+D/4P/gwwAAAADg/+D/4P/g/+D/4P/g/+D/4P/g/+D/4P/g/+D/AAAAAOD/4P/g/+D/4P/g/+D/4P/g/+D/4P/g/+D/4P8AAAAA4P/g/+D/4P/g/+D/4P/g/+D/4P/g/+D/4P/g/wAAAADg/+D/4P/g/+D/4P/g/+D/4P/g/+D/4P/g/+D/AAAAAOD/4P/g/+D/4P/g/+D/4P/g/+D/4P/g/+D/4P8AAAAA4P/g/+D/4P/g/+D/4P/g/+D/4P/g/+D/4P/g/wAAAADg/+D/4P/g/+D/4P/g/+D/4P/g/+D/4P/g/+D/AAAAAODD4P/g/+D/4P/g/+D/4P/g/+D/4P/g/+D/38IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="),
|
||||
"format": "LumAlpha8",
|
||||
|
@ -1245,9 +1245,9 @@ data = {
|
|||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="427"]
|
||||
image = SubResource("Image_06k3s")
|
||||
image = SubResource("Image_un5by")
|
||||
|
||||
[sub_resource type="Image" id="Image_g0jqc"]
|
||||
[sub_resource type="Image" id="Image_dcqu5"]
|
||||
data = {
|
||||
"data": PackedByteArray("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA3hfgz+DO3hcAAAAAAAAAAAAAAAAAAAAAAAAAAAAA3Bbh0uD+4P7g1+AZAAAAAAAAAAAAAAAAAAAAAAAA3Bbh0uD+4P7g/uD+4NfgGQAAAAAAAAAAAAAAAAAA3hfg1OD+4NHg/uD94dLg/uDU3hcAAAAAAAAAAAAAAADgzeD+4NDcFuD+4P3bFeDR4P7gzAAAAAAAAAAAAAAAAOC+4MXZFP8B4P7g/QAA2xXhyeDFAAAAAAAAAAAAAAAAAAAAAAAA/wHg/uD9AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/AeD+4P0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4MThwQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="),
|
||||
"format": "LumAlpha8",
|
||||
|
@ -1257,9 +1257,9 @@ data = {
|
|||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="429"]
|
||||
image = SubResource("Image_g0jqc")
|
||||
image = SubResource("Image_dcqu5")
|
||||
|
||||
[sub_resource type="Image" id="Image_gk346"]
|
||||
[sub_resource type="Image" id="Image_65nnb"]
|
||||
data = {
|
||||
"data": PackedByteArray("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADbB99u4Mfg8+Dz4MfebdsHAAAAAAAAAAAAAAAAAADjG+DP4P7g/uD+4P7g/uD+4M7jGwAAAAAAAAAAAADbB+DP4P7g4eBT2A3YDd9Q4Nfg/uDO2wcAAAAAAAAAAN9u4P7g4eMSAAAAAAAAAADhEeDh4P7ebAAAAAAAAAAA4Mjg/uBTAAAAAAAAAAAAAAAA3lXg/uDGAAAAAAAAAADg8uD+2A0AAAAAAAAAAAAAAADbDuD+4PEAAAAA4J7g/uD+4P7g/uCeAAAAAAAAAAAAAN0P4P7g8QAAAADoC+DU4P7g/uDU6AsAAAAAAAAAAAAA3lbg/uDGAAAAAAAA4Svg8+Dz4SsAAAAAAAAAAAAA5BPh4uD+3mwAAAAAAAAAAN9g32AAAAAAAAAAANsO3lbh4uD+4M7VBgAAAAAAAAAAAAAAAAAAAAAAAAAA4P7g/uD+4M7jGwAAAAAAAAAAAAAAAAAAAAAAAAAAAADg8uDF3mzVBgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="),
|
||||
"format": "LumAlpha8",
|
||||
|
@ -1269,9 +1269,9 @@ data = {
|
|||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="431"]
|
||||
image = SubResource("Image_gk346")
|
||||
image = SubResource("Image_65nnb")
|
||||
|
||||
[sub_resource type="Image" id="Image_srd7s"]
|
||||
[sub_resource type="Image" id="Image_gyvu3"]
|
||||
data = {
|
||||
"data": PackedByteArray("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA39/fCN7e3mzg4ODF4ODg9ODg4PPg4ODF3t7ebePj4wkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA3t7eLuDg4Njg4OD+4ODg/uDg4P7g4OD+4ODg/uDg4P7h4eHa4ODgMgAAAAAAAAAAAAAAAAAAAAAAAAAA3t7eL+Dg4PDg4OD+4ODg4eDg4FPY2NgN2NjYDd/f31Dg4ODX4ODg/uDg4PLh4eEzAAAAAAAAAAAAAAAA4+PjCeDg4Nzg4OD+4ODg4ePj4xIAAAAAAAAAAAAAAAAAAAAA4eHhEeDg4OHg4OD+4ODg3+bm5goAAAAAAAAAAN/f33fg4OD+4ODg/uDg4FMAAAAA4ODgS+Dg4OPh4eHi4ODgSQAAAADe3t5V4ODg/uDg4P7f3995AAAAAAAAAADh4eHa4ODg/uDg4P7Y2NgNAAAAAOHh4eLg4OD+4ODg/uDg4OEAAAAA29vbDuDg4P7g4OD+4eHh2gAAAAAAAAAA4ODg2+Dg4P7g4OD+2NjYDQAAAADh4eHi4ODg/uDg4P7g4ODhAAAAAN3d3Q/g4OD+4ODg/uDg4NsAAAAAAAAAAN7e3nzg4OD+4ODg/t/f31AAAAAA4ODgSeHh4eLg4ODh39/fSAAAAADe3t5W4ODg/uDg4P7g4OB7AAAAAAAAAADV1dUM4ODg4+Dg4P7g4ODX4eHhEQAAAAAAAAAAAAAAAAAAAADk5OQT4eHh4uDg4P7g4ODh1dXVDAAAAAAAAAAAAAAAAN/f3zjg4OD04ODg/uDg4OHe3t5V29vbDtvb2w7e3t5W4eHh4uDg4P7g4OD03t7eNgAAAAAAAAAAAAAAAAAAAAAAAAAA39/fN+Dg4N7g4OD+4ODg/uDg4P7g4OD+4ODg/uDg4P7g4ODd3t7eNgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADm5uYK39/fcODg4MXg4ODz4ODg8+Dg4MXf399u5ubmCgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="),
|
||||
"format": "RGBA8",
|
||||
|
@ -1281,7 +1281,7 @@ data = {
|
|||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="433"]
|
||||
image = SubResource("Image_srd7s")
|
||||
image = SubResource("Image_gyvu3")
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_g6bu4"]
|
||||
texture = ExtResource("1_ak8qr")
|
||||
|
@ -1347,69 +1347,6 @@ border_width_top = 1
|
|||
border_color = Color(0.2, 0.2, 0.2, 1)
|
||||
anti_aliasing = false
|
||||
|
||||
[sub_resource type="AtlasTexture" id="250"]
|
||||
atlas = ExtResource("1_ak8qr")
|
||||
region = Rect2(96, 64, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="251"]
|
||||
atlas = ExtResource("1_ak8qr")
|
||||
region = Rect2(96, 96, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="252"]
|
||||
atlas = ExtResource("1_ak8qr")
|
||||
region = Rect2(96, 80, 16, 16)
|
||||
|
||||
[sub_resource type="Image" id="Image_0m0km"]
|
||||
data = {
|
||||
"data": PackedByteArray("AAAAAJiYmHlOTk4xAAAAAAAAAACNjY15Tk5OMQAAAAAAAAAAgoKCeU5OTjEAAAAAAAAAAE5OTjFOTk4cAAAAAAAAAAA4VV8AOFVfAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAjKy4ADhVXwAAAAAAAAAAAIGirQA4VV8AAAAAAAAAAACYmJh5Tk5OMQAAAAAAAAAAjY2NeU5OTjEAAAAAAAAAAIKCgnlOTk4xAAAAAA=="),
|
||||
"format": "RGBA8",
|
||||
"height": 16,
|
||||
"mipmaps": false,
|
||||
"width": 4
|
||||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="29"]
|
||||
image = SubResource("Image_0m0km")
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="4"]
|
||||
content_margin_left = 6.0
|
||||
content_margin_top = 3.0
|
||||
content_margin_right = 6.0
|
||||
content_margin_bottom = 3.0
|
||||
texture = ExtResource("1_ak8qr")
|
||||
texture_margin_left = 2.0
|
||||
texture_margin_top = 2.0
|
||||
texture_margin_right = 2.0
|
||||
texture_margin_bottom = 2.0
|
||||
axis_stretch_horizontal = 2
|
||||
region_rect = Rect2(0, 40, 8, 8)
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="248"]
|
||||
content_margin_left = 6.0
|
||||
content_margin_top = 3.0
|
||||
content_margin_right = 6.0
|
||||
content_margin_bottom = 3.0
|
||||
texture = ExtResource("1_ak8qr")
|
||||
texture_margin_left = 2.0
|
||||
texture_margin_top = 2.0
|
||||
texture_margin_right = 2.0
|
||||
texture_margin_bottom = 2.0
|
||||
axis_stretch_horizontal = 2
|
||||
region_rect = Rect2(32, 40, 8, 8)
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="249"]
|
||||
content_margin_left = 6.0
|
||||
content_margin_top = 3.0
|
||||
content_margin_right = 6.0
|
||||
content_margin_bottom = 3.0
|
||||
texture = ExtResource("1_ak8qr")
|
||||
texture_margin_left = 2.0
|
||||
texture_margin_top = 2.0
|
||||
texture_margin_right = 2.0
|
||||
texture_margin_bottom = 2.0
|
||||
axis_stretch_horizontal = 2
|
||||
region_rect = Rect2(16, 40, 8, 8)
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="461"]
|
||||
texture = ExtResource("1_ak8qr")
|
||||
texture_margin_left = 2.0
|
||||
|
@ -1440,7 +1377,7 @@ bg_color = Color(0.490196, 0.490196, 0.490196, 1)
|
|||
corner_detail = 1
|
||||
anti_aliasing = false
|
||||
|
||||
[sub_resource type="Image" id="Image_qu6fu"]
|
||||
[sub_resource type="Image" id="Image_el5uk"]
|
||||
data = {
|
||||
"data": PackedByteArray("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAN9Y3BYAAAAAAAAAAAAAAADcFt9YAAAAAAAAAAAAAN9Y4P7g09wWAAAAAAAAAADcFuDT4P7fWAAAAAAAAAAA2xXf0uD/4NfgGQAAAADbFd/S4P/g198YAAAAAAAAAAAAANsV39Lg/+DX4BnbFd/S4P/g198YAAAAAAAAAAAAAAAAAADbFd/S4P/h2uDW4P/g198YAAAAAAAAAAAAAAAAAAAAAAAA2xXf1uD/4P/g298YAAAAAAAAAAAAAAAAAAAAAAAAAADbFd/W4P/g/+Db4BkAAAAAAAAAAAAAAAAAAAAAAADbFd/S4P/f2uDW4P/g1+AZAAAAAAAAAAAAAAAAAADbFd/S4P/g198Y2xXf0uD/4NfgGQAAAAAAAAAAAADbFd/S4P/g198YAAAAANsV39Lg/+DX4BkAAAAAAAAAAN9Y4P7g09wWAAAAAAAAAADcFuDT4P7fWAAAAAAAAAAAAADfWNwWAAAAAAAAAAAAAAAA3BbfWAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="),
|
||||
"format": "LumAlpha8",
|
||||
|
@ -1450,7 +1387,7 @@ data = {
|
|||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="49"]
|
||||
image = SubResource("Image_qu6fu")
|
||||
image = SubResource("Image_el5uk")
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="127"]
|
||||
content_margin_left = 4.0
|
||||
|
@ -2271,7 +2208,7 @@ texture_margin_right = 2.0
|
|||
texture_margin_bottom = 2.0
|
||||
region_rect = Rect2(72, 64, 8, 8)
|
||||
|
||||
[sub_resource type="Image" id="Image_vsf8e"]
|
||||
[sub_resource type="Image" id="Image_dpyi6"]
|
||||
data = {
|
||||
"data": PackedByteArray("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAc5uqs87c4bPO3OGzztzhs87c4bPO3OGzztzhs3ObqrMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="),
|
||||
"format": "RGBA8",
|
||||
|
@ -2281,7 +2218,7 @@ data = {
|
|||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="199"]
|
||||
image = SubResource("Image_vsf8e")
|
||||
image = SubResource("Image_dpyi6")
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="200"]
|
||||
texture = SubResource("199")
|
||||
|
@ -2305,7 +2242,7 @@ texture_margin_right = 2.0
|
|||
texture_margin_bottom = 2.0
|
||||
region_rect = Rect2(64, 64, 8, 8)
|
||||
|
||||
[sub_resource type="Image" id="Image_58oo7"]
|
||||
[sub_resource type="Image" id="Image_hu6ex"]
|
||||
data = {
|
||||
"data": PackedByteArray("/wD//wD//wD//wD/Z3qFZnqGaHuGaHuGaHuGaHuGZnqGZ3qF/wD//wD//wD//wD//wD//wD/Z3qFZnqGV1FRTEJATUNBTUNBTUNBTUNBTEJAV1FRZnqGZ3qF/wD//wD//wD/Z3qFVkxLTEJATURBTUNBTkRCTkRCTkRCTkRCTUNBTURBTEJAV1FRZ3qF/wD//wD/ZnqGTEJATEJATUNBT0VDT0VDT0VDT0VDT0VDT0VDTUNBTEJATEJAZ3uH/wD/Z3qFV1FRTEJATEJATkRCT0RDUEVEUkZEUkZEUUZFT0RDTkRCTEJATEJAV1FRZ3qFZnqGS0A/TEJATUNBT0RDUUdFUkhGU0hHU0hHUkhGUUdFT0RDTkRCTEJAS0E/Z3uHZ3uHS0E/TEJATUNBT0RDUUdFVElGVUpHVUlHVUpHUkhGUEVETUNBTEJAS0E/aHyIZ3uHSkA+S0E/TUNBT0VDUUdFVElGVUtJVk1LVElGU0lHUEZETkRCTEJAS0E/aHyIZ3uHSkE+S0E/TEJAT0VDUUdFVElGVUtJVUtJVUpHUkhGUEZETkRCTEJASkA+aHyIZ3uHSD48S0I/S0E/TkRCUEVEUUZFU0lHU0lHUkhGUEVETkRCTEJAS0E/ST89aHyIZ3uHRj08SD48SkA+TEJATkRCT0RDUEVEUEVEUEZET0VDTEJAS0A/ST89Rz07Z3uHZ3qFV1FRRz47SUA9S0E/TEJATUNBTkRCTkRCTUNBTEJAS0E/ST89Rz07V1FRaHuG/wD/Z3uHRj08Rz07SD48ST89SkA+S0E/S0E/S0A/SkA+SD48Rz47Rz07Z3uH/wD//wD/Z3qFV1FRRTw7Rz07Rz07Rz07SD48SD48Rz07Rz07Rz47Rj08V1FRZnqG/wD//wD//wD/Z3qFZ3uHV1FRRjw6Rjw6Rz47Rz47Rjw6Rjw6V1FRZ3uHaHuG/wD//wD//wD//wD//wD//wD/ZnqGZ3uHaHyIaHyIaHyIaHyIZ3uHaHuG/wD//wD//wD//wD/"),
|
||||
"format": "RGB8",
|
||||
|
@ -2315,7 +2252,7 @@ data = {
|
|||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="204"]
|
||||
image = SubResource("Image_58oo7")
|
||||
image = SubResource("Image_hu6ex")
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="205"]
|
||||
texture = SubResource("204")
|
||||
|
@ -2428,7 +2365,7 @@ axis_stretch_horizontal = 2
|
|||
axis_stretch_vertical = 2
|
||||
region_rect = Rect2(80, 0, 16, 8)
|
||||
|
||||
[sub_resource type="Image" id="Image_vwdns"]
|
||||
[sub_resource type="Image" id="Image_t3urt"]
|
||||
data = {
|
||||
"data": PackedByteArray("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOD/4P/g/+D/4P/g/+D/4P8AAAAAAAAAAOD/4P/g/+D/4P/g/+D/4P8AAAAAAAAAAOD/4P/g/+D/4P/g/+D/4P8AAAAAAAAAAOFe4PTg/+D/4P/g/+D24WYAAAAAAAAAAAAA3yjf0uD/4P/g1+MtAAAAAAAAAAAAAAAAAADoC+Gf4Z/oCwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"),
|
||||
"format": "LumAlpha8",
|
||||
|
@ -2438,9 +2375,9 @@ data = {
|
|||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="306"]
|
||||
image = SubResource("Image_vwdns")
|
||||
image = SubResource("Image_t3urt")
|
||||
|
||||
[sub_resource type="Image" id="Image_8u1x6"]
|
||||
[sub_resource type="Image" id="Image_oinpy"]
|
||||
data = {
|
||||
"data": PackedByteArray("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4P/g/+D/32AAAAAAAAAAAAAAAAAAAAAA4P/g/+D/4PThKwAAAAAAAAAAAAAAAAAA4P/g/+D/4P/g1egLAAAAAAAAAAAAAAAA4P/g/+D/4P/g/+GfAAAAAAAAAAAAAAAA4P/g/+D/4P/g/+GfAAAAAAAAAAAAAAAA4P/g/+D/4P/g1egLAAAAAAAAAAAAAAAA4P/g/+D/4PThKwAAAAAAAAAAAAAAAAAA4P/g/+D/32AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"),
|
||||
"format": "LumAlpha8",
|
||||
|
@ -2450,9 +2387,9 @@ data = {
|
|||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="308"]
|
||||
image = SubResource("Image_8u1x6")
|
||||
image = SubResource("Image_oinpy")
|
||||
|
||||
[sub_resource type="Image" id="Image_naxpi"]
|
||||
[sub_resource type="Image" id="Image_84q7w"]
|
||||
data = {
|
||||
"data": PackedByteArray("AAAAAAAAAAAAAAAAAAAAAAAA/1n/FP8U/1kAAAAAAAAAAAAA/1n/FP8U/1kAAAAAAAAAAAAA/1n/FP8U/1kAAAAAAAAAAP9Z/xT/FP9ZAAAAAAAA/1n/FP8U/1kAAAAAAAD/Wf8U/xT/WQAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="),
|
||||
"format": "LumAlpha8",
|
||||
|
@ -2462,9 +2399,9 @@ data = {
|
|||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="292"]
|
||||
image = SubResource("Image_naxpi")
|
||||
image = SubResource("Image_84q7w")
|
||||
|
||||
[sub_resource type="Image" id="Image_ksn4y"]
|
||||
[sub_resource type="Image" id="Image_ugbyv"]
|
||||
data = {
|
||||
"data": PackedByteArray("FxYabx0cIe8gHiT3IR8l9yEfJfchHyX3IR8l9yAeJPcdHCHvFxYabx0cIfAkIin/KCYt/ygmLv8oJi7/KCYu/ygmLv8oJi3/JCIp/x0cIfAgHiT5KCYt/ysqMf8sKjL/LCoy/ywqMv8sKjL/Kyox/ygmLf8gHiT5IR8l9ygmLv8sKjL/LCoy/ywqMv8sKjL/LCoy/ywqMv8oJi7/IR8l9yEfJfcoJi7/LCoy/ywqMv8sKjL/LCoy/ywqMv8sKjL/KCYu/yEfJfchHyX3KCYu/ywqMv8sKjL/LCoy/ywqMv8sKjL/LCoy/ygmLv8hHyX3IR8l9ygmLv8sKjL/LCoy/ywqMv8sKjL/LCoy/ywqMv8oJi7/IR8l9yAeJPkoJi3/Kyox/ywqMv8sKjL/LCoy/ywqMv8rKjH/KCYt/yAeJPkdHCHwJCIp/ygmLf8oJi7/KCYu/ygmLv8oJi7/KCYt/yQiKf8dHCHxFxYabx0cIfAgHiT3IR8l9yEfJfchHyX3IR8l9yAeJPcdHCHuFxYabw=="),
|
||||
"format": "RGBA8",
|
||||
|
@ -2474,7 +2411,7 @@ data = {
|
|||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="39"]
|
||||
image = SubResource("Image_ksn4y")
|
||||
image = SubResource("Image_ugbyv")
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="272"]
|
||||
content_margin_left = 0.0
|
||||
|
@ -2534,7 +2471,7 @@ axis_stretch_horizontal = 2
|
|||
axis_stretch_vertical = 2
|
||||
region_rect = Rect2(24, 40, 8, 8)
|
||||
|
||||
[sub_resource type="Image" id="Image_jvlbm"]
|
||||
[sub_resource type="Image" id="Image_8rm82"]
|
||||
data = {
|
||||
"data": PackedByteArray("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABNS1kHTUtZJ01LWVBNS1lmTUtZaE1LWWhNS1loTUtZaE1LWWhNS1loWFZjarCvtYFNS1knTUtZBwAAAAAAAAAATUtZJzg3QLQgICT6Hh4i/x8fI/8fHyP/Hx8j/x8fI/8fHyP/Hx8j/4uLjf//////tra53U1LWScAAAAAAAAAAE1LWVAgICT6ICAk/yIiJ/8jIyj/IyMo/yMjKP8jIyj/IyMo/0JCR//4+Pj//v7+/1dXWvtNS1lQAAAAAAAAAABNS1lmHh4i/yIiJ/8lJSr/JSUq/05OUv8mJiv/JSUq/yUlKv/Fxcf//////6qqq/8eHiL/TUtZZgAAAAAAAAAATUtZaB8fI/8jIyj/JSUq/7i4uv//////X19j/yUlKv90dHf//////+3t7f8zMzj/Hx8j/01LWWgAAAAAAAAAAE1LWWgfHyP/IyMo/yUlKv+NjY///////7i4uf81NTn/7e3t//////90dHf/IyMo/x8fI/9NS1loAAAAAAAAAABNS1loHx8j/yMjKP8lJSr/Ojo+//v7+//6+vr/srK0///////Fxcf/JSUq/yMjKP8fHyP/TUtZaAAAAAAAAAAATUtZaB8fI/8jIyj/JSUq/yUlKv+4uLr///////7+/v/4+Pj/RUVJ/yUlKv8jIyj/Hx8j/01LWWgAAAAAAAAAAE1LWWgfHyP/IyMo/yUlKv8lJSr/YWFl////////////j4+S/yUlKv8lJSr/IyMo/x8fI/9NS1loAAAAAAAAAABNS1loHx8j/yMjKP8lJSr/JSUq/yYmK/9OTlL/Y2Nm/yoqL/8lJSr/JSUq/yMjKP8fHyP/TUtZaAAAAAAAAAAATUtZZh4eIv8iIif/JSUq/yUlKv8lJSr/JSUq/yUlKv8lJSr/JSUq/yUlKv8iIif/Hh4i/01LWWYAAAAAAAAAAE1LWVAgICT6ICAk/yIiJ/8jIyj/IyMo/yMjKP8jIyj/IyMo/yMjKP8iIif/ICAk/yAgJPtNS1lQAAAAAAAAAABNS1knODZAtCAgJPseHiL/Hx8j/x8fI/8fHyP/Hx8j/x8fI/8fHyP/Hh4i/yAgJfo4NkC0TUtZJwAAAAAAAAAATUtZB01LWSdNS1lQTUtZZk1LWWhNS1loTUtZaE1LWWhNS1loTUtZaE1LWWZNS1lQTUtZJ01LWQcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="),
|
||||
"format": "RGBA8",
|
||||
|
@ -2544,9 +2481,9 @@ data = {
|
|||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="334"]
|
||||
image = SubResource("Image_jvlbm")
|
||||
image = SubResource("Image_8rm82")
|
||||
|
||||
[sub_resource type="Image" id="Image_pxng2"]
|
||||
[sub_resource type="Image" id="Image_mpaam"]
|
||||
data = {
|
||||
"data": PackedByteArray("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABNS1kHTUtZJ01LWVBNS1lmTUtZaE1LWWhNS1loTUtZaE1LWWhNS1loTUtZZk1LWVBNS1knTUtZBwAAAAAAAAAATUtZJzg3QLQgICT6Hh4i/x8fI/8fHyP/Hx8j/x8fI/8fHyP/Hx8j/x4eIv8gICT6ODdAtE1LWScAAAAAAAAAAE1LWVAgICT6ICAk/yIiJ/8jIyj/IyMo/yMjKP8jIyj/IyMo/yMjKP8iIif/ICAk/yAgJPpNS1lQAAAAAAAAAABNS1lmHh4i/yIiJ/8lJSr/JSUq/yUlKv8lJSr/JSUq/yUlKv8lJSr/JSUq/yIiJ/8eHiL/TUtZZgAAAAAAAAAATUtZaB8fI/8jIyj/JSUq/yUlKv8lJSr/JSUq/yUlKv8lJSr/JSUq/yUlKv8jIyj/Hx8j/01LWWgAAAAAAAAAAE1LWWgfHyP/IyMo/yUlKv8lJSr/JSUq/yUlKv8lJSr/JSUq/yUlKv8lJSr/IyMo/x8fI/9NS1loAAAAAAAAAABNS1loHx8j/yMjKP8lJSr/JSUq/yUlKv8lJSr/JSUq/yUlKv8lJSr/JSUq/yMjKP8fHyP/TUtZaAAAAAAAAAAATUtZaB8fI/8jIyj/JSUq/yUlKv8lJSr/JSUq/yUlKv8lJSr/JSUq/yUlKv8jIyj/Hx8j/01LWWgAAAAAAAAAAE1LWWgfHyP/IyMo/yUlKv8lJSr/JSUq/yUlKv8lJSr/JSUq/yUlKv8lJSr/IyMo/x8fI/9NS1loAAAAAAAAAABNS1loHx8j/yMjKP8lJSr/JSUq/yUlKv8lJSr/JSUq/yUlKv8lJSr/JSUq/yMjKP8fHyP/TUtZaAAAAAAAAAAATUtZZh4eIv8iIif/JSUq/yUlKv8lJSr/JSUq/yUlKv8lJSr/JSUq/yUlKv8iIif/Hh4i/01LWWYAAAAAAAAAAE1LWVAgICT6ICAk/yIiJ/8jIyj/IyMo/yMjKP8jIyj/IyMo/yMjKP8iIif/ICAk/yAgJPtNS1lQAAAAAAAAAABNS1knODZAtCAgJPseHiL/Hx8j/x8fI/8fHyP/Hx8j/x8fI/8fHyP/Hh4i/yAgJfo4NkC0TUtZJwAAAAAAAAAATUtZB01LWSdNS1lQTUtZZk1LWWhNS1loTUtZaE1LWWhNS1loTUtZaE1LWWZNS1lQTUtZJ01LWQcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="),
|
||||
"format": "RGBA8",
|
||||
|
@ -2556,7 +2493,7 @@ data = {
|
|||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="336"]
|
||||
image = SubResource("Image_pxng2")
|
||||
image = SubResource("Image_mpaam")
|
||||
|
||||
[sub_resource type="AtlasTexture" id="359"]
|
||||
atlas = ExtResource("1_ak8qr")
|
||||
|
@ -2632,7 +2569,19 @@ border_width_left = 1
|
|||
border_color = Color(0.2, 0.2, 0.2, 1)
|
||||
anti_aliasing = false
|
||||
|
||||
[sub_resource type="Image" id="Image_8h43v"]
|
||||
[sub_resource type="AtlasTexture" id="250"]
|
||||
atlas = ExtResource("1_ak8qr")
|
||||
region = Rect2(96, 64, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="251"]
|
||||
atlas = ExtResource("1_ak8qr")
|
||||
region = Rect2(96, 96, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="252"]
|
||||
atlas = ExtResource("1_ak8qr")
|
||||
region = Rect2(96, 80, 16, 16)
|
||||
|
||||
[sub_resource type="Image" id="Image_flyey"]
|
||||
data = {
|
||||
"data": PackedByteArray("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIKCgnmNjY15mJiYeYGirQCMrLgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOFVfAE5OTjGCgoJ5jY2NeZiYmHlOTk4xTk5OMU5OTjE4VV8AOFVfAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADhVXwBOTk4cTk5OMU5OTjFOTk4xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="),
|
||||
"format": "RGBA8",
|
||||
|
@ -2642,7 +2591,33 @@ data = {
|
|||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="111"]
|
||||
image = SubResource("Image_8h43v")
|
||||
image = SubResource("Image_flyey")
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="4"]
|
||||
content_margin_left = 6.0
|
||||
content_margin_top = 3.0
|
||||
content_margin_right = 6.0
|
||||
content_margin_bottom = 3.0
|
||||
texture = ExtResource("1_ak8qr")
|
||||
texture_margin_left = 2.0
|
||||
texture_margin_top = 2.0
|
||||
texture_margin_right = 2.0
|
||||
texture_margin_bottom = 2.0
|
||||
axis_stretch_horizontal = 2
|
||||
region_rect = Rect2(0, 40, 8, 8)
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="249"]
|
||||
content_margin_left = 6.0
|
||||
content_margin_top = 3.0
|
||||
content_margin_right = 6.0
|
||||
content_margin_bottom = 3.0
|
||||
texture = ExtResource("1_ak8qr")
|
||||
texture_margin_left = 2.0
|
||||
texture_margin_top = 2.0
|
||||
texture_margin_right = 2.0
|
||||
texture_margin_bottom = 2.0
|
||||
axis_stretch_horizontal = 2
|
||||
region_rect = Rect2(16, 40, 8, 8)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="20"]
|
||||
atlas = ExtResource("3_0m6kw")
|
||||
|
@ -2734,13 +2709,6 @@ HScrollBar/styles/grabber_pressed = SubResource("StyleBoxTexture_bfd3g")
|
|||
HScrollBar/styles/scroll = SubResource("StyleBoxTexture_lsn07")
|
||||
HScrollBar/styles/scroll_focus = SubResource("StyleBoxTexture_8681i")
|
||||
HSeparator/styles/separator = SubResource("576")
|
||||
HSlider/icons/grabber = SubResource("250")
|
||||
HSlider/icons/grabber_disabled = SubResource("251")
|
||||
HSlider/icons/grabber_highlight = SubResource("252")
|
||||
HSlider/icons/tick = SubResource("29")
|
||||
HSlider/styles/grabber_area = SubResource("4")
|
||||
HSlider/styles/grabber_area_highlight = SubResource("248")
|
||||
HSlider/styles/slider = SubResource("249")
|
||||
ItemList/colors/font_color = Color(0.866667, 0.866667, 0.866667, 1)
|
||||
ItemList/colors/font_color_selected = Color(1, 1, 1, 1)
|
||||
ItemList/colors/guide_color = Color(0.266667, 0.266667, 0.266667, 1)
|
||||
|
|
49
tools/configurator/scripts/TabAbout.gd
Normal file
49
tools/configurator/scripts/TabAbout.gd
Normal file
|
@ -0,0 +1,49 @@
|
|||
extends MarginContainer
|
||||
|
||||
var rd_web_button:= Button.new()
|
||||
var rd_changelog_button:= Button.new()
|
||||
var rd_wiki_button:= Button.new()
|
||||
var rd_credits_button:= Button.new()
|
||||
var rd_donate_button:= Button.new()
|
||||
var rd_contactus_button:= Button.new()
|
||||
var rd_licenses_button:= Button.new()
|
||||
var app_data:= AppData.new()
|
||||
var button_array: Array = [rd_web_button, rd_changelog_button, rd_wiki_button, rd_credits_button, rd_donate_button, rd_contactus_button, rd_licenses_button]
|
||||
var web_id: Array = ["rd_web", "rd_changelog", "rd_wiki", "rd_credits", "rd_donate", "rd_contactus", "rd_licenses"]
|
||||
|
||||
func _ready():
|
||||
#tk_about = class_functions.import_csv_data("res://tk_about.txt")
|
||||
app_data = data_handler.app_data
|
||||
_connect_signals()
|
||||
create_buttons()
|
||||
|
||||
func _connect_signals() -> void:
|
||||
for i in button_array.size():
|
||||
button_array[i].pressed.connect(_about_button_pressed.bind(web_id[i], button_array[i]))
|
||||
|
||||
func _about_button_pressed(id: String, button: Button) -> void:
|
||||
var tmp_txt = button.text
|
||||
if class_functions.desktop_mode != "gamescope":
|
||||
class_functions.logger("i","Loading website for " + id)
|
||||
class_functions.launch_help(button.editor_description)
|
||||
else:
|
||||
button.text = "Help only in Desktop Mode"
|
||||
await class_functions.wait(3.0)
|
||||
button.text = tmp_txt
|
||||
|
||||
func create_buttons() -> void:
|
||||
for i in button_array.size():
|
||||
var button = button_array[i]
|
||||
%GridContainer.add_child(button)
|
||||
var id = web_id[i]
|
||||
if id in app_data.about_links:
|
||||
var web_data: Link = app_data.about_links[id]
|
||||
_setup_button(button, web_data)
|
||||
|
||||
func _setup_button(button: Button, web_data: Link) -> void:
|
||||
button.text = web_data.name
|
||||
button.tooltip_text = web_data.description
|
||||
button.icon = ResourceLoader.load(web_data.icon)
|
||||
button.editor_description = web_data.url
|
||||
button.icon_alignment = HORIZONTAL_ALIGNMENT_LEFT
|
||||
button.vertical_icon_alignment = VERTICAL_ALIGNMENT_CENTER
|
|
@ -1,6 +1,7 @@
|
|||
extends TabContainer
|
||||
|
||||
var icon_width: int = 32
|
||||
@onready var tcount: int = get_tab_count()-1
|
||||
|
||||
func _ready():
|
||||
focusFirstFocusableChild() #grab focus on first element to enable controller focusing
|
||||
|
@ -18,18 +19,32 @@ func _ready():
|
|||
set_tab_icon_max_width(3,icon_width)
|
||||
set_tab_icon(4, ResourceLoader.load("res://assets/icons/pixelitos/128/utilities-system-monitor.png"))
|
||||
set_tab_icon_max_width(4,icon_width)
|
||||
set_tab_icon(5, ResourceLoader.load("res://assets/icons/pixelitos/128/preferences-system-session-services.png"))
|
||||
set_tab_icon_max_width(5,icon_width)
|
||||
set_tab_icon(6, ResourceLoader.load("res://assets/icons/pixelitos/128/help-about.png"))
|
||||
set_tab_icon_max_width(6,icon_width)
|
||||
#%TK_GRAPHICS.name="BOB"
|
||||
#
|
||||
connect_focus_signals(self)
|
||||
%volume_effects_slider.value = class_functions.volume_effects
|
||||
|
||||
func connect_focus_signals(node):
|
||||
for child in node.get_children():
|
||||
if child is Button:
|
||||
child.focus_entered.connect(_on_Button_focus_entered.bind(child))
|
||||
elif child is Control:
|
||||
connect_focus_signals(child)
|
||||
|
||||
func _on_Button_focus_entered(button: Button):
|
||||
if button and class_functions.sound_effects:
|
||||
%AudioStreamPlayer2D.volume_db = class_functions.volume_effects
|
||||
%AudioStreamPlayer2D.play()
|
||||
|
||||
func _input(event):
|
||||
if (event.is_action_pressed("next_tab")):
|
||||
if current_tab == tcount:
|
||||
current_tab = 0
|
||||
else:
|
||||
self.select_next_available()
|
||||
focusFirstFocusableChild()
|
||||
|
||||
if (event.is_action_pressed("previous_tab")):
|
||||
if current_tab == 0:
|
||||
current_tab = tcount
|
||||
else:
|
||||
self.select_previous_available()
|
||||
focusFirstFocusableChild()
|
||||
|
11
tools/configurator/scripts/TabGlobals.gd
Normal file
11
tools/configurator/scripts/TabGlobals.gd
Normal file
|
@ -0,0 +1,11 @@
|
|||
extends MarginContainer
|
||||
|
||||
var button_swap: Array
|
||||
|
||||
func _ready():
|
||||
_connect_signals()
|
||||
|
||||
func _connect_signals():
|
||||
%quick_resume_button.pressed.connect(class_functions.run_function.bind(%quick_resume_button))
|
||||
%button_swap_button.pressed.connect(class_functions.run_function.bind(%button_swap_button))
|
||||
%widescreen_button.pressed.connect(class_functions.run_function.bind(%widescreen_button))
|
10
tools/configurator/scripts/TabSettings.gd
Normal file
10
tools/configurator/scripts/TabSettings.gd
Normal file
|
@ -0,0 +1,10 @@
|
|||
extends Control
|
||||
|
||||
func _ready():
|
||||
_connect_signals()
|
||||
|
||||
func _connect_signals() -> void:
|
||||
%sound_button.pressed.connect(class_functions.run_function.bind(%sound_button))
|
||||
%update_notification_button.pressed.connect(class_functions.run_function.bind(%update_notification_button))
|
||||
#%volume_effects_slider.changed.connect(class_functions.slider_function.bind(%volume_effects_slider))
|
||||
%volume_effects_slider.drag_ended.connect(class_functions.slider_function.bind(%volume_effects_slider))
|
123
tools/configurator/scripts/TabSystem.gd
Normal file
123
tools/configurator/scripts/TabSystem.gd
Normal file
|
@ -0,0 +1,123 @@
|
|||
extends Control
|
||||
|
||||
var app_data := AppData.new()
|
||||
var current_system := Emulator.new()
|
||||
var press_time: float = 0.0
|
||||
var is_reset_pressed: bool = false
|
||||
var reset_result: Dictionary
|
||||
@export var PRESS_DURATION: float = 3.0
|
||||
|
||||
func _ready():
|
||||
app_data = data_handler.app_data
|
||||
_connect_signals()
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
if is_reset_pressed:
|
||||
press_time += delta
|
||||
%reset_progress.value = press_time / PRESS_DURATION * 100.0
|
||||
if press_time >= PRESS_DURATION:
|
||||
_do_complete()
|
||||
press_time = 0.0
|
||||
is_reset_pressed = false
|
||||
%reset_progress.value = 0.0
|
||||
|
||||
func _connect_signals() -> void:
|
||||
#TODO make for loops for each function linked to button function call
|
||||
%retroarch_button.pressed.connect(standard_buttons.bind(%retroarch_button,%system_gridcontainer, %action_gridcontainer))
|
||||
%mame_button.pressed.connect(standard_buttons.bind(%mame_button,%system_gridcontainer, %action_gridcontainer))
|
||||
%ruffle_button.pressed.connect(standard_buttons.bind(%ruffle_button,%system_gridcontainer, %action_gridcontainer))
|
||||
%melonds_button.pressed.connect(standard_buttons.bind(%melonds_button,%system_gridcontainer, %action_gridcontainer))
|
||||
%pcsx2_button.pressed.connect(standard_buttons.bind(%pcsx2_button,%system_gridcontainer, %action_gridcontainer))
|
||||
%duckstation_button.pressed.connect(standard_buttons.bind(%duckstation_button,%system_gridcontainer, %action_gridcontainer))
|
||||
%ppsspp_button.pressed.connect(standard_buttons.bind(%ppsspp_button,%system_gridcontainer, %action_gridcontainer))
|
||||
%vita3k_button.pressed.connect(standard_buttons.bind(%vita3k_button,%system_gridcontainer, %action_gridcontainer))
|
||||
%rpcs3_button.pressed.connect(standard_buttons.bind(%rpcs3_button,%system_gridcontainer, %action_gridcontainer))
|
||||
%ryujinx_button.pressed.connect(standard_buttons.bind(%ryujinx_button,%system_gridcontainer, %action_gridcontainer))
|
||||
%dolphin_button.pressed.connect(standard_buttons.bind(%dolphin_button,%system_gridcontainer, %action_gridcontainer))
|
||||
%primehack_button.pressed.connect(standard_buttons.bind(%primehack_button,%system_gridcontainer, %action_gridcontainer))
|
||||
%cemu_button.pressed.connect(standard_buttons.bind(%cemu_button,%system_gridcontainer, %action_gridcontainer))
|
||||
%xemu_button.pressed.connect(standard_buttons.bind(%xemu_button,%system_gridcontainer, %action_gridcontainer))
|
||||
%esde_button.pressed.connect(standard_buttons.bind(%esde_button,%system_gridcontainer, %action_gridcontainer))
|
||||
%help_button.pressed.connect(_do_action.bind(%help_button))
|
||||
#%launch_button.pressed.connect(_do_action.bind(%launch_button))
|
||||
%launch_button.pressed.connect(_do_action.bind(%launch_button))
|
||||
%reset_button.button_down.connect(_do_action.bind(%reset_button))
|
||||
%reset_button.button_up.connect(_on_Button_released.bind(%reset_progress))
|
||||
%rpcs3_firmware_button.pressed.connect(_do_action.bind(%rpcs3_firmware_button))
|
||||
%vita3k_firmware_button.pressed.connect(_do_action.bind(%vita3k_firmware_button))
|
||||
%retroarch_quick_resume_button.pressed.connect(class_functions.run_function.bind(%retroarch_quick_resume_button))
|
||||
|
||||
func standard_buttons(button: Button, buttons_gridcontainer: GridContainer, hidden_gridcontainer: GridContainer) -> void:
|
||||
current_system = app_data.emulators[button.text.to_lower()]
|
||||
%reset_button.text="RESET"
|
||||
match button.name:
|
||||
"vita3k_button":
|
||||
%vita3k_firmware_button.visible = true
|
||||
"rpcs3_button":
|
||||
%rpcs3_firmware_button.visible = true
|
||||
"retroarch_button":
|
||||
%retroarch_quick_resume_button.visible = true
|
||||
_:
|
||||
%vita3k_firmware_button.visible = false
|
||||
%rpcs3_firmware_button.visible = false
|
||||
%retroarch_quick_resume_button.visible = false
|
||||
hidden_gridcontainer.visible = true
|
||||
if button.toggle_mode == false:
|
||||
for i in range(buttons_gridcontainer.get_child_count()):
|
||||
var child = buttons_gridcontainer.get_child(i)
|
||||
if child is Button and child != button:
|
||||
child.visible=false
|
||||
elif button.toggle_mode == true and hidden_gridcontainer.visible == true:
|
||||
hidden_gridcontainer.visible = false
|
||||
for i in range(buttons_gridcontainer.get_child_count()):
|
||||
var child = buttons_gridcontainer.get_child(i)
|
||||
if child is Button:
|
||||
child.visible=true
|
||||
child.toggle_mode = false
|
||||
if hidden_gridcontainer.visible == true:
|
||||
button.toggle_mode = true
|
||||
|
||||
func _on_Button_released(progress: ProgressBar) -> void:
|
||||
is_reset_pressed = false
|
||||
%reset_progress.visible = false
|
||||
press_time = 0.0
|
||||
progress.value = 0.0
|
||||
|
||||
func _do_action(button: Button) -> void:
|
||||
var tmp_txt = button.text
|
||||
match [button.name, current_system.name]:
|
||||
["help_button", current_system.name]:
|
||||
if class_functions.desktop_mode != "gamescope":
|
||||
class_functions.logger("i", "Launching " + current_system.name + " Help")
|
||||
class_functions.launch_help(current_system.url)
|
||||
else:
|
||||
button.text = "Help only works in Desktop Mode"
|
||||
await class_functions.wait(3.0)
|
||||
button.text = tmp_txt
|
||||
["launch_button", current_system.name]:
|
||||
class_functions.logger("i", "Launching " + current_system.name)
|
||||
var launch = class_functions.execute_command(current_system.launch,[], false)
|
||||
class_functions.logger("d", "Exit Code: " + str(launch["exit_code"]))
|
||||
["reset_button", current_system.name]:
|
||||
is_reset_pressed = true
|
||||
%reset_progress.visible = true
|
||||
["rpcs3_firmware_button", current_system.name]:
|
||||
class_functions.logger("i", "Firmware install " + current_system.name)
|
||||
var launch = class_functions.execute_command(class_functions.wrapper_command,["update_rpcs3_firmware"], false)
|
||||
class_functions.logger("d", "Exit Code: " + str(launch["exit_code"]))
|
||||
["vita3k_firmware_button", current_system.name]:
|
||||
class_functions.logger("i", "Firmware install " + current_system.name)
|
||||
var launch = class_functions.execute_command(class_functions.wrapper_command,["update_vita3k_firmware"], false)
|
||||
class_functions.logger("d", "Exit Code: " + str(launch["exit_code"]))
|
||||
|
||||
func _do_complete() ->void:
|
||||
if is_reset_pressed:
|
||||
var tmp_txt = %reset_button.text
|
||||
%reset_button.text = "RESETTING-NOW"
|
||||
class_functions.logger("i", "Resetting " + current_system.name)
|
||||
var parameters = ["prepare_component","reset",current_system.name]
|
||||
reset_result = await class_functions.run_thread_command(class_functions.wrapper_command,parameters, false)
|
||||
class_functions.logger("d", "Exit Code: " + str(reset_result["exit_code"]))
|
||||
%reset_button.text = "RESET COMPLETED"
|
||||
await class_functions.wait(3.0)
|
||||
%reset_button.text = tmp_txt
|
48
tools/configurator/scripts/ToolsTab.gd
Normal file
48
tools/configurator/scripts/ToolsTab.gd
Normal file
|
@ -0,0 +1,48 @@
|
|||
extends Control
|
||||
|
||||
@onready var http_request: HTTPRequest = HTTPRequest.new()
|
||||
|
||||
func _ready():
|
||||
add_child(http_request)
|
||||
http_request.request_completed.connect(_on_request_completed)
|
||||
#check_internet_connection()
|
||||
_connect_signals()
|
||||
%backup_user_button.text += " - " + class_functions.rdhome + "/backup"
|
||||
|
||||
func _connect_signals() -> void:
|
||||
%check_conn_button.pressed.connect(check_internet_connection)
|
||||
%backup_user_button.pressed.connect(run_function.bind(%backup_user_button))
|
||||
|
||||
func run_function(button: Button) -> void:
|
||||
var tmp_txt = button.text
|
||||
class_functions.logger("d","Start User Backup")
|
||||
%progress_bar_backup.visible = true
|
||||
%backup_user_button.text = "Backup Running"
|
||||
var parameters = ["backup_retrodeck_userdata"]
|
||||
var run_result = await class_functions.run_thread_command(class_functions.wrapper_command, parameters, true)
|
||||
if run_result["exit_code"] == 0:
|
||||
%backup_user_button.text = "Backup Complete - " + class_functions.rdhome + "/backup"
|
||||
class_functions.logger("d","User Backup Completed")
|
||||
await class_functions.wait(3.0)
|
||||
%backup_user_button.text = tmp_txt
|
||||
%progress_bar_backup.visible = false
|
||||
else:
|
||||
%backup_user_button.text = "Backup Failed"
|
||||
class_functions.logger("e","User Backup Failed. " + run_result["exit_code"])
|
||||
%progress_bar_backup.visible = false
|
||||
|
||||
func check_internet_connection():
|
||||
class_functions.logger("i","Check Internet Connection")
|
||||
%check_conn_button.text = "CHECK CONNECTION"
|
||||
http_request.request("https://retrodeck.net/")
|
||||
|
||||
func _on_request_completed(_result, response_code, _headers, _body):
|
||||
#var style_box = StyleBoxFlat.new()
|
||||
if response_code == 200:
|
||||
class_functions.logger("i","Internet Connection Succesful")
|
||||
%check_conn_button.button_pressed = true
|
||||
%check_conn_button.text += " - CONNECTED"
|
||||
else:
|
||||
class_functions.logger("d","Internet Connection Failed")
|
||||
%check_conn_button.button_pressed = false
|
||||
%check_conn_button.text += " - NOT CONNECTED: " + str(response_code)
|
|
@ -1,22 +1,99 @@
|
|||
class_name ClassFunctions extends Control
|
||||
|
||||
# This should be looked at again when GoDot 4.3 ships as has new OS.execute_with_pipe
|
||||
extends Control
|
||||
var log_result: Dictionary
|
||||
var log_parameters: Array
|
||||
const wrapper_command: String = "/app/tools/retrodeck_function_wrapper.sh"
|
||||
const config_file_path = "/var/config/retrodeck/retrodeck.cfg"
|
||||
const json_file_path = "/var/config/retrodeck/retrodeck.json"
|
||||
var desktop_mode: String = OS.get_environment("XDG_CURRENT_DESKTOP")
|
||||
var rdhome: String
|
||||
var roms_folder: String
|
||||
var saves_folder: String
|
||||
var states_folder: String
|
||||
var bios_folder: String
|
||||
var rd_log: String
|
||||
var rd_log_folder: String
|
||||
var rd_version: String
|
||||
var gc_version: String
|
||||
var sound_effects: bool
|
||||
var volume_effects: int
|
||||
var title: String
|
||||
var quick_resume_status: bool
|
||||
var update_check: bool
|
||||
var abxy_state: String
|
||||
var font_select: int
|
||||
signal update_global_signal
|
||||
|
||||
func _ready():
|
||||
read_values_states()
|
||||
|
||||
func read_values_states() -> void:
|
||||
var config = data_handler.parse_config_to_json(config_file_path)
|
||||
data_handler.config_save_json(config, json_file_path)
|
||||
rd_log_folder = config["paths"]["logs_folder"]
|
||||
rd_log = rd_log_folder + "/retrodeck.log"
|
||||
rdhome = config["paths"]["rdhome"]
|
||||
roms_folder = config["paths"]["roms_folder"]
|
||||
saves_folder = config["paths"]["saves_folder"]
|
||||
states_folder = config["paths"]["states_folder"]
|
||||
bios_folder = config["paths"]["bios_folder"]
|
||||
rd_version = config["version"]
|
||||
gc_version = ProjectSettings.get_setting("application/config/version")
|
||||
title = "\n " + rd_version + "\nConfigurator\n " + gc_version
|
||||
quick_resume_status = config["quick_resume"]["retroarch"]
|
||||
update_check = config["options"]["update_check"]
|
||||
multi_state("abxy_button_swap")
|
||||
sound_effects = config["options"]["sound_effects"]
|
||||
volume_effects = int(config["options"]["volume_effects"])
|
||||
font_select = int(config["options"]["font"])
|
||||
|
||||
func multi_state(section: String) -> void:
|
||||
var config_section:Dictionary = data_handler.get_elements_in_section(config_file_path, section)
|
||||
var true_count: int = 0
|
||||
var false_count: int = 0
|
||||
for value in config_section.values():
|
||||
if value == "true":
|
||||
true_count += 1
|
||||
else:
|
||||
false_count += 1
|
||||
if true_count == config_section.size():
|
||||
abxy_state = "true"
|
||||
elif false_count == config_section.size():
|
||||
abxy_state = "false"
|
||||
else:
|
||||
abxy_state = "mixed"
|
||||
|
||||
func logger(log_type: String, log_text: String) -> void:
|
||||
# Type of log messages:
|
||||
# log d - debug message: maybe in the future we can decide to hide them in main builds or if an option is toggled
|
||||
# log i - normal informational message
|
||||
# log w - waring: something is not expected but it's not a big deal
|
||||
# log e - error: something broke
|
||||
var log_header_text = "gdc_"
|
||||
log_header_text+=log_text
|
||||
log_parameters = ["log", log_type, log_header_text]
|
||||
log_result = await run_thread_command(wrapper_command,log_parameters, false)
|
||||
#log_result = await run_thread_command("find",["$HOME", "-name", "*.xml","-print"], false)
|
||||
#print (log_result["exit_code"])
|
||||
#print (log_result["output"])
|
||||
|
||||
func array_to_string(arr: Array) -> String:
|
||||
var text: String
|
||||
for line in arr:
|
||||
#text += line + "\n"
|
||||
text = line.strip_edges() + "\n"
|
||||
return text
|
||||
|
||||
func wait (seconds: float) -> void:
|
||||
await get_tree().create_timer(seconds).timeout
|
||||
|
||||
# TODO This should be looked at again when GoDot 4.3 ships as has new OS.execute_with_pipe
|
||||
func execute_command(command: String, parameters: Array, console: bool) -> Dictionary:
|
||||
var result = {}
|
||||
var output = []
|
||||
var exit_code = OS.execute(command, parameters, output, console) ## add if exit == 0 etc
|
||||
result["output"] = array_to_string(output)
|
||||
result["exit_code"] = exit_code
|
||||
#print (array_to_string(output))
|
||||
#print (result["exit_code"])
|
||||
return result
|
||||
|
||||
func run_command_in_thread(command: String, paramaters: Array, _console: bool) -> Dictionary:
|
||||
|
@ -24,13 +101,11 @@ func run_command_in_thread(command: String, paramaters: Array, _console: bool) -
|
|||
thread.start(execute_command.bind(command,paramaters,false))
|
||||
while thread.is_alive():
|
||||
await get_tree().process_frame
|
||||
var result = thread.wait_to_finish()
|
||||
thread = null
|
||||
return result
|
||||
return thread.wait_to_finish()
|
||||
|
||||
func _threaded_command_execution(command: String, parameters: Array, console: bool) -> Dictionary:
|
||||
var result = execute_command(command, parameters, console)
|
||||
return result
|
||||
func run_thread_command(command: String, parameters: Array, console: bool) -> Dictionary:
|
||||
log_result = await run_command_in_thread(command, parameters, console)
|
||||
return log_result
|
||||
|
||||
func process_url_image(body) -> Texture:
|
||||
var image = Image.new()
|
||||
|
@ -39,6 +114,10 @@ func process_url_image(body) -> Texture:
|
|||
return texture
|
||||
|
||||
func launch_help(url: String) -> void:
|
||||
#OS.unset_environment("LD_PRELOAD")
|
||||
#OS.set_environment("XDG_CURRENT_DESKTOP", "KDE")
|
||||
#var launch = class_functions.execute_command("xdg-open",[url], false)
|
||||
#var launch = class_functions.execute_command("org.mozilla.firefox",[url], false)
|
||||
OS.shell_open(url)
|
||||
|
||||
func import_csv_data(file_path: String) -> Dictionary:
|
||||
|
@ -75,11 +154,11 @@ func import_text_file(file_path: String) -> String:
|
|||
var content: String = ""
|
||||
var file = FileAccess.open(file_path, FileAccess.READ)
|
||||
if file == null:
|
||||
print("Failed to open file")
|
||||
logger("e","Failed to open file %s" % file_path)
|
||||
return content
|
||||
while not file.eof_reached():
|
||||
content += file.get_line() + "\n"
|
||||
file.close
|
||||
#file.close
|
||||
return content
|
||||
|
||||
func map_locale_id(current_locale: String) -> int:
|
||||
|
@ -100,3 +179,122 @@ func map_locale_id(current_locale: String) -> int:
|
|||
"cn":
|
||||
int_locale = 6
|
||||
return int_locale
|
||||
|
||||
func environment_data() -> void:
|
||||
var env_result = execute_command("printenv",[], true)
|
||||
var file = FileAccess.open(OS.get_environment("HOME") + "/sdenv.txt",FileAccess.WRITE)
|
||||
if file != null:
|
||||
file.store_string(env_result["output"])
|
||||
file.close()
|
||||
|
||||
func display_json_data() -> void:
|
||||
var app_data := AppData.new()
|
||||
app_data = data_handler.app_data
|
||||
#data_handler.add_emulator()
|
||||
#data_handler.modify_emulator_test()
|
||||
if app_data:
|
||||
#var website_data: Link = app_data.about_links["rd_web"]
|
||||
#print (website_data.name,"-",website_data.url,"-",website_data.description,"-",website_data.url)
|
||||
##print (app_data.about_links["rd_web"]["name"])
|
||||
#var core_data: Core = app_data.cores["gambatte_libetro"]
|
||||
#print (core_data.name)
|
||||
#for property: CoreProperty in core_data.properties:
|
||||
#print("Cheevos: ", property.cheevos)
|
||||
#print("Cheevos Hardcore: ", property.cheevos_hardcore)
|
||||
#print("Quick Resume: ", property.quick_resume)
|
||||
#print("Rewind: ", property.rewind)
|
||||
#print("Borders: ", property.borders)
|
||||
#print("Widescreen: ", property.widescreen)
|
||||
#print("ABXY_button:", property.abxy_button)
|
||||
for key in app_data.emulators.keys():
|
||||
var emulator = app_data.emulators[key]
|
||||
# Display the properties of each emulator
|
||||
print("System Name: ", emulator.name)
|
||||
#print("Description: ", emulator.description)
|
||||
#print("System: ", emulator.systen)
|
||||
#print("Help URL: ", emulator.url)
|
||||
#print("Properties:")
|
||||
for property: EmulatorProperty in emulator.properties:
|
||||
#print("Cheevos: ", property.cheevos)
|
||||
#print("Borders: ", property.borders)
|
||||
print("ABXY_button:", property.abxy_button)
|
||||
#print("multi_user_config_dir: ", property.multi_user_config_dir)
|
||||
|
||||
for key in app_data.cores.keys():
|
||||
var core = app_data.cores[key]
|
||||
print("Core Name: ", core.name)
|
||||
#print("Description: ", core.description)
|
||||
#print("Properties:")
|
||||
for property: CoreProperty in core.properties:
|
||||
#print("Cheevos: ", property.cheevos)
|
||||
#print("Cheevos Hardcore: ", property.cheevos_hardcore)
|
||||
#print("Quick Resume: ", property.quick_resume)
|
||||
#print("Rewind: ", property.rewind)
|
||||
#print("Borders: ", property.borders)
|
||||
#print("Widescreen: ", property.widescreen)
|
||||
print("ABXY_button:", property.abxy_button)
|
||||
else:
|
||||
print ("No emulators")
|
||||
|
||||
func slider_function(value: float, slide: HSlider) -> void:
|
||||
volume_effects = int(slide.value)
|
||||
data_handler.change_cfg_value(config_file_path, "volume_effects", "options", str(slide.value))
|
||||
|
||||
func run_function(button: Button) -> void:
|
||||
if button.button_pressed:
|
||||
enable_global(button)
|
||||
else:
|
||||
disable_global(button)
|
||||
|
||||
func enable_global(button: Button) -> void:
|
||||
var result: Array
|
||||
var config_section:Dictionary = data_handler.get_elements_in_section(config_file_path, "abxy_button_swap")
|
||||
match button.name:
|
||||
"quick_resume_button", "retroarch_quick_resume_button":
|
||||
quick_resume_status = true
|
||||
update_global_signal.emit()
|
||||
result = data_handler.change_cfg_value(config_file_path, "retroarch", "quick_resume", "true")
|
||||
change_global(result, "build_preset_config")
|
||||
"update_notification_button":
|
||||
result = data_handler.change_cfg_value(config_file_path, "update_check", "options", "true")
|
||||
change_global(result, "build_preset_config")
|
||||
"sound_button":
|
||||
sound_effects = true
|
||||
update_global_signal.emit()
|
||||
result = data_handler.change_cfg_value(config_file_path, "sound_effects", "options", "true")
|
||||
logger("i", "Enabled: " % (button.name))
|
||||
"button_swap_button":
|
||||
if abxy_state == "false":
|
||||
abxy_state = "true"
|
||||
result = data_handler.change_all_cfg_values(config_file_path, config_section, "abxy_button_swap", "true")
|
||||
change_global(result, "build_preset_config")
|
||||
|
||||
func disable_global(button: Button) -> void:
|
||||
var result: Array
|
||||
var config_section:Dictionary = data_handler.get_elements_in_section(config_file_path, "abxy_button_swap")
|
||||
match button.name:
|
||||
"quick_resume_button", "retroarch_quick_resume_button":
|
||||
quick_resume_status = false
|
||||
update_global_signal.emit()
|
||||
result = data_handler.change_cfg_value(config_file_path, "retroarch", "quick_resume", "false")
|
||||
change_global(result, "build_preset_config")
|
||||
"update_notification_button":
|
||||
result = data_handler.change_cfg_value(config_file_path, "update_check", "options", "false")
|
||||
change_global(result, "build_preset_config")
|
||||
"sound_button":
|
||||
sound_effects = false
|
||||
update_global_signal.emit()
|
||||
result = data_handler.change_cfg_value(config_file_path, "sound_effects", "options", "false")
|
||||
logger("i", "Disabled: " % (button.name))
|
||||
"button_swap_button":
|
||||
if abxy_state == "true":
|
||||
abxy_state = "false"
|
||||
result = data_handler.change_all_cfg_values(config_file_path, config_section, "abxy_button_swap", "false")
|
||||
change_global(result, "build_preset_config")
|
||||
|
||||
func change_global(parameters: Array, preset: String) -> void:
|
||||
for system in parameters[0].keys():
|
||||
var command_parameter: Array = [preset, system, parameters[1]]
|
||||
logger("d", "Change Global: %s System: %s Preset %s " % command_parameter)
|
||||
var result: Dictionary = await run_thread_command(wrapper_command, command_parameter, false)
|
||||
logger("d", "Exit code: %s" % result["exit_code"])
|
||||
|
|
|
@ -47,6 +47,32 @@ func load_base_data() -> AppData:
|
|||
if property_data.has("multi_user_config_dir"):
|
||||
property.multi_user_config_dir = property_data.get("multi_user_config_dir",true)
|
||||
emulator.properties.append(property)
|
||||
emulators[key] = emulator
|
||||
#TODO add systems too
|
||||
var cores = {}
|
||||
for key in data_dict["emulator"]["retroarch"]["cores"].keys():
|
||||
var core_data = data_dict["emulator"]["retroarch"]["cores"][key]
|
||||
var core = Core.new()
|
||||
core.name = core_data["name"]
|
||||
core.description = core_data["description"]
|
||||
if core_data.has("properties"):
|
||||
for property_data in core_data["properties"]:
|
||||
#print (core.name,"----",property_data)
|
||||
# inherit from RetroArch
|
||||
var property = CoreProperty.new()
|
||||
property.cheevos = true
|
||||
property.cheevos_hardcore = true
|
||||
property.quick_resume = true
|
||||
if property_data.has("abxy_button"):
|
||||
property.abxy_button = property_data.get("abxy_button",true)
|
||||
if property_data.has("widescreen"):
|
||||
property.widescreen = property_data.get("widescreen",true)
|
||||
if property_data.has("borders"):
|
||||
property.borders = property_data.get("borders",true)
|
||||
if property_data.has("rewind"):
|
||||
property.rewind = property_data.get("rewind",true)
|
||||
core.properties.append(property)
|
||||
cores[key] = core
|
||||
|
||||
emulators[key] = emulator
|
||||
var app_dict = AppData.new()
|
||||
|
@ -54,9 +80,9 @@ func load_base_data() -> AppData:
|
|||
app_dict.emulators = emulators
|
||||
return app_dict
|
||||
else:
|
||||
print("Error parsing JSON")
|
||||
class_functions.logger("d","Error parsing JSON ")
|
||||
else:
|
||||
print("Error opening file")
|
||||
class_functions.logger("d","Error opening file: " + file)
|
||||
get_tree().quit()
|
||||
return null
|
||||
|
||||
|
@ -212,29 +238,23 @@ func parse_config_to_json(file_path: String) -> Dictionary:
|
|||
|
||||
var file = FileAccess.open(file_path, FileAccess.READ)
|
||||
if file == null:
|
||||
print("Failed to open file")
|
||||
class_functions.logger("e","Failed to open file: " + file_path)
|
||||
return config
|
||||
|
||||
while not file.eof_reached():
|
||||
var line = file.get_line().strip_edges()
|
||||
|
||||
if line.begins_with("[") and line.ends_with("]"):
|
||||
# Start a new section
|
||||
current_section = line.substr(1, line.length() - 2)
|
||||
config[current_section] = {}
|
||||
elif line != "" and not line.begins_with("#"):
|
||||
# Add key-value pair to the current section
|
||||
var parts = line.split("=")
|
||||
if parts.size() == 2:
|
||||
var key = parts[0].strip_edges()
|
||||
var value = parts[1].strip_edges()
|
||||
|
||||
# Convert value to proper type
|
||||
if value == "true":
|
||||
value = true
|
||||
elif value == "false":
|
||||
value = false
|
||||
|
||||
if key == "version":
|
||||
config[key] = value
|
||||
else:
|
||||
|
@ -256,4 +276,92 @@ func config_save_json(config: Dictionary, json_file_path: String) -> void:
|
|||
file.store_string(json_string)
|
||||
file.close()
|
||||
else:
|
||||
print("Failed to open JSON file for writing")
|
||||
class_functions.logger("e", "File not found: %s" % json_file_path)
|
||||
|
||||
func read_cfg_file(file_path: String) -> Array:
|
||||
var lines: Array = []
|
||||
var file: FileAccess = FileAccess.open(file_path, FileAccess.ModeFlags.READ)
|
||||
if file:
|
||||
while not file.eof_reached():
|
||||
var line: String = file.get_line()
|
||||
lines.append(line)
|
||||
file.close()
|
||||
else:
|
||||
class_functions.logger("e", "File not found: %s" % file_path)
|
||||
return lines
|
||||
|
||||
func write_cfg_file(file_path: String, lines: Array, changes: Dictionary) -> void:
|
||||
var file: FileAccess = FileAccess.open(file_path, FileAccess.ModeFlags.WRITE)
|
||||
var current_section: String = ""
|
||||
for line in lines:
|
||||
var trimmed_line: String = line.strip_edges()
|
||||
if trimmed_line.begins_with("[") and trimmed_line.ends_with("]"):
|
||||
current_section = trimmed_line.trim_prefix("[").trim_suffix("]")
|
||||
file.store_line(line)
|
||||
elif "=" in trimmed_line and current_section in changes:
|
||||
var parts: Array = trimmed_line.split("=", false)
|
||||
if parts.size() >= 2:
|
||||
var key: String = parts[0].strip_edges()
|
||||
var original_value: String = parts[1].strip_edges()
|
||||
if key in changes[current_section]:
|
||||
var new_value: String = changes[current_section][key]
|
||||
if new_value != original_value:
|
||||
file.store_line(key + "=" + new_value)
|
||||
class_functions.logger("i", "Changed %s %s from Value: %s to Value: %s" % [key, current_section, original_value, new_value])
|
||||
else:
|
||||
file.store_line(line)
|
||||
else:
|
||||
file.store_line(line)
|
||||
else:
|
||||
file.store_line(line)
|
||||
else:
|
||||
file.store_line(line)
|
||||
file.close()
|
||||
|
||||
func change_cfg_value(file_path: String, system: String, section: String, new_value: String) -> Array:
|
||||
var lines: Array = read_cfg_file(file_path)
|
||||
var parameters: Array =[system, section]
|
||||
var changes: Dictionary = {}
|
||||
if section in changes:
|
||||
changes[section][system] = new_value
|
||||
else:
|
||||
changes[section] = {system: new_value}
|
||||
class_functions.logger("i", "Change: System: %s Section %s New Value: %s" % [system, section, new_value])
|
||||
write_cfg_file(file_path, lines, changes)
|
||||
return parameters
|
||||
|
||||
func change_all_cfg_values(file_path: String, systems: Dictionary, section: String, new_value: String) -> Array:
|
||||
var lines: Array = read_cfg_file(file_path)
|
||||
var parameters: Array =[systems, section]
|
||||
var changes: Dictionary = {}
|
||||
var current_section: String
|
||||
for line in lines:
|
||||
var trimmed_line: String = line.strip_edges()
|
||||
if trimmed_line.begins_with("[") and trimmed_line.ends_with("]"):
|
||||
current_section = trimmed_line.trim_prefix("[").trim_suffix("]")
|
||||
if current_section == section:
|
||||
changes[current_section] = {}
|
||||
elif "=" in trimmed_line and current_section == section:
|
||||
var parts: Array = trimmed_line.split("=", false)
|
||||
if parts.size() >= 2:
|
||||
var key: String = parts[0].strip_edges()
|
||||
changes[section][key] = new_value
|
||||
class_functions.logger("i", "Change: Systems: %s Section %s New Value: %s" % [systems, section, new_value])
|
||||
write_cfg_file(file_path, lines, changes)
|
||||
return parameters
|
||||
|
||||
func get_elements_in_section(file_path: String, section: String) -> Dictionary:
|
||||
var lines: Array = read_cfg_file(file_path)
|
||||
var elements: Dictionary = {}
|
||||
var current_section: String = ""
|
||||
for line in lines:
|
||||
var trimmed_line: String = line.strip_edges()
|
||||
if trimmed_line.begins_with("[") and trimmed_line.ends_with("]"):
|
||||
current_section = trimmed_line.trim_prefix("[").trim_suffix("]")
|
||||
elif "=" in trimmed_line and current_section == section:
|
||||
var parts: Array = trimmed_line.split("=", false)
|
||||
if parts.size() >= 2:
|
||||
var key: String = parts[0].strip_edges()
|
||||
var value: String = parts[1].strip_edges()
|
||||
elements[key] = value
|
||||
return elements
|
||||
|
|
|
@ -1,17 +1,7 @@
|
|||
#todo
|
||||
# add cores as class/ Like eumlator but one level lower
|
||||
|
||||
extends Control
|
||||
|
||||
var bios_type:int
|
||||
var status_code_label: Label
|
||||
var wrapper_command: String = "../../tools/retrodeck_function_wrapper.sh"
|
||||
var log_text = "gdc_"
|
||||
var log_parameters: Array = ["log", "i", log_text]
|
||||
var log_results: Dictionary
|
||||
var theme_option: OptionButton
|
||||
#signal signal_theme_changed
|
||||
var custom_theme: Theme = $".".theme
|
||||
@onready var bios_type:int
|
||||
var custom_theme: Theme
|
||||
var log_option: OptionButton
|
||||
var tab_container: TabContainer
|
||||
var anim_logo: AnimatedSprite2D
|
||||
|
@ -22,49 +12,18 @@ var l1_button_texture: Texture2D = load("res://assets/icons/kenney_input-prompts
|
|||
var r1_button_texture: Texture2D = load("res://assets/icons/kenney_input-prompts-pixel-16/Tiles/tile_0798.png")
|
||||
var a_button_texture: Texture2D = load("res://assets/icons/kenney_input-prompts-pixel-16/Tiles/tile_0042.png")
|
||||
var b_button_texture: Texture2D = load("res://assets/icons/kenney_input-prompts-pixel-16/Tiles/tile_0043.png")
|
||||
var l1_button_texture: Texture2D = load("res://assets/icons/kenney_input-prompts-pixel-16/Tiles/tile_0797.png")
|
||||
var r1_button_texture: Texture2D = load("res://assets/icons/kenney_input-prompts-pixel-16/Tiles/tile_0798.png")
|
||||
|
||||
var app_data := AppData.new()
|
||||
func _ready():
|
||||
_get_nodes()
|
||||
_connect_signals()
|
||||
_play_main_animations()
|
||||
_set_up_globals()
|
||||
%locale_option.selected = class_functions.map_locale_id(OS.get_locale_language())
|
||||
app_data = data_handler.app_data
|
||||
#data_handler.add_emulator()
|
||||
#data_handler.modify_emulator_test()
|
||||
if app_data:
|
||||
var website_data: Link = app_data.about_links["rd_web"]
|
||||
print (website_data.name,"-",website_data.url,"-",website_data.description,"-",website_data.url)
|
||||
#print (app_data.about_links["rd_web"]["name"])
|
||||
|
||||
for key in app_data.emulators.keys():
|
||||
var emulator = app_data.emulators[key]
|
||||
# Display the properties of each emulator
|
||||
print("Emulator Name: ", emulator.name)
|
||||
print("Description: ", emulator.description)
|
||||
print("Properties:")
|
||||
# Iterate over properties and show each one
|
||||
for property: EmulatorProperty in emulator.properties:
|
||||
print("Cheevos: ", property.cheevos)
|
||||
print("ABXY_button:", property.abxy_button)
|
||||
print("multi_user_config_dir: ", property.multi_user_config_dir)
|
||||
else:
|
||||
print ("No emulators")
|
||||
|
||||
var config_file_path = "/var/config/retrodeck/retrodeck.cfg"
|
||||
var json_file_path = "/var/config/retrodeck/retrodeck.json"
|
||||
var config = data_handler.parse_config_to_json(config_file_path)
|
||||
data_handler.config_save_json(config, json_file_path)
|
||||
rd_logs = config["paths"]["logs_folder"]
|
||||
rd_version = config["version"]
|
||||
gc_version = ProjectSettings.get_setting("application/config/version")
|
||||
%rd_title.text+= "\n " + rd_version + "\nConfigurator\n " + gc_version
|
||||
|
||||
#var log_file = class_functions.import_text_file(rd_logs +"/retrodeck.log")
|
||||
#for id in config.paths:
|
||||
# var path_data = config.paths[id]
|
||||
# print (id)
|
||||
|
||||
%rd_title.text += class_functions.title
|
||||
class_functions.logger("i","Started Godot configurator")
|
||||
#class_functions.display_json_data()
|
||||
# set current startup tab to match IDE
|
||||
tab_container.current_tab = 0
|
||||
#add_child(class_functions) # Needed for threaded results Not need autoload?
|
||||
|
@ -74,11 +33,12 @@ func _ready():
|
|||
n.mouse_entered.connect(_on_control_mouse_entered.bind(n)) #grab focus on mouse hover
|
||||
if (n.is_class("BaseButton") and n.disabled == true): #if button-like control and disabled
|
||||
n.self_modulate.a = 0.5 #make it half transparent
|
||||
combine_tkeys()
|
||||
#combine_tkeys()
|
||||
change_font(class_functions.font_select)
|
||||
|
||||
func _input(event):
|
||||
if Input.is_action_pressed("quit1") and Input.is_action_pressed("quit2"):
|
||||
get_tree().quit()
|
||||
_exit()
|
||||
if Input.is_action_pressed("next_tab"):
|
||||
%r1_button.texture_normal = %r1_button.texture_pressed
|
||||
elif Input.is_action_pressed("previous_tab"):
|
||||
|
@ -95,35 +55,41 @@ func _input(event):
|
|||
if event.is_action_pressed("quit"):
|
||||
_exit()
|
||||
|
||||
func _exit():
|
||||
class_functions.logger("i","Exited Godot configurator")
|
||||
get_tree().root.propagate_notification(NOTIFICATION_WM_CLOSE_REQUEST)
|
||||
get_tree().quit()
|
||||
|
||||
func _get_nodes() -> void:
|
||||
status_code_label = get_node("%status_code_label")
|
||||
theme_option = get_node("%theme_optionbutton")
|
||||
tab_container = get_node("%TabContainer")
|
||||
anim_logo = get_node("%logo_animated")
|
||||
log_option = get_node("%logs_button")
|
||||
|
||||
func _connect_signals() -> void:
|
||||
#signal_theme_changed.connect(_conf_theme)
|
||||
theme_option.item_selected.connect(_conf_theme)
|
||||
#signal_theme_changed.emit(theme_option.item_selected)
|
||||
%font_optionbutton.item_selected.connect(change_font)
|
||||
log_option.item_selected.connect(_load_log)
|
||||
%borders_button.pressed.connect(_hide_show.bind(%borders_button))
|
||||
%save_button.pressed.connect(_hide_show.bind(%save_button))
|
||||
%decorations_button.pressed.connect(_hide_show_containers.bind(%decorations_button))
|
||||
%systems_button.pressed.connect(_hide_show_containers.bind(%systems_button))
|
||||
%save_resume_button.pressed.connect(_hide_show_containers.bind(%decorations_button))
|
||||
%borders_button.pressed.connect(_hide_show_buttons.bind(%borders_button,%borders_gridcontainer,%decorations_gridcontainer))
|
||||
%button_layout.pressed.connect(_hide_show_buttons.bind(%button_layout,%borders_gridcontainer,%decorations_gridcontainer))
|
||||
%decorations_save.pressed.connect(_hide_show_buttons.bind(%decorations_save,%decorations_save.get_parent(),null))
|
||||
%decorations_button.pressed.connect(_hide_show_containers.bind(%decorations_button, %decorations_gridcontainer))
|
||||
%systems_button.pressed.connect(_hide_show_containers.bind(%systems_button, %systems_gridcontainer))
|
||||
class_functions.update_global_signal.connect(_set_up_globals)
|
||||
|
||||
func _load_log(index: int) -> void:
|
||||
var log_content:String
|
||||
match index:
|
||||
1:
|
||||
log_content = class_functions.import_text_file(rd_logs +"/retrodeck.log")
|
||||
class_functions.logger("i","Loading RetroDeck log")
|
||||
log_content = class_functions.import_text_file(class_functions.rd_log_folder +"/retrodeck.log")
|
||||
load_popup("RetroDeck Log", "res://components/logs_view/logs_popup_content.tscn", log_content)
|
||||
2:
|
||||
log_content = class_functions.import_text_file(rd_logs +"/ES-DE/es_log.txt")
|
||||
class_functions.logger("i","Loading ES-DE log")
|
||||
log_content = class_functions.import_text_file(class_functions.rd_log_folder +"/ES-DE/es_log.txt")
|
||||
load_popup("ES-DE Log", "res://components/logs_view/logs_popup_content.tscn",log_content)
|
||||
3:
|
||||
log_content = class_functions.import_text_file(rd_logs +"/retroarch/logs/log.txt")
|
||||
class_functions.logger("i","Loading RetroArch log")
|
||||
log_content = class_functions.import_text_file(class_functions.rd_log_folder +"/retroarch/logs/log.txt")
|
||||
load_popup("Retroarch Log", "res://components/logs_view/logs_popup_content.tscn",log_content)
|
||||
|
||||
func _play_main_animations() -> void:
|
||||
|
@ -146,40 +112,29 @@ func _hide_show_containers(button: Button) -> void:
|
|||
else:
|
||||
button.toggle_mode=true
|
||||
|
||||
func _hide_show(button: Button) -> void:
|
||||
if %borders_button.button_pressed:
|
||||
%borders_gridcontainer.visible = true
|
||||
for i in range(%borders_gridcontainer.get_child_count()):
|
||||
var child = %borders_gridcontainer.get_child(i)
|
||||
if child is Button:
|
||||
# TODO Pass GridContainer(might need 2?) as above
|
||||
# TODO load existing settings or default to enable all
|
||||
func _hide_show_buttons(button: Button, buttons_gridcontainer: GridContainer, hidden_gridcontainer: GridContainer) -> void:
|
||||
match button.name:
|
||||
"borders_button", "button_layout":
|
||||
buttons_gridcontainer.visible = true
|
||||
if button.toggle_mode == false:
|
||||
for i in range(buttons_gridcontainer.get_child_count()):
|
||||
var child = buttons_gridcontainer.get_child(i)
|
||||
child.button_pressed=true
|
||||
for i in range(%graphics_gridcontainer.get_child_count()):
|
||||
var child = %graphics_gridcontainer.get_child(i)
|
||||
if child is Button and child != %borders_button:
|
||||
for i in range(hidden_gridcontainer.get_child_count()):
|
||||
var child = hidden_gridcontainer.get_child(i)
|
||||
if child is Button and child != button:
|
||||
child.visible=false
|
||||
%save_button.visible=true
|
||||
|
||||
if %save_button.button_pressed:
|
||||
%borders_gridcontainer.visible = false
|
||||
for i in range(%graphics_gridcontainer.get_child_count()):
|
||||
var child = %graphics_gridcontainer.get_child(i)
|
||||
elif button.toggle_mode == true and %borders_gridcontainer.visible == true:
|
||||
buttons_gridcontainer.visible = false
|
||||
#button.toggle_mode = false
|
||||
for i in range(hidden_gridcontainer.get_child_count()):
|
||||
var child = hidden_gridcontainer.get_child(i)
|
||||
if child is Button:
|
||||
child.visible=true
|
||||
%save_button.visible=false
|
||||
|
||||
func _conf_theme(index: int) -> void:
|
||||
print (index)
|
||||
match index:
|
||||
1:
|
||||
custom_theme = preload("res://res/pixel_ui_theme/RetroDECKTheme.tres")
|
||||
2:
|
||||
custom_theme = preload("res://assets/themes/retro_theme.tres")
|
||||
3:
|
||||
custom_theme = preload("res://assets/themes/modern_theme.tres")
|
||||
4:
|
||||
custom_theme = preload("res://assets/themes/accesible_theme.tres")
|
||||
$".".theme = custom_theme
|
||||
_play_main_animations()
|
||||
child.toggle_mode = false
|
||||
button.toggle_mode = true
|
||||
|
||||
func findElements(node: Node, className: String, result: Array = []) -> Array:
|
||||
if node.is_class(className):
|
||||
|
@ -198,11 +153,11 @@ func load_popup(title:String, content_path:String, display_text: String):
|
|||
popup.set_display_text(display_text)
|
||||
$Background.add_child(popup)
|
||||
|
||||
func _on_quickresume_advanced_pressed():
|
||||
load_popup("Quick Resume Advanced", "res://components/popups_content/popup_content_test.tscn","")
|
||||
|
||||
func _on_bios_button_pressed():
|
||||
_play_main_animations()
|
||||
bios_type = 1
|
||||
class_functions.logger("i","Bios Check")
|
||||
load_popup("BIOS File Check", "res://components/bios_check/bios_popup_content.tscn","")
|
||||
bios_type = 0
|
||||
log_parameters[2] = log_text + "Bios_Check"
|
||||
log_results = class_functions.execute_command(wrapper_command, log_parameters, false)
|
||||
|
@ -211,9 +166,8 @@ func _on_bios_button_pressed():
|
|||
|
||||
func _on_bios_button_expert_pressed():
|
||||
_play_main_animations()
|
||||
bios_type = 1
|
||||
log_parameters[2] = log_text + "Advanced_Bios_Check"
|
||||
log_results = class_functions.execute_command(wrapper_command, log_parameters, false)
|
||||
bios_type = 2
|
||||
class_functions.logger("i","Advanced Bios Check")
|
||||
load_popup("BIOS File Check", "res://components/bios_check/bios_popup_content.tscn","")
|
||||
status_code_label.text = str(log_results["exit_code"])
|
||||
|
||||
|
@ -222,40 +176,67 @@ func _on_exit_button_pressed():
|
|||
log_parameters[2] = log_text + "Exited"
|
||||
log_results = class_functions.execute_command(wrapper_command, log_parameters, false)
|
||||
_exit()
|
||||
_exit()
|
||||
|
||||
func _exit():
|
||||
get_tree().root.propagate_notification(NOTIFICATION_WM_CLOSE_REQUEST)
|
||||
get_tree().quit()
|
||||
#func _on_locale_selected(index):
|
||||
#match index:
|
||||
#0:
|
||||
#TranslationServer.set_locale("en")
|
||||
#_:
|
||||
#TranslationServer.set_locale("en")
|
||||
#combine_tkeys()
|
||||
|
||||
func _on_locale_selected(index):
|
||||
match index:
|
||||
0:
|
||||
TranslationServer.set_locale("en")
|
||||
_:
|
||||
TranslationServer.set_locale("en")
|
||||
combine_tkeys()
|
||||
|
||||
"""
|
||||
1:
|
||||
TranslationServer.set_locale("it")
|
||||
2:
|
||||
TranslationServer.set_locale("de")
|
||||
3:
|
||||
TranslationServer.set_locale("sv")
|
||||
4:
|
||||
TranslationServer.set_locale("ua")
|
||||
5:
|
||||
TranslationServer.set_locale("ja")
|
||||
6:
|
||||
TranslationServer.set_locale("zh")
|
||||
"""
|
||||
|
||||
|
||||
func combine_tkeys(): #More as a test
|
||||
%cheats.text = tr("TK_CHEATS") + " " + tr("TK_SOON") # switched to access as a unique name as easier to refactor
|
||||
#func combine_tkeys(): #More as a test
|
||||
#pass
|
||||
#%cheats.text = tr("TK_CHEATS") + " " + tr("TK_SOON") # switched to access as a unique name as easier to refactor
|
||||
#$Background/MarginContainer/TabContainer/TK_SYSTEM/ScrollContainer/VBoxContainer/HBoxContainer/GridContainer/cheats.text = tr("TK_CHEATS") + " " + tr("TK_SOON")
|
||||
#%tate_mode.text = tr("TK_TATE") + " " + tr("TK_SOON")
|
||||
#%hotkey_sound.text = tr("TK_HOTKEYSOUND") + " " + tr("TK_SOON")
|
||||
#$Background/MarginContainer/TabContainer/TK_NETWORK/ScrollContainer/VBoxContainer/cheevos_container/cheevos_advanced_container/cheevos_hardcore.text = tr("TK_CHEEVOSHARDCORE") + " " + tr("TK_SOON")
|
||||
#$Background/MarginContainer/TabContainer/TK_NETWORK/ScrollContainer/VBoxContainer/data_mng_container/saves_sync.text = tr("TK_SAVESSYNC") + " " + tr("TK_SOON")
|
||||
#$Background/MarginContainer/TabContainer/TK_CONFIGURATOR/ScrollContainer/VBoxContainer/system_container/easter_eggs.text = tr("TK_EASTEREGGS") + " " + tr("TK_SOON")
|
||||
|
||||
func _set_up_globals() -> void:
|
||||
%update_notification_button.button_pressed = class_functions.update_check
|
||||
var quick_resume = class_functions.quick_resume_status
|
||||
%quick_resume_button.button_pressed = quick_resume
|
||||
%retroarch_quick_resume_button.button_pressed = quick_resume
|
||||
var sound_effects = class_functions.sound_effects
|
||||
%sound_button.button_pressed = sound_effects
|
||||
%volume_effects_slider.visible = sound_effects
|
||||
match class_functions.abxy_state:
|
||||
"true":
|
||||
%button_swap_button.button_pressed = true
|
||||
"false":
|
||||
%button_swap_button.button_pressed = false
|
||||
_:
|
||||
var style_box = StyleBoxFlat.new()
|
||||
style_box.bg_color = Color(1, 0.54902, 0, 1) # Orange color
|
||||
style_box.border_color = Color(0.102, 0.624, 1, 1) # Blue border
|
||||
style_box.border_blend = true
|
||||
style_box.corner_radius_top_left = 25
|
||||
style_box.corner_radius_top_right = 25
|
||||
style_box.corner_radius_bottom_right = 25
|
||||
style_box.corner_radius_bottom_left = 25
|
||||
style_box.border_width_left = 15
|
||||
style_box.border_width_top = 15
|
||||
style_box.border_width_right = 15
|
||||
style_box.border_width_bottom = 15
|
||||
%button_swap_button.add_theme_stylebox_override("normal", style_box)
|
||||
%button_swap_button.toggle_mode = false
|
||||
|
||||
func change_font(index: int) -> void:
|
||||
var font_file: FontFile
|
||||
match index:
|
||||
1:
|
||||
font_file = load("res://res/pixel_ui_theme/pixel-sans.otf")
|
||||
2:
|
||||
font_file = load("res://assets/fonts/munro/munro.ttf")
|
||||
3:
|
||||
font_file = load("res://assets/fonts/akrobat/Akrobat-Regular.otf")
|
||||
4:
|
||||
font_file = load("res://assets/fonts/OpenDyslexic3/OpenDyslexic3-Regular.ttf")
|
||||
custom_theme = load("res://assets/themes/default_theme.tres")
|
||||
custom_theme.set_font("font", "Control", font_file)
|
||||
$".".theme = custom_theme
|
||||
data_handler.change_cfg_value(class_functions.config_file_path, "font", "options", str(index))
|
17
tools/configurator/scripts/retrodeck.gd
Normal file
17
tools/configurator/scripts/retrodeck.gd
Normal file
|
@ -0,0 +1,17 @@
|
|||
extends Sprite2D
|
||||
|
||||
@export var rotation_speed: float = 45.0
|
||||
@export var speed = 400
|
||||
const SCALE_MIN = 0.01
|
||||
const SCALE_MAX = 0.35
|
||||
const SCALE_SPEED = 0.5
|
||||
var scale_direction = 1.0
|
||||
|
||||
func _process(delta) -> void:
|
||||
# Rotate the sprite
|
||||
rotation_degrees += rotation_speed * delta
|
||||
var new_scale = scale + Vector2(scale_direction, scale_direction) * SCALE_SPEED * delta
|
||||
if new_scale.x < SCALE_MIN or new_scale.x > SCALE_MAX:
|
||||
scale_direction *= -1 # Reverse direction if scale limit is reached
|
||||
else:
|
||||
scale = new_scale
|
|
@ -1,100 +0,0 @@
|
|||
extends MarginContainer
|
||||
|
||||
var rd_web_button := Button.new()
|
||||
var rd_changelog_button := Button.new()
|
||||
var rd_wiki_button := Button.new()
|
||||
var rd_credits_button := Button.new()
|
||||
var rd_donate_button := Button.new()
|
||||
var rd_contactus_button := Button.new()
|
||||
var rd_licenses_button := Button.new()
|
||||
var app_data := AppData.new()
|
||||
var bArray :Array = [rd_web_button,rd_changelog_button,rd_wiki_button,
|
||||
rd_credits_button,rd_donate_button,rd_contactus_button,rd_licenses_button]
|
||||
|
||||
func _ready():
|
||||
#tk_about = class_functions.import_csv_data("res://tk_about.txt")
|
||||
app_data = data_handler.app_data
|
||||
#_get_nodes()
|
||||
_connect_signals()
|
||||
for but in bArray:
|
||||
%GridContainer.add_child(but)
|
||||
for id in app_data.about_links:
|
||||
var web_data: Link = app_data.about_links[id]
|
||||
match id:
|
||||
"rd_web":
|
||||
rd_web_button.text = web_data.name
|
||||
rd_web_button.tooltip_text = web_data.description
|
||||
rd_web_button.icon = ResourceLoader.load(web_data.icon)
|
||||
rd_web_button.editor_description = web_data.url
|
||||
rd_web_button.icon_alignment = HORIZONTAL_ALIGNMENT_CENTER
|
||||
rd_web_button.vertical_icon_alignment = VERTICAL_ALIGNMENT_TOP
|
||||
"rd_changelog":
|
||||
rd_changelog_button.text = web_data.name
|
||||
rd_changelog_button.tooltip_text = web_data.description
|
||||
rd_changelog_button.icon = ResourceLoader.load(web_data.icon)
|
||||
rd_changelog_button.editor_description = web_data.url
|
||||
rd_changelog_button.icon_alignment = HORIZONTAL_ALIGNMENT_CENTER
|
||||
rd_changelog_button.vertical_icon_alignment = VERTICAL_ALIGNMENT_TOP
|
||||
"rd_wiki":
|
||||
rd_wiki_button.text = web_data.name
|
||||
rd_wiki_button.tooltip_text = web_data.description
|
||||
rd_wiki_button.icon = ResourceLoader.load(web_data.icon)
|
||||
rd_wiki_button.editor_description = web_data.url
|
||||
rd_wiki_button.icon_alignment = HORIZONTAL_ALIGNMENT_CENTER
|
||||
rd_wiki_button.vertical_icon_alignment = VERTICAL_ALIGNMENT_TOP
|
||||
"rd_credits":
|
||||
rd_credits_button.text = web_data.name
|
||||
rd_credits_button.tooltip_text = web_data.description
|
||||
rd_credits_button.icon = ResourceLoader.load(web_data.icon)
|
||||
rd_credits_button.editor_description = web_data.url
|
||||
rd_credits_button.icon_alignment = HORIZONTAL_ALIGNMENT_CENTER
|
||||
rd_credits_button.vertical_icon_alignment = VERTICAL_ALIGNMENT_TOP
|
||||
"rd_donate":
|
||||
rd_donate_button.text = web_data.name
|
||||
rd_donate_button.tooltip_text = web_data.description
|
||||
rd_donate_button.icon = ResourceLoader.load(web_data.icon)
|
||||
rd_donate_button.editor_description = web_data.url
|
||||
rd_donate_button.icon_alignment = HORIZONTAL_ALIGNMENT_CENTER
|
||||
rd_donate_button.vertical_icon_alignment = VERTICAL_ALIGNMENT_TOP
|
||||
"rd_contactus":
|
||||
rd_contactus_button.text = web_data.name
|
||||
rd_contactus_button.tooltip_text = web_data.description
|
||||
rd_contactus_button.icon = ResourceLoader.load(web_data.icon)
|
||||
rd_contactus_button.editor_description = web_data.url
|
||||
rd_contactus_button.icon_alignment = HORIZONTAL_ALIGNMENT_CENTER
|
||||
rd_contactus_button.vertical_icon_alignment = VERTICAL_ALIGNMENT_TOP
|
||||
"rd_licenses":
|
||||
rd_licenses_button.text = web_data.name
|
||||
rd_licenses_button.tooltip_text = web_data.description
|
||||
rd_licenses_button.icon = ResourceLoader.load(web_data.icon)
|
||||
rd_licenses_button.editor_description = web_data.url
|
||||
rd_licenses_button.icon_alignment = HORIZONTAL_ALIGNMENT_CENTER
|
||||
rd_licenses_button.vertical_icon_alignment = VERTICAL_ALIGNMENT_TOP
|
||||
|
||||
func _connect_signals() -> void:
|
||||
rd_web_button.pressed.connect(_about_button_pressed.bind("rd_web"))
|
||||
rd_changelog_button.pressed.connect(_about_button_pressed.bind("rd_changelog"))
|
||||
rd_wiki_button.pressed.connect(_about_button_pressed.bind("rd_wiki"))
|
||||
rd_credits_button.pressed.connect(_about_button_pressed.bind("rd_credits"))
|
||||
rd_donate_button.pressed.connect(_about_button_pressed.bind("rd_donate"))
|
||||
rd_contactus_button.pressed.connect(_about_button_pressed.bind("rd_contactus"))
|
||||
rd_licenses_button.pressed.connect(_about_button_pressed.bind("rd_licenses"))
|
||||
|
||||
func _about_button_pressed(id: String) -> void:
|
||||
match id:
|
||||
"rd_web":
|
||||
OS.shell_open(rd_web_button.editor_description)
|
||||
"rd_changelog":
|
||||
OS.shell_open(rd_changelog_button.editor_description)
|
||||
"rd_wiki":
|
||||
OS.shell_open(rd_wiki_button.editor_description)
|
||||
"rd_credits":
|
||||
OS.shell_open(rd_credits_button.editor_description)
|
||||
"rd_donate":
|
||||
OS.shell_open(rd_donate_button.editor_description)
|
||||
"rd_contactus":
|
||||
OS.shell_open(rd_contactus_button.editor_description)
|
||||
"rd_licenses":
|
||||
OS.shell_open(rd_licenses_button.editor_description)
|
||||
_:
|
||||
print ("Website ID/Link not found")
|
Loading…
Reference in a new issue