Comments (2)
Well, I suppose the easiest will be to just copy paste the PauseMenu.gd, .tscn PauseMenuController.gd and InGameMenuController.gd and replace game with menus in references, rather than the other way round. Is this what you'd recommend?
That's probably the route I'd take, too.
Since it's pretty edge case, I don't expect you to code a super tool to automate that, but if you have some timps on how to make the process easier (after I started working customizing the main menu), you can tell me.
In scene files, if a UID is present on an ext_resource, it will be used to find the resource, and the path will be ignored. When copying scenes within the same project, but outside of the editor, something to keep in mind is that the UID's may conflict. The copying tool works around this by assigning each copied scene a new UID, and removes all external references to UIDs by replacing the regex uid="uid:\/\/[0-9a-z]+"
(with an intentional space at end). This then lets the editor re-assign the UID that matches to the ext_resource path the next time the scene is saved.
All of that is easier to deal with when using an additional IDE with VCS to capture the changes that Godot makes to files under-the-hood. I personally use VS Code. (More of a tip for others; I got an impression you're already using an IDE).
And, more of a time-saving tip, but you can access the copy tool directly from the menu:
from godot-game-template.
Thanks, I'll just add the Pause Menu manually this time but this shall help me when replacing assets, and in fact probably with other addons too. I also have big issues sometimes when upgrading an asset as Godot doesn't support asset script upgrade (you must remove them, breaking deps temporarily, then reinstall them and it can still cause broken references afterward), I wonder if this could help too.
I only use VSCode for heavy lifting like batch renaming, but I like it's embedded VCS visualizer too so I will open it for this kind of operations too.
The Tools menu will be useful to re-trigger the example copy, thanks!
from godot-game-template.
Related Issues (20)
- Pause menu isnt opening HOT 5
- Suggestion: Add documentation for custom game scene HOT 1
- Main Menu buttons not clickable except "Play" HOT 31
- Suggestion: add confirmation dialog when resetting controls
- SceneLoader path are not replaced to local scenes
- Changing bus volume in option menu "erase" the default bus volume. HOT 4
- Credits don't scroll the second time HOT 2
- Suggestion: Audio Input Selection Option
- Unicode keys are invisible in input editor
- Suggestion: Delete addons/.../examples files after copying
- Errors in log HOT 3
- 4.3 - Main menu music has stopped working HOT 2
- MusicController doesn't blend same tracks on web builds as of 4.3 HOT 3
- Players report getting stuck on main menu
- Comply with recommended directory- and file-names HOT 3
- Web export - USER ERROR: Not supported by this display server. - at: keyboard_get_keycode_from_physical
- Suggestion: Add icons to input controls remapping
- Suggestion: Improved InGameMenuController that handles more than one menu
- Input Issue w/ Animated Main Menu HOT 1
- Multi-language support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from godot-game-template.