Giter Site home page Giter Site logo

Comments (2)

Maaack avatar Maaack commented on September 27, 2024 1

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:
image

from godot-game-template.

hsandt avatar hsandt commented on September 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.