HTML5GUITemplateProblem.zip (2.0 KB)
Project - > Build HTML5
You will see “DEFAULT”
Edit screen.gui and delete the landscape layout and it goes to “EDITED” when Project - > Build HTML5
What’s going on here?
HTML5GUITemplateProblem.zip (2.0 KB)
Project - > Build HTML5
You will see “DEFAULT”
Edit screen.gui and delete the landscape layout and it goes to “EDITED” when Project - > Build HTML5
What’s going on here?
I believe this is related to an issue @Erik_Angelin is working on. You should be able to revert the changes in the gui scenes that were reset when you added the new node.
In editor it displays fine. It’s fine in Android and Windows, only in HTML5 target does bad behavior happen.
Oh, ok, strange. @Erik_Angelin, @Johan_Beck-Noren?
Hi @pkeod! How did you test on Windows and Android, did you Build or Bundle? When Bundling and building for html5 we use the old build system (bob) which reads resources from disk, so we always do an implicit save. When you build, we use the in-memory representation of the project. That could explain the difference you’re seeing.
Currently, using Layouts and in particular Layouts + Templates in gui scenes is almost guaranteed to break. It might be safe if you think of the nested gui scenes as a tree and make sure that layouts are added to all intermediate scenes in order from leaf to root. And cross your fingers. This is the issue we’re currently working on, and it ought to be fixed in a week or so.
This issue in the tracker, I think: Changes in gui-template do not apply in bundle · Issue #2044 · defold/editor2-issues · GitHub
Any updates on this? The issue in git still seems open
@Erik_Angelin is still working on the issue. He’s made good progress although uncovered a lot of stuff along the way that needed fixing, which is why it has taken additional time to fix this. It’s close though…
What’s the status of this?
Still unresolved. I touched upon the complexity of the system we have in place for templates and overrides in our roadmap post.
Did you run into this problem now?
I mean, I do have problems with templates in release unresolved still and I am searching for a solution.
In gui I use templates for status bars:
But when I build an app (Win), each bar is like a default template (scale, font and color, ignore the 237 value, it only shows that script for the bar is working properly (237/300 and bars are scaled)):
It is only correct when I get rid of all templates and use only nodes created in the current gui (so copy-paste instead of using templates)