-
-
Notifications
You must be signed in to change notification settings - Fork 22k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display project settings splash color on web export #96625
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
One concern however is that there's compatibility breakage for custom HTML shells, since $GODOT_SPLASH
was renamed to $GODOT_SPLASH_IMAGE
. It's probably not a dealbreaker and is unavoidable here, but it should be highlighted in the release notes and the upgrade guide.
We can keep |
Both can work, but keeping |
Has there been any decision yet as to how we should proceed regarding compatibility? I'm happy to make any changes needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even if I like up-to-date code, it doesn't warrant breaking compatibility, really.
Both can work, but keeping
$GODOT_SPLASH
the way it is requires a specific order in thereplaces
HashMap for it not to break the$GODOT_SPLASH_COLOR
placeholder.
I don't understand how it could break.
Has there been any decision yet as to how we should proceed regarding compatibility?
Sorry for the delay! Don't hesitate to join the developers' chat #Web channel in order to discuss topics.
If
I agree! I was under the impression that strict compatibility preservation is only done for the API, not for the export system, which is why I didn't think of this problem.
Done, much appreciated! |
I was able to test this right now and skimmed over the implementation too, and I believe Godot's HashMap iteration actually does return elements in the order they were added. So the options I currently see are the following:
|
Yes. This is the simplest solution. |
Alright, I made the change now! I hope we can eventually move to a variable name that matches the project settings since relying on the order seems a little fragile to me but for now, I think this is good to merge! Let me know if there's anything else I should change and thank you for taking the time to review this PR. :) |
Please squash your commits into one, see the interactive rebase for details |
0b6f7bf
to
4db5cd6
Compare
@Repiteo Done! Sorry for the inconvenience! |
Thanks! Congratulations on your first contribution! 🎉 |
This is a minor improvement to the new web export splash screen, which now displays the correct splash color specified in the project settings as the background, as was mentioned in #91852.
I've been a fan of Godot for quite some time now and have been using it for hobby projects, as well as convincing friends to try it. I don't have much experience with the inner workings of the engine, or C++ for that matter but I got very excited to find that I can help out with small additions too ;). My changes have been tested locally and work as expected but since this is my very first contribution to Godot, I'd appreciate a thorough check and I hope that everything is alright!