Skip to content
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

Various interface & user input-handling tweaks #3655

Merged
merged 8 commits into from
Feb 27, 2024

Conversation

past-due
Copy link
Member

Highlights:

And get rid of the bRender3DOnly global
Processing child widget clicks / input should match visual expectations based on the drawing z-order.

i.e. Attaching a widget will now, by default, explicitly add it on top of all previously-added child widgets, and this means it will get to process clicks first (if overlapping an earlier-added widget) and will get drawn last (thus visually appearing "on top", if overlapping a previously-added child widget).

WIDGET::attach now takes an optional zPos parameter which can be set to Back if there is a desire to attach a child widget at the bottom of the z-order instead of the top.
src/radar.cpp Outdated Show resolved Hide resolved
src/radar.cpp Outdated Show resolved Hide resolved
@past-due past-due merged commit 85eac7f into Warzone2100:master Feb 27, 2024
38 checks passed
@past-due past-due deleted the 2024_02_ui_tweaks_1 branch February 27, 2024 19:00
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