Open the About popup the first time a new version starts
The last version the About popup was shown for is saved as last_seen_version in settings.cfg. When the game starts with another version, About opens to show what is new.
This commit is contained in:
1 parent
41974ea5e3
commit
b120440404
7 files changed
+77
-1
No files matched your search
@@ -43,6 +43,16 @@ func _ready() -> void:
|
||||
statistics_view.soundtrack_selected.connect(soundtrack_stats_popup.show_soundtrack)
|
||||
|
||||
search_popup.get_list_of_soundtracks()
|
||||
show_about_if_new_version()
|
||||
|
||||
|
||||
## Opens the About popup, with what is new, the first time this version starts.
|
||||
func show_about_if_new_version() -> void:
|
||||
if Settings.last_seen_version == Settings.version:
|
||||
return
|
||||
Settings.last_seen_version = Settings.version
|
||||
Settings.save_settings()
|
||||
show_about()
|
||||
|
||||
|
||||
func _input(event: InputEvent) -> void:
|
||||
|
||||
Reference in new issue
Block a user