Repository navigation
Dialogs: declare the PanelSpriteButton and Gamepads extensions as required - #2377
Merged
Merged
Conversation
- Dialogs: an info dialog with a button and an optional close button, and a dialog with up to 5 choices (like a pause menu). Hidden empty choices, a selector following the focused choice, mouse, touch, keyboard and gamepad. - Area title: the name of an area or a level with a subtitle, shown with a fade when the player enters it. Made only with events.
…per in Area title
…o claude/dreamy-mendel-iw5mn6 # Conflicts: # extensions/community/Dialogs.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The Dialogs extension (#2374) did not declare the extensions it uses. Its dialogs have buttons of the PanelSpriteButton extension, and the choices dialog reads gamepads with the Gamepads extension. When an Info dialog or a Choices dialog was added "from scratch" (not from the asset store, which installs the extensions of the asset) to a project without PanelSpriteButton, the buttons had an unknown object type, and the in-game editor crashed:
This adds
requiredExtensions(Gamepads 0.9.3 and PanelSpriteButton 2.2.1, the current versions), like LeaderboardDialog and TwoChoicesDialogBoxes do, and bumps the version to 1.0.1. Nothing else changes. Area title only uses built-in extensions (Tween, Anchor), so it needs nothing.The crash itself comes from GDevelop: in the in-game editor, the placeholder of an unknown object type is a 3D object that reads
objectData.content.width, and the data of a custom object (like a PanelSpriteButton) has nocontent. It is not fixed here; with this PR, the type is not unknown anymore.Tests
npm run build(the extension checks): pass.Checklist
AI usage
tools/ui-themes/extof GDevelop-assets.Generated by Claude Code