mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-02-17 03:45:38 +00:00
![MonkeyX](/assets/img/avatar_default.png)
* On branch cooker Changes to be committed: modified: ../config/retrodeck/reference_lists/features.json modified: configurator.sh modified: configurator/TabContainer.gd modified: configurator/assets/themes/accesible_theme.tres modified: configurator/assets/themes/modern_theme.tres modified: configurator/assets/themes/retro_theme.tres modified: configurator/main.tscn modified: configurator/res/pixel_ui_theme/RetroDECKTheme.tres * Signal test * s * Oops Data Recovery On branch cooker Changes to be committed: modified: tools/configurator/main.gd modified: tools/configurator/main.tscn modified: tools/configurator/res/pixel_ui_theme/RetroDECKTheme.tres * Sliding Rekku On branch cooker Changes to be committed: modified: tools/configurator/Rekku.gd modified: tools/configurator/main.gd modified: tools/configurator/main.tscn * Using less tabs? On branch cooker Changes to be committed: modified: tools/configurator/main.gd modified: tools/configurator/main.tscn modified: tools/configurator/res/pixel_ui_theme/RetroDECKTheme.tres * Generic Save experiment On branch cooker Changes to be committed: modified: tools/configurator/main.gd modified: tools/configurator/main.tscn modified: tools/configurator/res/pixel_ui_theme/RetroDECKTheme.tres * Let it flow On branch feat/godot Changes to be committed: new file: .github/workflows/build-godot.yml modified: tools/configurator/main.tscn modified: tools/configurator/res/pixel_ui_theme/RetroDECKTheme.tres * On branch feat/godot Changes to be committed: modified: .github/workflows/build-godot.yml * FLow 2.0 * Flow 2.1 * Flow 2.2 * Flow 2.3 * Flow 2.4 * Flow 2.5 * Flow 2.6 * Flow 2.7 * Flow 2.8 * Flow 2.9 * Flow 2.9 * Flow 2.91 * Flow 2.92 * Emualtor==System * FFS revert! * Progress on Cores at last! * Progress on Cores at lastgit add .! * Functions * Bios change * Removed need for BIOS tmp file for Godot * Rotten the core! * Push TEst * fixed duplicate * fixed duplicate * Tidied Bios reading * Rekku assistant * Icons and System Tab work * Generic buttons please * Generic buttons pleases * Generic buttons please2 * Rekku gets the saw * Dialogues * Fixed link to json file * Feat/godot (#927) * Tidied parameter code * Tricky bios dialogue! * Mini change * Tidying icons * And then there were 5! * Time to Cook * INITOOL: added * SET_SETTING_VALUE: edited to use initool * Revert "SET_SETTING_VALUE: edited to use initool" This reverts commitb56916c2b0
. * Revert "INITOOL: added" This reverts commit127bcdb6cd
. * POST_UPDATE: update_rd_conf to include steam_sync * INJECT_FRAMEWORK: added force args [skip ci] * Progress buttons * Reset! --------- Co-authored-by: Rekku <rekku@retrodeck.net> Co-authored-by: XargonWan <XargonWan@gmail.com> --------- Co-authored-by: Rekku <rekku@retrodeck.net> Co-authored-by: XargonWan <XargonWan@gmail.com>
117 lines
6 KiB
GDScript
117 lines
6 KiB
GDScript
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":
|
|
class_functions.log_parameters[2] = class_functions.log_text + "Loading website for " + id
|
|
class_functions.execute_command(class_functions.wrapper_command,class_functions.log_parameters, false)
|
|
OS.shell_open(rd_web_button.editor_description)
|
|
"rd_changelog":
|
|
class_functions.log_parameters[2] = class_functions.log_text + "Loading website for " + id
|
|
class_functions.execute_command(class_functions.wrapper_command,class_functions.log_parameters, false)
|
|
OS.shell_open(rd_changelog_button.editor_description)
|
|
"rd_wiki":
|
|
class_functions.log_parameters[2] = class_functions.log_text + "Loading website for " + id
|
|
class_functions.execute_command(class_functions.wrapper_command,class_functions.log_parameters, false)
|
|
OS.shell_open(rd_wiki_button.editor_description)
|
|
"rd_credits":
|
|
class_functions.log_parameters[2] = class_functions.log_text + "Loading website for " + id
|
|
class_functions.execute_command(class_functions.wrapper_command,class_functions.log_parameters, false)
|
|
OS.shell_open(rd_credits_button.editor_description)
|
|
"rd_donate":
|
|
class_functions.log_parameters[2] = class_functions.log_text + "Loading website for " + id
|
|
class_functions.execute_command(class_functions.wrapper_command,class_functions.log_parameters, false)
|
|
OS.shell_open(rd_donate_button.editor_description)
|
|
"rd_contactus":
|
|
class_functions.log_parameters[2] = class_functions.log_text + "Loading website for " + id
|
|
class_functions.execute_command(class_functions.wrapper_command,class_functions.log_parameters, false)
|
|
OS.shell_open(rd_contactus_button.editor_description)
|
|
"rd_licenses":
|
|
class_functions.log_parameters[2] = class_functions.log_text + "Loading website for " + id
|
|
class_functions.execute_command(class_functions.wrapper_command,class_functions.log_parameters, false)
|
|
OS.shell_open(rd_licenses_button.editor_description)
|
|
_:
|
|
class_functions.log_parameters[2] = class_functions.log_text + "Loading website - no matching ID found"
|
|
class_functions.execute_command(class_functions.wrapper_command,class_functions.log_parameters, false)
|
|
print ("Website ID/Link not found")
|