On branch feat/godot-configurator

Changes to be committed:
	deleted:    tools/configurator/data.json
	modified:   tools/configurator/main.gd
	modified:   tools/configurator/res/pixel_ui_theme/RetroDECKTheme.tres
	modified:   tools/configurator/scripts/data_handler.gd
This commit is contained in:
monkeyx-net 2024-08-02 18:48:29 +01:00
parent a7bbe16884
commit df56d1900c
4 changed files with 63 additions and 71 deletions

View file

@ -1,10 +0,0 @@
{
"item1": {
"cost": 50,
"description": "an item description"
},
"item2": {
"cost": 1000,
"description": "another item description"
}
}

View file

@ -23,23 +23,9 @@ func _ready():
_play_main_animations()
data_handler.add_emaultor()
data_handler.modify_emulator_test()
# Example test cases for modifying data
data_handler.modify_link("example_site", "Updated Site", "https://updated-example.com", "Updated description.")
var new_options = []
var new_option = EmulatorOption.new()
new_option.resettable = false
new_options.append(new_option)
var new_properties = []
var new_property = EmulatorProperty.new()
new_property.standalone = false
new_property.abxy_button_status = true
new_properties.append(new_property)
data_handler.modify_emulator("example_emulator", "Updated Emulator", "Updated description", new_options, new_properties)
app_data = data_handler.load_data()
if app_data:
var website_link = app_data.about_links["rd_web"]

File diff suppressed because one or more lines are too long

View file

@ -205,3 +205,19 @@ func add_emaultor() -> void:
app_data.emulators["example_emulator"] = emulator
data_handler.save_data(app_data)
func modify_emulator_test() -> void:
data_handler.modify_link("example_site", "Updated Site", "https://updated-example.com", "Updated description.")
var new_options = []
var new_option = EmulatorOption.new()
new_option.resettable = false
new_options.append(new_option)
var new_properties = []
var new_property = EmulatorProperty.new()
new_property.standalone = false
new_property.abxy_button_status = true
new_properties.append(new_property)
data_handler.modify_emulator("example_emulator", "Updated Emulator", "Updated description", new_options, new_properties)