Repository navigation
Add the UI prefabs example - #1131
Merged
Merged
Conversation
Every UI prefab of the asset store in several styles, one scene per prefab: three styles from the asset store, a flat white Placeholder style and a Pixel art style, each being a variant of the prefab.
…he UI prefabs example The example is self-contained: the Dialogs and AreaTitle extensions, the variants and their images are included in the project.
Contributor
Preview the game(s) changed or added in this Pull RequestThis is an automatic message displaying links to the games in this PR - double check the JSON in case of doubt. |
…aceholder The placeholder comes first in every scene. Styles A, B and C are variants duplicated from the placeholder, each with its own images in assets/Style A, B and C, so a style is made by replacing these images. The asset store styles and the variants and resources they used are removed.
The default variant of the two choices dialog box now uses the placeholder panel and buttons, so Border.png, Border2.png and the Semi-transparent black and white button variant are removed.
Give the ScoreCounter variants a background and a non-zero preview score, and refit the dialog panel and selector whenever the dialog is resized.
Merged
3 tasks
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.
Adds UI prefabs, an example with one scene per UI prefab, ready to be restyled by replacing images.
What it contains
17 scenes, one per prefab: button, slider, toggle switch, continuous resource bar, resource bar with separated units, text input, multitouch joystick, two choices dialog box, game over dialog, volume settings, animated score counter, star rating bar, multiplayer avatar, info dialog, choices dialog, area title and level banner.
Each scene shows the prefab in 5 styles, each one a variant of the prefab:
assets/Style A,assets/Style Bandassets/Style C.How to make a style
Replace the images of one of the
assets/Style Xfolders. Every prefab of that style changes at once, because the dialogs and the volume settings use the buttons and the slider of their own style.Self-contained
The example depends on no other repository: the extensions (including
DialogsandAreaTitlefrom GDevelopApp/GDevelop-extensions#2374), their variants, images and fonts are all in the project. Every resource is used by a scene, and every file of the folder is a resource (4.4 MB in total).Tests
node scripts/generate-database.jsbuilds without errors and lists the example as "UI prefabs".