git-learning-game / oh-my-git

An interactive Git learning game!
https://ohmygit.org
Other
1.98k stars 143 forks source link

Fix debugger warnings about unused identifiers #177

Open Jayman2000 opened 1 year ago

Jayman2000 commented 1 year ago

See individual commits for details.

abitrolly commented 8 months ago

@Jayman2000 how did you run newer godot over all files to update them? If I just open and close project in editor, only ./project.godot is updated. If I toggle label visibility and move viewport, then scenes/title.tscn and styles/theme.tres updated too. But all other files from 427ebb3efc9d879c4185aa040111265344a6fb27 like cards/add.svg.import etc. are left intact.

Jayman2000 commented 8 months ago

When I created that commit, I think that I had just opened and saved each of the Resources manually. I just made a script that you can use to update all of the files automatically. Here’s how you can use that script:

  1. Download update_files_for_new_version_of_godot.gd.
  2. Put it in the project folder.
  3. Open that script in Godot.
  4. In the script editor, right click on the script’s name, and click “Run”.
  5. Select Scene > Save All Scenes

Note that if you have “Trim Trailing Whitespace On Save” enabled in the Godot’s Editor Settings, then that script will also remove any trailing whitespace.