Skip to content

Add Speedometer and GoalProgressBar extensions - #2380

Merged
4ian merged 1 commit into
mainfrom
claude/dreamy-mendel-iw5mn6-gauges
Nov 27, 2026
Merged

4ian merged 1 commit into
mainfrom
claude/dreamy-mendel-iw5mn6-gauges

Conversation

@4ian

@4ian 4ian commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

Two new custom objects (events only), with ready-to-use variants in the asset store (GDevelop-assets#772).

[Speedometers and goal progress bars](https://github.com/GDevelopApp/GDevelop-assets/blob/claude/dreamy-mendel-iw5mn6-gauges/tools/ui-themes/screenshots/speedometers-and-goal-progress-bars.jpg?raw=true)

Speedometer

A needle on a dial, a digital value and an optional segmented bar (each one optional in a variant).

  • Children: Dial, Needle (turning around its center point), Hub, ValueText, UnitText, Bar and BarBackground (tiled sprites: the bar shows the left part of its image, so a gradient image goes from green to red).
  • Properties: Value, Maximum value, Unit, Decimals, Needle smoothing, needle angles at 0 and at the maximum (135° to 405° by default), number of segments of the bar (0 to fill it smoothly).
  • Expressions/conditions/actions: Value, Maximum value, Shown value (smoothed), Unit.

GoalProgressBar ("Goal progress bar")

Progress toward a goal (race, level, quest), with a marker and checkpoints. Not a loading bar, hence the name.

  • Children: Track (panel sprite, resized with the object), Fill, Marker, Checkpoint (one is placed in the variant as a model; the object creates one between each section and switches it to its 2nd animation when passed), GoalIcon, StartLabel, GoalLabel.
  • Properties: Value, Maximum value, Number of sections, Smoothing, Start and Goal labels.
  • Expressions/conditions/actions: Value, Maximum value, Progress (0 to 1), Goal is reached, Number of sections.

Tests

Gameplay tests in GDevelop: needle angles (start, half, clamped at the maximum), smoothed value, the digital bar lit by whole segments, the fill width and the marker position at 50%, checkpoints count and positions, checkpoints passed, changing the number of sections. npm run build, npm test and npm run check-post-build pass.


Generated by Claude Code

@4ian
4ian requested a review from a team as a code owner November 27, 2026 14:52
@4ian
4ian merged commit c07ffa5 into main Nov 27, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants