X Tutup
Skip to content

Fix speed limiter button positions#5802

Merged
impaktor merged 1 commit intopioneerspacesim:masterfrom
sturnclaw:fix-limiter-button-pos
Mar 21, 2024
Merged

Fix speed limiter button positions#5802
impaktor merged 1 commit intopioneerspacesim:masterfrom
sturnclaw:fix-limiter-button-pos

Conversation

@sturnclaw
Copy link
Member

This PR resolves an issue with the positioning of speed limiter buttons, where the sameLine call was restoring the start-of-line cursor position in a way that resulted in overlap between the buttons and the speed limiter itself.

The result is as it should be:
image

Fixes #5800.

- ui.sameLine() restores the line cursor start position, irrespective of subsequent cursor positioning
- Speed limiter buttons therefore need to start a new line before using ui.sameLine() or ui.group()
Copy link
Contributor

@Gliese852 Gliese852 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved!

@impaktor impaktor merged commit cfac385 into pioneerspacesim:master Mar 21, 2024
@sturnclaw sturnclaw deleted the fix-limiter-button-pos branch April 27, 2024 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI: Buttons overlap the speed-limiter icon

3 participants

X Tutup