about_menu.gd 623 B

1234567891011
  1. extends PopupMenu
  2. # Called when the node enters the scene tree for the first time.
  3. func _ready() -> void:
  4. #Check export config for version number and set about menu to current version
  5. #Assumes version of mac + linux builds is the same as windows
  6. #Requires manual update for alpha and beta builds but once the -beta is removed will be fully automatic so long as version is updated on export
  7. var export_config = ConfigFile.new()
  8. export_config.load("res://export_presets.cfg")
  9. set_item_text(0, "SoundThread v" + export_config.get_value("preset.0.options", "application/product_version", "version unknown") + "-beta")