mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-31 15:39:49 +00:00
c6b9a1fb82
* gdformat . * Lint code - Part 1 * Format code - Part 2 * Lint code - Part 2 Trying to fix the max allowed line length errors * Add normal_map_invert_y to the image .import files Because of Godot 3.4 * Do not call private methods outside of the script's scope Lint code - Part 3 * Format code - Part 3 * Fixed more line length exceeded errors - Lint code Part 3 * Export array of licenses - Lint code part 4 * Clean hint_tooltip code from Global Removes a lot of lines of code * Create static-checks.yml * Fix FreeType's license
19 lines
501 B
GDScript
19 lines
501 B
GDScript
extends TextureButton
|
|
|
|
var setting_name: String
|
|
var value_type: String
|
|
var default_value
|
|
var node: Node
|
|
|
|
|
|
func _ready() -> void:
|
|
modulate = Global.modulate_icon_color
|
|
|
|
|
|
func _on_RestoreDefaultButton_pressed() -> void:
|
|
Global.set(setting_name, default_value)
|
|
Global.config_cache.set_value("preferences", setting_name, default_value)
|
|
Global.preferences_dialog.preference_update(setting_name)
|
|
Global.preferences_dialog.disable_restore_default_button(self, true)
|
|
node.set(value_type, default_value)
|