Skip to content

Commit

Permalink
Add ESL.value_updated signal
Browse files Browse the repository at this point in the history
  • Loading branch information
xorblo-doitus committed Oct 27, 2024
1 parent db30272 commit ed46252
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addons/easy_settings/listeners/base/esl.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ class_name ESL
## Implements virtual methods


signal value_updated(new_value, old_value)


## The way to sync this ESL when the setting is modified by an external source
enum Sync {
ALWAYS, ## The value must always be the same as the setting
Expand Down Expand Up @@ -94,6 +97,7 @@ func _update_value(new_value, old_value: Variant) -> void:
if _ignore_update or sync == Sync.NEVER:
return
update_value(new_value, old_value)
value_updated.emit(new_value, old_value)


func _create_save_debounce_timer() -> void:
Expand Down

0 comments on commit ed46252

Please sign in to comment.