RetroDECK/tools/configurator/main.gd

294 lines
13 KiB
GDScript3
Raw Normal View History

2024-08-18 21:42:40 +00:00
#todo
# add cores as class/ Like eumlator but one level lower
2023-09-23 16:24:55 +00:00
extends Control
@onready var bios_type:int
var log_results: Dictionary
Theme and Theme Inheritance On branch feat/godot-configurator Changes to be committed: new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Bold.ttf new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Bold.ttf.import new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Regular.ttf new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Regular.ttf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Black.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Black.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Bold.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Bold.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-ExtraLight.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-ExtraLight.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Light.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Light.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Regular.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Regular.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-SemiBold.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-SemiBold.otf.import new file: tools/configurator/assets/fonts/akrobat/akrobat-extrabold-webfont.ttf new file: tools/configurator/assets/fonts/akrobat/akrobat-extrabold-webfont.ttf.import new file: tools/configurator/assets/fonts/munro/munro-narrow.ttf new file: tools/configurator/assets/fonts/munro/munro-narrow.ttf.import new file: tools/configurator/assets/fonts/munro/munro-small.ttf new file: tools/configurator/assets/fonts/munro/munro-small.ttf.import new file: tools/configurator/assets/fonts/munro/munro.ttf new file: tools/configurator/assets/fonts/munro/munro.ttf.import new file: tools/configurator/assets/graphics/Rekku/Rekku-test.xcf new file: tools/configurator/assets/graphics/Rekku/base.png new file: tools/configurator/assets/graphics/Rekku/base.png.import new file: tools/configurator/assets/graphics/Rekku/blink1.png new file: tools/configurator/assets/graphics/Rekku/blink1.png.import new file: tools/configurator/assets/graphics/Rekku/blink2.png new file: tools/configurator/assets/graphics/Rekku/blink2.png.import new file: tools/configurator/assets/graphics/Rekku/eyes-open.png new file: tools/configurator/assets/graphics/Rekku/eyes-open.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-A.png new file: tools/configurator/assets/graphics/Rekku/mouth-A.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-O.png new file: tools/configurator/assets/graphics/Rekku/mouth-O.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-base.png new file: tools/configurator/assets/graphics/Rekku/mouth-base.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-blink-down.png new file: tools/configurator/assets/graphics/Rekku/rekku-blink-down.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-blink-up.png new file: tools/configurator/assets/graphics/Rekku/rekku-blink-up.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-idle.png new file: tools/configurator/assets/graphics/Rekku/rekku-idle.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-speak1.png new file: tools/configurator/assets/graphics/Rekku/rekku-speak1.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-speak2.png new file: tools/configurator/assets/graphics/Rekku/rekku-speak2.png.import new file: tools/configurator/assets/graphics/retrodeck.png new file: tools/configurator/assets/graphics/retrodeck.png.import new file: tools/configurator/assets/themes/accesible_theme.tres new file: tools/configurator/assets/themes/default_theme.tres new file: tools/configurator/assets/themes/modern_theme.tres new file: tools/configurator/assets/themes/retro_theme.tres modified: tools/configurator/components/bios_check/bios_check.gd modified: tools/configurator/main.gd modified: tools/configurator/main.tscn modified: tools/configurator/res/pixel_ui_theme/RetroDECKTheme.tres
2024-07-28 18:44:07 +00:00
var theme_option: OptionButton
2024-08-21 15:55:00 +00:00
#signal signal_theme_changed
Theme and Theme Inheritance On branch feat/godot-configurator Changes to be committed: new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Bold.ttf new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Bold.ttf.import new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Regular.ttf new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Regular.ttf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Black.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Black.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Bold.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Bold.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-ExtraLight.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-ExtraLight.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Light.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Light.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Regular.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Regular.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-SemiBold.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-SemiBold.otf.import new file: tools/configurator/assets/fonts/akrobat/akrobat-extrabold-webfont.ttf new file: tools/configurator/assets/fonts/akrobat/akrobat-extrabold-webfont.ttf.import new file: tools/configurator/assets/fonts/munro/munro-narrow.ttf new file: tools/configurator/assets/fonts/munro/munro-narrow.ttf.import new file: tools/configurator/assets/fonts/munro/munro-small.ttf new file: tools/configurator/assets/fonts/munro/munro-small.ttf.import new file: tools/configurator/assets/fonts/munro/munro.ttf new file: tools/configurator/assets/fonts/munro/munro.ttf.import new file: tools/configurator/assets/graphics/Rekku/Rekku-test.xcf new file: tools/configurator/assets/graphics/Rekku/base.png new file: tools/configurator/assets/graphics/Rekku/base.png.import new file: tools/configurator/assets/graphics/Rekku/blink1.png new file: tools/configurator/assets/graphics/Rekku/blink1.png.import new file: tools/configurator/assets/graphics/Rekku/blink2.png new file: tools/configurator/assets/graphics/Rekku/blink2.png.import new file: tools/configurator/assets/graphics/Rekku/eyes-open.png new file: tools/configurator/assets/graphics/Rekku/eyes-open.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-A.png new file: tools/configurator/assets/graphics/Rekku/mouth-A.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-O.png new file: tools/configurator/assets/graphics/Rekku/mouth-O.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-base.png new file: tools/configurator/assets/graphics/Rekku/mouth-base.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-blink-down.png new file: tools/configurator/assets/graphics/Rekku/rekku-blink-down.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-blink-up.png new file: tools/configurator/assets/graphics/Rekku/rekku-blink-up.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-idle.png new file: tools/configurator/assets/graphics/Rekku/rekku-idle.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-speak1.png new file: tools/configurator/assets/graphics/Rekku/rekku-speak1.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-speak2.png new file: tools/configurator/assets/graphics/Rekku/rekku-speak2.png.import new file: tools/configurator/assets/graphics/retrodeck.png new file: tools/configurator/assets/graphics/retrodeck.png.import new file: tools/configurator/assets/themes/accesible_theme.tres new file: tools/configurator/assets/themes/default_theme.tres new file: tools/configurator/assets/themes/modern_theme.tres new file: tools/configurator/assets/themes/retro_theme.tres modified: tools/configurator/components/bios_check/bios_check.gd modified: tools/configurator/main.gd modified: tools/configurator/main.tscn modified: tools/configurator/res/pixel_ui_theme/RetroDECKTheme.tres
2024-07-28 18:44:07 +00:00
var custom_theme: Theme = $".".theme
var log_option: OptionButton
var tab_container: TabContainer
var anim_logo: AnimatedSprite2D
var rd_logs: String
On branch feat/godot-configurator Changes to be committed: modified: net.retrodeck.retrodeck.yml new file: tools/configurator/assets/icons/128/app.xemu.xemu.png new file: tools/configurator/assets/icons/128/app.xemu.xemu.png.import new file: tools/configurator/assets/icons/128/duckstation-nogui.png new file: tools/configurator/assets/icons/128/duckstation-nogui.png.import new file: tools/configurator/assets/icons/128/duckstation.png new file: tools/configurator/assets/icons/128/duckstation.png.import new file: tools/configurator/assets/icons/128/net.kuribo64.melonDS.png new file: tools/configurator/assets/icons/128/net.kuribo64.melonDS.png.import new file: tools/configurator/assets/icons/128/net.pcsx2.PCSX2.png new file: tools/configurator/assets/icons/128/net.pcsx2.PCSX2.png.import new file: tools/configurator/assets/icons/128/net.retrodeck.retrodeck.png new file: tools/configurator/assets/icons/128/net.retrodeck.retrodeck.png.import new file: tools/configurator/assets/icons/128/net.rpcs3.RPCS3.png new file: tools/configurator/assets/icons/128/net.rpcs3.RPCS3.png.import new file: tools/configurator/assets/icons/128/org.DolphinEmu.dolphin-emu.png new file: tools/configurator/assets/icons/128/org.DolphinEmu.dolphin-emu.png.import new file: tools/configurator/assets/icons/128/org.citra_emu.citra.png new file: tools/configurator/assets/icons/128/org.citra_emu.citra.png.import new file: tools/configurator/assets/icons/128/org.mamedev.MAME.png new file: tools/configurator/assets/icons/128/org.mamedev.MAME.png.import new file: tools/configurator/assets/icons/128/org.ppsspp.PPSSPP.png new file: tools/configurator/assets/icons/128/org.ppsspp.PPSSPP.png.import new file: tools/configurator/assets/icons/128/org.ppsspp.PPSSPP_.png new file: tools/configurator/assets/icons/128/org.ppsspp.PPSSPP_.png.import new file: tools/configurator/assets/icons/128/org.ryujinx.Ryujinx.png new file: tools/configurator/assets/icons/128/org.ryujinx.Ryujinx.png.import new file: tools/configurator/assets/icons/128/org.zdoom.GZDoom.png new file: tools/configurator/assets/icons/128/org.zdoom.GZDoom.png.import new file: tools/configurator/assets/icons/128/retroarch.png new file: tools/configurator/assets/icons/128/retroarch.png.import new file: tools/configurator/assets/icons/16/app.xemu.xemu.png new file: tools/configurator/assets/icons/16/app.xemu.xemu.png.import new file: tools/configurator/assets/icons/16/duckstation-nogui.png new file: tools/configurator/assets/icons/16/duckstation-nogui.png.import new file: tools/configurator/assets/icons/16/duckstation.png new file: tools/configurator/assets/icons/16/duckstation.png.import new file: tools/configurator/assets/icons/16/net.pcsx2.PCSX2.png new file: tools/configurator/assets/icons/16/net.pcsx2.PCSX2.png.import new file: tools/configurator/assets/icons/16/net.retrodeck.retrodeck.png new file: tools/configurator/assets/icons/16/net.retrodeck.retrodeck.png.import new file: tools/configurator/assets/icons/16/net.rpcs3.RPCS3.png new file: tools/configurator/assets/icons/16/net.rpcs3.RPCS3.png.import new file: tools/configurator/assets/icons/16/org.DolphinEmu.dolphin-emu.png new file: tools/configurator/assets/icons/16/org.DolphinEmu.dolphin-emu.png.import new file: tools/configurator/assets/icons/16/org.gnome.Yelp.png new file: tools/configurator/assets/icons/16/org.gnome.Yelp.png.import new file: tools/configurator/assets/icons/16/org.mamedev.MAME.png new file: tools/configurator/assets/icons/16/org.mamedev.MAME.png.import new file: tools/configurator/assets/icons/16/org.ppsspp.PPSSPP.png new file: tools/configurator/assets/icons/16/org.ppsspp.PPSSPP.png.import new file: tools/configurator/assets/icons/16/org.ppsspp.PPSSPP_.png new file: tools/configurator/assets/icons/16/org.ppsspp.PPSSPP_.png.import new file: tools/configurator/assets/icons/16/org.ryujinx.Ryujinx.png new file: tools/configurator/assets/icons/16/org.ryujinx.Ryujinx.png.import new file: tools/configurator/assets/icons/16/org.xfce.session.png new file: tools/configurator/assets/icons/16/org.xfce.session.png.import new file: tools/configurator/assets/icons/16/org.zdoom.GZDoom.png new file: tools/configurator/assets/icons/16/org.zdoom.GZDoom.png.import new file: tools/configurator/assets/icons/16/retroarch.png new file: tools/configurator/assets/icons/16/retroarch.png.import new file: tools/configurator/assets/icons/16/security-medium.png new file: tools/configurator/assets/icons/16/security-medium.png.import new file: tools/configurator/assets/icons/32/retroarch.png new file: tools/configurator/assets/icons/32/retroarch.png.import new file: tools/configurator/assets/icons/dolphin-emu (1).svg new file: tools/configurator/assets/icons/dolphin-emu (1).svg.import new file: tools/configurator/assets/icons/dolphin-emu (2).svg new file: tools/configurator/assets/icons/dolphin-emu (2).svg.import new file: tools/configurator/assets/icons/dolphin-emu.svg new file: tools/configurator/assets/icons/dolphin-emu.svg.import new file: tools/configurator/assets/icons/retroarch (1).svg new file: tools/configurator/assets/icons/retroarch (1).svg.import new file: tools/configurator/assets/icons/retroarch (2).svg new file: tools/configurator/assets/icons/retroarch (2).svg.import new file: tools/configurator/assets/icons/retroarch.svg new file: tools/configurator/assets/icons/retroarch.svg.import new file: tools/configurator/assets/icons/retroarch2.svg new file: tools/configurator/assets/icons/retroarch2.svg.import new file: tools/configurator/assets/icons/retroarch_invert.svg new file: tools/configurator/assets/icons/retroarch_invert.svg.import modified: tools/configurator/main.gd modified: tools/configurator/main.tscn modified: tools/configurator/project.godot modified: tools/configurator/res/pixel_ui_theme/RetroDECKTheme.tres
2024-08-05 12:37:45 +00:00
var rd_version: String
var gc_version: String
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 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 app_data := AppData.new()
2024-08-24 10:39:56 +00:00
2023-09-23 16:24:55 +00:00
func _ready():
_get_nodes()
Theme and Theme Inheritance On branch feat/godot-configurator Changes to be committed: new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Bold.ttf new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Bold.ttf.import new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Regular.ttf new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Regular.ttf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Black.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Black.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Bold.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Bold.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-ExtraLight.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-ExtraLight.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Light.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Light.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Regular.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Regular.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-SemiBold.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-SemiBold.otf.import new file: tools/configurator/assets/fonts/akrobat/akrobat-extrabold-webfont.ttf new file: tools/configurator/assets/fonts/akrobat/akrobat-extrabold-webfont.ttf.import new file: tools/configurator/assets/fonts/munro/munro-narrow.ttf new file: tools/configurator/assets/fonts/munro/munro-narrow.ttf.import new file: tools/configurator/assets/fonts/munro/munro-small.ttf new file: tools/configurator/assets/fonts/munro/munro-small.ttf.import new file: tools/configurator/assets/fonts/munro/munro.ttf new file: tools/configurator/assets/fonts/munro/munro.ttf.import new file: tools/configurator/assets/graphics/Rekku/Rekku-test.xcf new file: tools/configurator/assets/graphics/Rekku/base.png new file: tools/configurator/assets/graphics/Rekku/base.png.import new file: tools/configurator/assets/graphics/Rekku/blink1.png new file: tools/configurator/assets/graphics/Rekku/blink1.png.import new file: tools/configurator/assets/graphics/Rekku/blink2.png new file: tools/configurator/assets/graphics/Rekku/blink2.png.import new file: tools/configurator/assets/graphics/Rekku/eyes-open.png new file: tools/configurator/assets/graphics/Rekku/eyes-open.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-A.png new file: tools/configurator/assets/graphics/Rekku/mouth-A.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-O.png new file: tools/configurator/assets/graphics/Rekku/mouth-O.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-base.png new file: tools/configurator/assets/graphics/Rekku/mouth-base.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-blink-down.png new file: tools/configurator/assets/graphics/Rekku/rekku-blink-down.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-blink-up.png new file: tools/configurator/assets/graphics/Rekku/rekku-blink-up.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-idle.png new file: tools/configurator/assets/graphics/Rekku/rekku-idle.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-speak1.png new file: tools/configurator/assets/graphics/Rekku/rekku-speak1.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-speak2.png new file: tools/configurator/assets/graphics/Rekku/rekku-speak2.png.import new file: tools/configurator/assets/graphics/retrodeck.png new file: tools/configurator/assets/graphics/retrodeck.png.import new file: tools/configurator/assets/themes/accesible_theme.tres new file: tools/configurator/assets/themes/default_theme.tres new file: tools/configurator/assets/themes/modern_theme.tres new file: tools/configurator/assets/themes/retro_theme.tres modified: tools/configurator/components/bios_check/bios_check.gd modified: tools/configurator/main.gd modified: tools/configurator/main.tscn modified: tools/configurator/res/pixel_ui_theme/RetroDECKTheme.tres
2024-07-28 18:44:07 +00:00
_connect_signals()
_play_main_animations()
2024-08-27 15:57:12 +00:00
#%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()
2024-08-27 15:57:12 +00:00
#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)
2024-08-24 20:52:27 +00:00
#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)
2024-08-24 20:52:27 +00:00
#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]
2024-08-24 20:52:27 +00:00
#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)
2024-08-27 15:57:12 +00:00
#else:
#print ("No emulators")
2024-08-18 21:42:40 +00:00
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"]
On branch feat/godot-configurator Changes to be committed: modified: net.retrodeck.retrodeck.yml new file: tools/configurator/assets/icons/128/app.xemu.xemu.png new file: tools/configurator/assets/icons/128/app.xemu.xemu.png.import new file: tools/configurator/assets/icons/128/duckstation-nogui.png new file: tools/configurator/assets/icons/128/duckstation-nogui.png.import new file: tools/configurator/assets/icons/128/duckstation.png new file: tools/configurator/assets/icons/128/duckstation.png.import new file: tools/configurator/assets/icons/128/net.kuribo64.melonDS.png new file: tools/configurator/assets/icons/128/net.kuribo64.melonDS.png.import new file: tools/configurator/assets/icons/128/net.pcsx2.PCSX2.png new file: tools/configurator/assets/icons/128/net.pcsx2.PCSX2.png.import new file: tools/configurator/assets/icons/128/net.retrodeck.retrodeck.png new file: tools/configurator/assets/icons/128/net.retrodeck.retrodeck.png.import new file: tools/configurator/assets/icons/128/net.rpcs3.RPCS3.png new file: tools/configurator/assets/icons/128/net.rpcs3.RPCS3.png.import new file: tools/configurator/assets/icons/128/org.DolphinEmu.dolphin-emu.png new file: tools/configurator/assets/icons/128/org.DolphinEmu.dolphin-emu.png.import new file: tools/configurator/assets/icons/128/org.citra_emu.citra.png new file: tools/configurator/assets/icons/128/org.citra_emu.citra.png.import new file: tools/configurator/assets/icons/128/org.mamedev.MAME.png new file: tools/configurator/assets/icons/128/org.mamedev.MAME.png.import new file: tools/configurator/assets/icons/128/org.ppsspp.PPSSPP.png new file: tools/configurator/assets/icons/128/org.ppsspp.PPSSPP.png.import new file: tools/configurator/assets/icons/128/org.ppsspp.PPSSPP_.png new file: tools/configurator/assets/icons/128/org.ppsspp.PPSSPP_.png.import new file: tools/configurator/assets/icons/128/org.ryujinx.Ryujinx.png new file: tools/configurator/assets/icons/128/org.ryujinx.Ryujinx.png.import new file: tools/configurator/assets/icons/128/org.zdoom.GZDoom.png new file: tools/configurator/assets/icons/128/org.zdoom.GZDoom.png.import new file: tools/configurator/assets/icons/128/retroarch.png new file: tools/configurator/assets/icons/128/retroarch.png.import new file: tools/configurator/assets/icons/16/app.xemu.xemu.png new file: tools/configurator/assets/icons/16/app.xemu.xemu.png.import new file: tools/configurator/assets/icons/16/duckstation-nogui.png new file: tools/configurator/assets/icons/16/duckstation-nogui.png.import new file: tools/configurator/assets/icons/16/duckstation.png new file: tools/configurator/assets/icons/16/duckstation.png.import new file: tools/configurator/assets/icons/16/net.pcsx2.PCSX2.png new file: tools/configurator/assets/icons/16/net.pcsx2.PCSX2.png.import new file: tools/configurator/assets/icons/16/net.retrodeck.retrodeck.png new file: tools/configurator/assets/icons/16/net.retrodeck.retrodeck.png.import new file: tools/configurator/assets/icons/16/net.rpcs3.RPCS3.png new file: tools/configurator/assets/icons/16/net.rpcs3.RPCS3.png.import new file: tools/configurator/assets/icons/16/org.DolphinEmu.dolphin-emu.png new file: tools/configurator/assets/icons/16/org.DolphinEmu.dolphin-emu.png.import new file: tools/configurator/assets/icons/16/org.gnome.Yelp.png new file: tools/configurator/assets/icons/16/org.gnome.Yelp.png.import new file: tools/configurator/assets/icons/16/org.mamedev.MAME.png new file: tools/configurator/assets/icons/16/org.mamedev.MAME.png.import new file: tools/configurator/assets/icons/16/org.ppsspp.PPSSPP.png new file: tools/configurator/assets/icons/16/org.ppsspp.PPSSPP.png.import new file: tools/configurator/assets/icons/16/org.ppsspp.PPSSPP_.png new file: tools/configurator/assets/icons/16/org.ppsspp.PPSSPP_.png.import new file: tools/configurator/assets/icons/16/org.ryujinx.Ryujinx.png new file: tools/configurator/assets/icons/16/org.ryujinx.Ryujinx.png.import new file: tools/configurator/assets/icons/16/org.xfce.session.png new file: tools/configurator/assets/icons/16/org.xfce.session.png.import new file: tools/configurator/assets/icons/16/org.zdoom.GZDoom.png new file: tools/configurator/assets/icons/16/org.zdoom.GZDoom.png.import new file: tools/configurator/assets/icons/16/retroarch.png new file: tools/configurator/assets/icons/16/retroarch.png.import new file: tools/configurator/assets/icons/16/security-medium.png new file: tools/configurator/assets/icons/16/security-medium.png.import new file: tools/configurator/assets/icons/32/retroarch.png new file: tools/configurator/assets/icons/32/retroarch.png.import new file: tools/configurator/assets/icons/dolphin-emu (1).svg new file: tools/configurator/assets/icons/dolphin-emu (1).svg.import new file: tools/configurator/assets/icons/dolphin-emu (2).svg new file: tools/configurator/assets/icons/dolphin-emu (2).svg.import new file: tools/configurator/assets/icons/dolphin-emu.svg new file: tools/configurator/assets/icons/dolphin-emu.svg.import new file: tools/configurator/assets/icons/retroarch (1).svg new file: tools/configurator/assets/icons/retroarch (1).svg.import new file: tools/configurator/assets/icons/retroarch (2).svg new file: tools/configurator/assets/icons/retroarch (2).svg.import new file: tools/configurator/assets/icons/retroarch.svg new file: tools/configurator/assets/icons/retroarch.svg.import new file: tools/configurator/assets/icons/retroarch2.svg new file: tools/configurator/assets/icons/retroarch2.svg.import new file: tools/configurator/assets/icons/retroarch_invert.svg new file: tools/configurator/assets/icons/retroarch_invert.svg.import modified: tools/configurator/main.gd modified: tools/configurator/main.tscn modified: tools/configurator/project.godot modified: tools/configurator/res/pixel_ui_theme/RetroDECKTheme.tres
2024-08-05 12:37:45 +00:00
rd_version = config["version"]
gc_version = ProjectSettings.get_setting("application/config/version")
Godot get cooked Changed to use fullscreen. Combined TK_EMULATORS and TK_SYSTEM. Also showed possibility to split systems, emulators etc On branch cooker Changes to be committed: new file: tools/configurator/assets/Tilemap/tilemap.png new file: tools/configurator/assets/Tilemap/tilemap.png.import new file: tools/configurator/assets/Tilemap/tilemap_packed.png new file: tools/configurator/assets/Tilemap/tilemap_packed.png.import new file: tools/configurator/assets/icons/Xelu_Free_Controller&Key_Prompts/Keyboard & Mouse/Blanks/Blank_Black_Enter.png new file: tools/configurator/assets/icons/Xelu_Free_Controller&Key_Prompts/Keyboard & Mouse/Blanks/Blank_Black_Enter.png.import new file: tools/configurator/assets/icons/Xelu_Free_Controller&Key_Prompts/Keyboard & Mouse/Blanks/Blank_Black_Mouse.png new file: tools/configurator/assets/icons/Xelu_Free_Controller&Key_Prompts/Keyboard & Mouse/Blanks/Blank_Black_Mouse.png.import new file: tools/configurator/assets/icons/Xelu_Free_Controller&Key_Prompts/Keyboard & Mouse/Blanks/Blank_Black_Normal.png new file: tools/configurator/assets/icons/Xelu_Free_Controller&Key_Prompts/Keyboard & Mouse/Blanks/Blank_Black_Normal.png.import new file: tools/configurator/assets/icons/Xelu_Free_Controller&Key_Prompts/Keyboard & Mouse/Blanks/Blank_Black_Super_Wide.png new file: tools/configurator/assets/icons/Xelu_Free_Controller&Key_Prompts/Keyboard & Mouse/Blanks/Blank_Black_Super_Wide.png.import new file: tools/configurator/assets/icons/Xelu_Free_Controller&Key_Prompts/Keyboard & Mouse/Blanks/Blank_Black_Wide.png new file: tools/configurator/assets/icons/Xelu_Free_Controller&Key_Prompts/Keyboard & Mouse/Blanks/Blank_Black_Wide.png.import
2024-08-12 19:09:04 +00:00
%rd_title.text+= "\n " + rd_version + "\nConfigurator\n " + gc_version
On branch feat/godot-configurator Changes to be committed: modified: net.retrodeck.retrodeck.yml new file: tools/configurator/assets/icons/128/app.xemu.xemu.png new file: tools/configurator/assets/icons/128/app.xemu.xemu.png.import new file: tools/configurator/assets/icons/128/duckstation-nogui.png new file: tools/configurator/assets/icons/128/duckstation-nogui.png.import new file: tools/configurator/assets/icons/128/duckstation.png new file: tools/configurator/assets/icons/128/duckstation.png.import new file: tools/configurator/assets/icons/128/net.kuribo64.melonDS.png new file: tools/configurator/assets/icons/128/net.kuribo64.melonDS.png.import new file: tools/configurator/assets/icons/128/net.pcsx2.PCSX2.png new file: tools/configurator/assets/icons/128/net.pcsx2.PCSX2.png.import new file: tools/configurator/assets/icons/128/net.retrodeck.retrodeck.png new file: tools/configurator/assets/icons/128/net.retrodeck.retrodeck.png.import new file: tools/configurator/assets/icons/128/net.rpcs3.RPCS3.png new file: tools/configurator/assets/icons/128/net.rpcs3.RPCS3.png.import new file: tools/configurator/assets/icons/128/org.DolphinEmu.dolphin-emu.png new file: tools/configurator/assets/icons/128/org.DolphinEmu.dolphin-emu.png.import new file: tools/configurator/assets/icons/128/org.citra_emu.citra.png new file: tools/configurator/assets/icons/128/org.citra_emu.citra.png.import new file: tools/configurator/assets/icons/128/org.mamedev.MAME.png new file: tools/configurator/assets/icons/128/org.mamedev.MAME.png.import new file: tools/configurator/assets/icons/128/org.ppsspp.PPSSPP.png new file: tools/configurator/assets/icons/128/org.ppsspp.PPSSPP.png.import new file: tools/configurator/assets/icons/128/org.ppsspp.PPSSPP_.png new file: tools/configurator/assets/icons/128/org.ppsspp.PPSSPP_.png.import new file: tools/configurator/assets/icons/128/org.ryujinx.Ryujinx.png new file: tools/configurator/assets/icons/128/org.ryujinx.Ryujinx.png.import new file: tools/configurator/assets/icons/128/org.zdoom.GZDoom.png new file: tools/configurator/assets/icons/128/org.zdoom.GZDoom.png.import new file: tools/configurator/assets/icons/128/retroarch.png new file: tools/configurator/assets/icons/128/retroarch.png.import new file: tools/configurator/assets/icons/16/app.xemu.xemu.png new file: tools/configurator/assets/icons/16/app.xemu.xemu.png.import new file: tools/configurator/assets/icons/16/duckstation-nogui.png new file: tools/configurator/assets/icons/16/duckstation-nogui.png.import new file: tools/configurator/assets/icons/16/duckstation.png new file: tools/configurator/assets/icons/16/duckstation.png.import new file: tools/configurator/assets/icons/16/net.pcsx2.PCSX2.png new file: tools/configurator/assets/icons/16/net.pcsx2.PCSX2.png.import new file: tools/configurator/assets/icons/16/net.retrodeck.retrodeck.png new file: tools/configurator/assets/icons/16/net.retrodeck.retrodeck.png.import new file: tools/configurator/assets/icons/16/net.rpcs3.RPCS3.png new file: tools/configurator/assets/icons/16/net.rpcs3.RPCS3.png.import new file: tools/configurator/assets/icons/16/org.DolphinEmu.dolphin-emu.png new file: tools/configurator/assets/icons/16/org.DolphinEmu.dolphin-emu.png.import new file: tools/configurator/assets/icons/16/org.gnome.Yelp.png new file: tools/configurator/assets/icons/16/org.gnome.Yelp.png.import new file: tools/configurator/assets/icons/16/org.mamedev.MAME.png new file: tools/configurator/assets/icons/16/org.mamedev.MAME.png.import new file: tools/configurator/assets/icons/16/org.ppsspp.PPSSPP.png new file: tools/configurator/assets/icons/16/org.ppsspp.PPSSPP.png.import new file: tools/configurator/assets/icons/16/org.ppsspp.PPSSPP_.png new file: tools/configurator/assets/icons/16/org.ppsspp.PPSSPP_.png.import new file: tools/configurator/assets/icons/16/org.ryujinx.Ryujinx.png new file: tools/configurator/assets/icons/16/org.ryujinx.Ryujinx.png.import new file: tools/configurator/assets/icons/16/org.xfce.session.png new file: tools/configurator/assets/icons/16/org.xfce.session.png.import new file: tools/configurator/assets/icons/16/org.zdoom.GZDoom.png new file: tools/configurator/assets/icons/16/org.zdoom.GZDoom.png.import new file: tools/configurator/assets/icons/16/retroarch.png new file: tools/configurator/assets/icons/16/retroarch.png.import new file: tools/configurator/assets/icons/16/security-medium.png new file: tools/configurator/assets/icons/16/security-medium.png.import new file: tools/configurator/assets/icons/32/retroarch.png new file: tools/configurator/assets/icons/32/retroarch.png.import new file: tools/configurator/assets/icons/dolphin-emu (1).svg new file: tools/configurator/assets/icons/dolphin-emu (1).svg.import new file: tools/configurator/assets/icons/dolphin-emu (2).svg new file: tools/configurator/assets/icons/dolphin-emu (2).svg.import new file: tools/configurator/assets/icons/dolphin-emu.svg new file: tools/configurator/assets/icons/dolphin-emu.svg.import new file: tools/configurator/assets/icons/retroarch (1).svg new file: tools/configurator/assets/icons/retroarch (1).svg.import new file: tools/configurator/assets/icons/retroarch (2).svg new file: tools/configurator/assets/icons/retroarch (2).svg.import new file: tools/configurator/assets/icons/retroarch.svg new file: tools/configurator/assets/icons/retroarch.svg.import new file: tools/configurator/assets/icons/retroarch2.svg new file: tools/configurator/assets/icons/retroarch2.svg.import new file: tools/configurator/assets/icons/retroarch_invert.svg new file: tools/configurator/assets/icons/retroarch_invert.svg.import modified: tools/configurator/main.gd modified: tools/configurator/main.tscn modified: tools/configurator/project.godot modified: tools/configurator/res/pixel_ui_theme/RetroDECKTheme.tres
2024-08-05 12:37:45 +00:00
#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)
# set current startup tab to match IDE
2024-08-19 19:07:25 +00:00
tab_container.current_tab = 0
#add_child(class_functions) # Needed for threaded results Not need autoload?
2023-12-31 07:58:20 +00:00
var children = findElements(self, "Control")
for n: Control in children: #iterate the children
2024-01-11 07:34:38 +00:00
if (n.focus_mode == FOCUS_ALL):
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()
2024-08-29 16:37:17 +00:00
2024-08-19 19:07:25 +00:00
func _input(event):
if Input.is_action_pressed("quit1") and Input.is_action_pressed("quit2"):
get_tree().quit()
if Input.is_action_pressed("next_tab"):
%r1_button.texture_normal = %r1_button.texture_pressed
elif Input.is_action_pressed("previous_tab"):
%l1_button.texture_normal = %l1_button.texture_pressed
elif Input.is_action_pressed("back_button"):
%b_button.texture_normal = %b_button.texture_pressed
elif Input.is_action_pressed("action_button"):
%a_button.texture_normal = %a_button.texture_pressed
else:
%r1_button.texture_normal = r1_button_texture
%l1_button.texture_normal = l1_button_texture
%a_button.texture_normal = a_button_texture
%b_button.texture_normal = b_button_texture
if event.is_action_pressed("quit"):
_exit()
2024-08-18 21:42:40 +00:00
2024-08-27 13:41:16 +00:00
func _exit():
get_tree().root.propagate_notification(NOTIFICATION_WM_CLOSE_REQUEST)
get_tree().quit()
func _get_nodes() -> void:
Theme and Theme Inheritance On branch feat/godot-configurator Changes to be committed: new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Bold.ttf new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Bold.ttf.import new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Regular.ttf new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Regular.ttf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Black.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Black.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Bold.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Bold.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-ExtraLight.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-ExtraLight.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Light.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Light.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Regular.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Regular.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-SemiBold.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-SemiBold.otf.import new file: tools/configurator/assets/fonts/akrobat/akrobat-extrabold-webfont.ttf new file: tools/configurator/assets/fonts/akrobat/akrobat-extrabold-webfont.ttf.import new file: tools/configurator/assets/fonts/munro/munro-narrow.ttf new file: tools/configurator/assets/fonts/munro/munro-narrow.ttf.import new file: tools/configurator/assets/fonts/munro/munro-small.ttf new file: tools/configurator/assets/fonts/munro/munro-small.ttf.import new file: tools/configurator/assets/fonts/munro/munro.ttf new file: tools/configurator/assets/fonts/munro/munro.ttf.import new file: tools/configurator/assets/graphics/Rekku/Rekku-test.xcf new file: tools/configurator/assets/graphics/Rekku/base.png new file: tools/configurator/assets/graphics/Rekku/base.png.import new file: tools/configurator/assets/graphics/Rekku/blink1.png new file: tools/configurator/assets/graphics/Rekku/blink1.png.import new file: tools/configurator/assets/graphics/Rekku/blink2.png new file: tools/configurator/assets/graphics/Rekku/blink2.png.import new file: tools/configurator/assets/graphics/Rekku/eyes-open.png new file: tools/configurator/assets/graphics/Rekku/eyes-open.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-A.png new file: tools/configurator/assets/graphics/Rekku/mouth-A.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-O.png new file: tools/configurator/assets/graphics/Rekku/mouth-O.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-base.png new file: tools/configurator/assets/graphics/Rekku/mouth-base.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-blink-down.png new file: tools/configurator/assets/graphics/Rekku/rekku-blink-down.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-blink-up.png new file: tools/configurator/assets/graphics/Rekku/rekku-blink-up.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-idle.png new file: tools/configurator/assets/graphics/Rekku/rekku-idle.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-speak1.png new file: tools/configurator/assets/graphics/Rekku/rekku-speak1.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-speak2.png new file: tools/configurator/assets/graphics/Rekku/rekku-speak2.png.import new file: tools/configurator/assets/graphics/retrodeck.png new file: tools/configurator/assets/graphics/retrodeck.png.import new file: tools/configurator/assets/themes/accesible_theme.tres new file: tools/configurator/assets/themes/default_theme.tres new file: tools/configurator/assets/themes/modern_theme.tres new file: tools/configurator/assets/themes/retro_theme.tres modified: tools/configurator/components/bios_check/bios_check.gd modified: tools/configurator/main.gd modified: tools/configurator/main.tscn modified: tools/configurator/res/pixel_ui_theme/RetroDECKTheme.tres
2024-07-28 18:44:07 +00:00
theme_option = get_node("%theme_optionbutton")
tab_container = get_node("%TabContainer")
anim_logo = get_node("%logo_animated")
log_option = get_node("%logs_button")
Theme and Theme Inheritance On branch feat/godot-configurator Changes to be committed: new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Bold.ttf new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Bold.ttf.import new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Regular.ttf new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Regular.ttf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Black.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Black.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Bold.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Bold.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-ExtraLight.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-ExtraLight.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Light.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Light.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Regular.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Regular.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-SemiBold.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-SemiBold.otf.import new file: tools/configurator/assets/fonts/akrobat/akrobat-extrabold-webfont.ttf new file: tools/configurator/assets/fonts/akrobat/akrobat-extrabold-webfont.ttf.import new file: tools/configurator/assets/fonts/munro/munro-narrow.ttf new file: tools/configurator/assets/fonts/munro/munro-narrow.ttf.import new file: tools/configurator/assets/fonts/munro/munro-small.ttf new file: tools/configurator/assets/fonts/munro/munro-small.ttf.import new file: tools/configurator/assets/fonts/munro/munro.ttf new file: tools/configurator/assets/fonts/munro/munro.ttf.import new file: tools/configurator/assets/graphics/Rekku/Rekku-test.xcf new file: tools/configurator/assets/graphics/Rekku/base.png new file: tools/configurator/assets/graphics/Rekku/base.png.import new file: tools/configurator/assets/graphics/Rekku/blink1.png new file: tools/configurator/assets/graphics/Rekku/blink1.png.import new file: tools/configurator/assets/graphics/Rekku/blink2.png new file: tools/configurator/assets/graphics/Rekku/blink2.png.import new file: tools/configurator/assets/graphics/Rekku/eyes-open.png new file: tools/configurator/assets/graphics/Rekku/eyes-open.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-A.png new file: tools/configurator/assets/graphics/Rekku/mouth-A.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-O.png new file: tools/configurator/assets/graphics/Rekku/mouth-O.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-base.png new file: tools/configurator/assets/graphics/Rekku/mouth-base.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-blink-down.png new file: tools/configurator/assets/graphics/Rekku/rekku-blink-down.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-blink-up.png new file: tools/configurator/assets/graphics/Rekku/rekku-blink-up.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-idle.png new file: tools/configurator/assets/graphics/Rekku/rekku-idle.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-speak1.png new file: tools/configurator/assets/graphics/Rekku/rekku-speak1.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-speak2.png new file: tools/configurator/assets/graphics/Rekku/rekku-speak2.png.import new file: tools/configurator/assets/graphics/retrodeck.png new file: tools/configurator/assets/graphics/retrodeck.png.import new file: tools/configurator/assets/themes/accesible_theme.tres new file: tools/configurator/assets/themes/default_theme.tres new file: tools/configurator/assets/themes/modern_theme.tres new file: tools/configurator/assets/themes/retro_theme.tres modified: tools/configurator/components/bios_check/bios_check.gd modified: tools/configurator/main.gd modified: tools/configurator/main.tscn modified: tools/configurator/res/pixel_ui_theme/RetroDECKTheme.tres
2024-07-28 18:44:07 +00:00
func _connect_signals() -> void:
#signal_theme_changed.connect(_conf_theme)
theme_option.item_selected.connect(_conf_theme)
2024-08-21 15:55:00 +00:00
#signal_theme_changed.emit(theme_option.item_selected)
log_option.item_selected.connect(_load_log)
%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))
%save_resume_button.pressed.connect(_hide_show_containers.bind(%decorations_button,%systems_gridcontainer))
2024-08-27 20:05:59 +00:00
func _load_log(index: int) -> void:
var log_content:String
match index:
1:
2024-08-27 19:14:24 +00:00
class_functions.log_parameters[2] = class_functions.log_text + "Loading RetroDeck log"
class_functions.execute_command(class_functions.wrapper_command,class_functions.log_parameters, false)
log_content = class_functions.import_text_file(rd_logs +"/retrodeck.log")
load_popup("RetroDeck Log", "res://components/logs_view/logs_popup_content.tscn", log_content)
2:
2024-08-27 19:14:24 +00:00
class_functions.log_parameters[2] = class_functions.log_text + "Loading ES-DE log"
class_functions.execute_command(class_functions.wrapper_command,class_functions.log_parameters, false)
log_content = class_functions.import_text_file(rd_logs +"/ES-DE/es_log.txt")
load_popup("ES-DE Log", "res://components/logs_view/logs_popup_content.tscn",log_content)
3:
2024-08-27 19:14:24 +00:00
class_functions.log_parameters[2] = class_functions.log_text + "Loading RetroArch log"
class_functions.execute_command(class_functions.wrapper_command,class_functions.log_parameters, false)
log_content = class_functions.import_text_file(rd_logs +"/retroarch/logs/log.txt")
load_popup("Retroarch Log", "res://components/logs_view/logs_popup_content.tscn",log_content)
func _play_main_animations() -> void:
anim_logo.play()
func _hide_show_containers(button: Button, grid_container: GridContainer) -> void:
match button.name:
"decorations_button", "systems_button":
grid_container.visible = true
if button.toggle_mode:
button.toggle_mode=false
grid_container.visible = false
else:
button.toggle_mode=true
# 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(hidden_gridcontainer.get_child_count()):
var child = hidden_gridcontainer.get_child(i)
if child is Button and child != button:
child.visible=false
elif button.toggle_mode == true and %borders_gridcontainer.visible == true:
print (button.name, "SAVE NOW? TODO") # TODO SHOW ALL AGAIN?
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
child.toggle_mode = false
button.toggle_mode = true
2024-08-19 19:07:25 +00:00
Theme and Theme Inheritance On branch feat/godot-configurator Changes to be committed: new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Bold.ttf new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Bold.ttf.import new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Regular.ttf new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Regular.ttf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Black.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Black.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Bold.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Bold.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-ExtraLight.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-ExtraLight.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Light.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Light.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Regular.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Regular.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-SemiBold.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-SemiBold.otf.import new file: tools/configurator/assets/fonts/akrobat/akrobat-extrabold-webfont.ttf new file: tools/configurator/assets/fonts/akrobat/akrobat-extrabold-webfont.ttf.import new file: tools/configurator/assets/fonts/munro/munro-narrow.ttf new file: tools/configurator/assets/fonts/munro/munro-narrow.ttf.import new file: tools/configurator/assets/fonts/munro/munro-small.ttf new file: tools/configurator/assets/fonts/munro/munro-small.ttf.import new file: tools/configurator/assets/fonts/munro/munro.ttf new file: tools/configurator/assets/fonts/munro/munro.ttf.import new file: tools/configurator/assets/graphics/Rekku/Rekku-test.xcf new file: tools/configurator/assets/graphics/Rekku/base.png new file: tools/configurator/assets/graphics/Rekku/base.png.import new file: tools/configurator/assets/graphics/Rekku/blink1.png new file: tools/configurator/assets/graphics/Rekku/blink1.png.import new file: tools/configurator/assets/graphics/Rekku/blink2.png new file: tools/configurator/assets/graphics/Rekku/blink2.png.import new file: tools/configurator/assets/graphics/Rekku/eyes-open.png new file: tools/configurator/assets/graphics/Rekku/eyes-open.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-A.png new file: tools/configurator/assets/graphics/Rekku/mouth-A.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-O.png new file: tools/configurator/assets/graphics/Rekku/mouth-O.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-base.png new file: tools/configurator/assets/graphics/Rekku/mouth-base.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-blink-down.png new file: tools/configurator/assets/graphics/Rekku/rekku-blink-down.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-blink-up.png new file: tools/configurator/assets/graphics/Rekku/rekku-blink-up.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-idle.png new file: tools/configurator/assets/graphics/Rekku/rekku-idle.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-speak1.png new file: tools/configurator/assets/graphics/Rekku/rekku-speak1.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-speak2.png new file: tools/configurator/assets/graphics/Rekku/rekku-speak2.png.import new file: tools/configurator/assets/graphics/retrodeck.png new file: tools/configurator/assets/graphics/retrodeck.png.import new file: tools/configurator/assets/themes/accesible_theme.tres new file: tools/configurator/assets/themes/default_theme.tres new file: tools/configurator/assets/themes/modern_theme.tres new file: tools/configurator/assets/themes/retro_theme.tres modified: tools/configurator/components/bios_check/bios_check.gd modified: tools/configurator/main.gd modified: tools/configurator/main.tscn modified: tools/configurator/res/pixel_ui_theme/RetroDECKTheme.tres
2024-07-28 18:44:07 +00:00
func _conf_theme(index: int) -> void:
match index:
1:
2024-08-27 19:14:24 +00:00
class_functions.log_parameters[2] = class_functions.log_text + "Set theme to index " + str(index)
class_functions.execute_command(class_functions.wrapper_command,class_functions.log_parameters, false)
2024-08-19 19:07:25 +00:00
custom_theme = preload("res://res/pixel_ui_theme/RetroDECKTheme.tres")
Theme and Theme Inheritance On branch feat/godot-configurator Changes to be committed: new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Bold.ttf new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Bold.ttf.import new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Regular.ttf new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Regular.ttf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Black.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Black.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Bold.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Bold.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-ExtraLight.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-ExtraLight.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Light.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Light.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Regular.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Regular.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-SemiBold.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-SemiBold.otf.import new file: tools/configurator/assets/fonts/akrobat/akrobat-extrabold-webfont.ttf new file: tools/configurator/assets/fonts/akrobat/akrobat-extrabold-webfont.ttf.import new file: tools/configurator/assets/fonts/munro/munro-narrow.ttf new file: tools/configurator/assets/fonts/munro/munro-narrow.ttf.import new file: tools/configurator/assets/fonts/munro/munro-small.ttf new file: tools/configurator/assets/fonts/munro/munro-small.ttf.import new file: tools/configurator/assets/fonts/munro/munro.ttf new file: tools/configurator/assets/fonts/munro/munro.ttf.import new file: tools/configurator/assets/graphics/Rekku/Rekku-test.xcf new file: tools/configurator/assets/graphics/Rekku/base.png new file: tools/configurator/assets/graphics/Rekku/base.png.import new file: tools/configurator/assets/graphics/Rekku/blink1.png new file: tools/configurator/assets/graphics/Rekku/blink1.png.import new file: tools/configurator/assets/graphics/Rekku/blink2.png new file: tools/configurator/assets/graphics/Rekku/blink2.png.import new file: tools/configurator/assets/graphics/Rekku/eyes-open.png new file: tools/configurator/assets/graphics/Rekku/eyes-open.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-A.png new file: tools/configurator/assets/graphics/Rekku/mouth-A.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-O.png new file: tools/configurator/assets/graphics/Rekku/mouth-O.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-base.png new file: tools/configurator/assets/graphics/Rekku/mouth-base.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-blink-down.png new file: tools/configurator/assets/graphics/Rekku/rekku-blink-down.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-blink-up.png new file: tools/configurator/assets/graphics/Rekku/rekku-blink-up.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-idle.png new file: tools/configurator/assets/graphics/Rekku/rekku-idle.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-speak1.png new file: tools/configurator/assets/graphics/Rekku/rekku-speak1.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-speak2.png new file: tools/configurator/assets/graphics/Rekku/rekku-speak2.png.import new file: tools/configurator/assets/graphics/retrodeck.png new file: tools/configurator/assets/graphics/retrodeck.png.import new file: tools/configurator/assets/themes/accesible_theme.tres new file: tools/configurator/assets/themes/default_theme.tres new file: tools/configurator/assets/themes/modern_theme.tres new file: tools/configurator/assets/themes/retro_theme.tres modified: tools/configurator/components/bios_check/bios_check.gd modified: tools/configurator/main.gd modified: tools/configurator/main.tscn modified: tools/configurator/res/pixel_ui_theme/RetroDECKTheme.tres
2024-07-28 18:44:07 +00:00
2:
2024-08-27 19:14:24 +00:00
class_functions.log_parameters[2] = class_functions.log_text + "Set theme to index " + str(index)
class_functions.execute_command(class_functions.wrapper_command,class_functions.log_parameters, false)
Theme and Theme Inheritance On branch feat/godot-configurator Changes to be committed: new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Bold.ttf new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Bold.ttf.import new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Regular.ttf new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Regular.ttf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Black.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Black.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Bold.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Bold.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-ExtraLight.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-ExtraLight.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Light.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Light.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Regular.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Regular.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-SemiBold.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-SemiBold.otf.import new file: tools/configurator/assets/fonts/akrobat/akrobat-extrabold-webfont.ttf new file: tools/configurator/assets/fonts/akrobat/akrobat-extrabold-webfont.ttf.import new file: tools/configurator/assets/fonts/munro/munro-narrow.ttf new file: tools/configurator/assets/fonts/munro/munro-narrow.ttf.import new file: tools/configurator/assets/fonts/munro/munro-small.ttf new file: tools/configurator/assets/fonts/munro/munro-small.ttf.import new file: tools/configurator/assets/fonts/munro/munro.ttf new file: tools/configurator/assets/fonts/munro/munro.ttf.import new file: tools/configurator/assets/graphics/Rekku/Rekku-test.xcf new file: tools/configurator/assets/graphics/Rekku/base.png new file: tools/configurator/assets/graphics/Rekku/base.png.import new file: tools/configurator/assets/graphics/Rekku/blink1.png new file: tools/configurator/assets/graphics/Rekku/blink1.png.import new file: tools/configurator/assets/graphics/Rekku/blink2.png new file: tools/configurator/assets/graphics/Rekku/blink2.png.import new file: tools/configurator/assets/graphics/Rekku/eyes-open.png new file: tools/configurator/assets/graphics/Rekku/eyes-open.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-A.png new file: tools/configurator/assets/graphics/Rekku/mouth-A.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-O.png new file: tools/configurator/assets/graphics/Rekku/mouth-O.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-base.png new file: tools/configurator/assets/graphics/Rekku/mouth-base.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-blink-down.png new file: tools/configurator/assets/graphics/Rekku/rekku-blink-down.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-blink-up.png new file: tools/configurator/assets/graphics/Rekku/rekku-blink-up.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-idle.png new file: tools/configurator/assets/graphics/Rekku/rekku-idle.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-speak1.png new file: tools/configurator/assets/graphics/Rekku/rekku-speak1.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-speak2.png new file: tools/configurator/assets/graphics/Rekku/rekku-speak2.png.import new file: tools/configurator/assets/graphics/retrodeck.png new file: tools/configurator/assets/graphics/retrodeck.png.import new file: tools/configurator/assets/themes/accesible_theme.tres new file: tools/configurator/assets/themes/default_theme.tres new file: tools/configurator/assets/themes/modern_theme.tres new file: tools/configurator/assets/themes/retro_theme.tres modified: tools/configurator/components/bios_check/bios_check.gd modified: tools/configurator/main.gd modified: tools/configurator/main.tscn modified: tools/configurator/res/pixel_ui_theme/RetroDECKTheme.tres
2024-07-28 18:44:07 +00:00
custom_theme = preload("res://assets/themes/retro_theme.tres")
3:
2024-08-27 19:14:24 +00:00
class_functions.log_parameters[2] = class_functions.log_text + "Set theme to index " + str(index)
class_functions.execute_command(class_functions.wrapper_command,class_functions.log_parameters, false)
Theme and Theme Inheritance On branch feat/godot-configurator Changes to be committed: new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Bold.ttf new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Bold.ttf.import new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Regular.ttf new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Regular.ttf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Black.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Black.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Bold.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Bold.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-ExtraLight.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-ExtraLight.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Light.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Light.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Regular.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Regular.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-SemiBold.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-SemiBold.otf.import new file: tools/configurator/assets/fonts/akrobat/akrobat-extrabold-webfont.ttf new file: tools/configurator/assets/fonts/akrobat/akrobat-extrabold-webfont.ttf.import new file: tools/configurator/assets/fonts/munro/munro-narrow.ttf new file: tools/configurator/assets/fonts/munro/munro-narrow.ttf.import new file: tools/configurator/assets/fonts/munro/munro-small.ttf new file: tools/configurator/assets/fonts/munro/munro-small.ttf.import new file: tools/configurator/assets/fonts/munro/munro.ttf new file: tools/configurator/assets/fonts/munro/munro.ttf.import new file: tools/configurator/assets/graphics/Rekku/Rekku-test.xcf new file: tools/configurator/assets/graphics/Rekku/base.png new file: tools/configurator/assets/graphics/Rekku/base.png.import new file: tools/configurator/assets/graphics/Rekku/blink1.png new file: tools/configurator/assets/graphics/Rekku/blink1.png.import new file: tools/configurator/assets/graphics/Rekku/blink2.png new file: tools/configurator/assets/graphics/Rekku/blink2.png.import new file: tools/configurator/assets/graphics/Rekku/eyes-open.png new file: tools/configurator/assets/graphics/Rekku/eyes-open.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-A.png new file: tools/configurator/assets/graphics/Rekku/mouth-A.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-O.png new file: tools/configurator/assets/graphics/Rekku/mouth-O.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-base.png new file: tools/configurator/assets/graphics/Rekku/mouth-base.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-blink-down.png new file: tools/configurator/assets/graphics/Rekku/rekku-blink-down.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-blink-up.png new file: tools/configurator/assets/graphics/Rekku/rekku-blink-up.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-idle.png new file: tools/configurator/assets/graphics/Rekku/rekku-idle.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-speak1.png new file: tools/configurator/assets/graphics/Rekku/rekku-speak1.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-speak2.png new file: tools/configurator/assets/graphics/Rekku/rekku-speak2.png.import new file: tools/configurator/assets/graphics/retrodeck.png new file: tools/configurator/assets/graphics/retrodeck.png.import new file: tools/configurator/assets/themes/accesible_theme.tres new file: tools/configurator/assets/themes/default_theme.tres new file: tools/configurator/assets/themes/modern_theme.tres new file: tools/configurator/assets/themes/retro_theme.tres modified: tools/configurator/components/bios_check/bios_check.gd modified: tools/configurator/main.gd modified: tools/configurator/main.tscn modified: tools/configurator/res/pixel_ui_theme/RetroDECKTheme.tres
2024-07-28 18:44:07 +00:00
custom_theme = preload("res://assets/themes/modern_theme.tres")
4:
2024-08-27 19:14:24 +00:00
class_functions.log_parameters[2] = class_functions.log_text + "Set theme to index " + str(index)
class_functions.execute_command(class_functions.wrapper_command,class_functions.log_parameters, false)
Theme and Theme Inheritance On branch feat/godot-configurator Changes to be committed: new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Bold.ttf new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Bold.ttf.import new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Regular.ttf new file: tools/configurator/assets/fonts/OpenDyslexic3/OpenDyslexic3-Regular.ttf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Black.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Black.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Bold.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Bold.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-ExtraLight.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-ExtraLight.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Light.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Light.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-Regular.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-Regular.otf.import new file: tools/configurator/assets/fonts/akrobat/Akrobat-SemiBold.otf new file: tools/configurator/assets/fonts/akrobat/Akrobat-SemiBold.otf.import new file: tools/configurator/assets/fonts/akrobat/akrobat-extrabold-webfont.ttf new file: tools/configurator/assets/fonts/akrobat/akrobat-extrabold-webfont.ttf.import new file: tools/configurator/assets/fonts/munro/munro-narrow.ttf new file: tools/configurator/assets/fonts/munro/munro-narrow.ttf.import new file: tools/configurator/assets/fonts/munro/munro-small.ttf new file: tools/configurator/assets/fonts/munro/munro-small.ttf.import new file: tools/configurator/assets/fonts/munro/munro.ttf new file: tools/configurator/assets/fonts/munro/munro.ttf.import new file: tools/configurator/assets/graphics/Rekku/Rekku-test.xcf new file: tools/configurator/assets/graphics/Rekku/base.png new file: tools/configurator/assets/graphics/Rekku/base.png.import new file: tools/configurator/assets/graphics/Rekku/blink1.png new file: tools/configurator/assets/graphics/Rekku/blink1.png.import new file: tools/configurator/assets/graphics/Rekku/blink2.png new file: tools/configurator/assets/graphics/Rekku/blink2.png.import new file: tools/configurator/assets/graphics/Rekku/eyes-open.png new file: tools/configurator/assets/graphics/Rekku/eyes-open.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-A.png new file: tools/configurator/assets/graphics/Rekku/mouth-A.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-O.png new file: tools/configurator/assets/graphics/Rekku/mouth-O.png.import new file: tools/configurator/assets/graphics/Rekku/mouth-base.png new file: tools/configurator/assets/graphics/Rekku/mouth-base.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-blink-down.png new file: tools/configurator/assets/graphics/Rekku/rekku-blink-down.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-blink-up.png new file: tools/configurator/assets/graphics/Rekku/rekku-blink-up.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-idle.png new file: tools/configurator/assets/graphics/Rekku/rekku-idle.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-speak1.png new file: tools/configurator/assets/graphics/Rekku/rekku-speak1.png.import new file: tools/configurator/assets/graphics/Rekku/rekku-speak2.png new file: tools/configurator/assets/graphics/Rekku/rekku-speak2.png.import new file: tools/configurator/assets/graphics/retrodeck.png new file: tools/configurator/assets/graphics/retrodeck.png.import new file: tools/configurator/assets/themes/accesible_theme.tres new file: tools/configurator/assets/themes/default_theme.tres new file: tools/configurator/assets/themes/modern_theme.tres new file: tools/configurator/assets/themes/retro_theme.tres modified: tools/configurator/components/bios_check/bios_check.gd modified: tools/configurator/main.gd modified: tools/configurator/main.tscn modified: tools/configurator/res/pixel_ui_theme/RetroDECKTheme.tres
2024-07-28 18:44:07 +00:00
custom_theme = preload("res://assets/themes/accesible_theme.tres")
$".".theme = custom_theme
_play_main_animations()
2023-12-31 07:58:20 +00:00
func findElements(node: Node, className: String, result: Array = []) -> Array:
if node.is_class(className):
result.push_back(node)
for child in node.get_children():
result = findElements(child, className, result)
return result
func _on_control_mouse_entered(control: Node):
control.grab_focus()
2024-01-11 18:19:16 +00:00
func load_popup(title:String, content_path:String, display_text: String):
2024-01-11 18:19:16 +00:00
var popup = load("res://components/popup.tscn").instantiate() as Control
popup.set_title(title)
popup.set_content(content_path)
popup.set_display_text(display_text)
2024-01-11 18:19:16 +00:00
$Background.add_child(popup)
2024-01-12 07:37:05 +00:00
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
2024-08-27 13:41:16 +00:00
class_functions.log_parameters[2] = class_functions.log_text + "Bios_Check"
log_results = class_functions.execute_command(class_functions.wrapper_command, class_functions.log_parameters, false)
load_popup("BIOS File Check", "res://components/bios_check/bios_popup_content.tscn","")
bios_type = 0
func _on_bios_button_expert_pressed():
_play_main_animations()
bios_type = 2
2024-08-27 13:41:16 +00:00
class_functions.log_parameters[2] = class_functions.log_text + "Advanced_Bios_Check"
log_results = class_functions.execute_command(class_functions.wrapper_command, class_functions.log_parameters, false)
class_functions.log_parameters[2] = class_functions.log_text + "Exit code: " + str(log_results["exit_code"])
load_popup("BIOS File Check", "res://components/bios_check/bios_popup_content.tscn","")
bios_type = 0
2024-01-12 07:37:05 +00:00
func _on_exit_button_pressed():
_play_main_animations()
2024-08-27 13:41:16 +00:00
class_functions.log_parameters[2] = class_functions.log_text + "Exited"
log_results = class_functions.execute_command(class_functions.wrapper_command, class_functions.log_parameters, false)
class_functions._exit()
2024-01-24 17:00:26 +00:00
func _on_locale_selected(index):
match index:
0:
TranslationServer.set_locale("en")
_:
TranslationServer.set_locale("en")
combine_tkeys()
"""
2024-01-24 17:00:26 +00:00
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")
"""
2024-01-24 17:00:26 +00:00
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
#$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")