Skip to content

feat: Add browser layer control - #54

Merged
NeekoGta merged 2 commits into
aurora-mp:mainfrom
xbruno1000x:feature/cef-layers
Oct 14, 2026
Merged

NeekoGta merged 2 commits into
aurora-mp:mainfrom
xbruno1000x:feature/cef-layers

Conversation

@xbruno1000x

Copy link
Copy Markdown
Contributor

Adds explicit control over the rendering order of Overlay2D and World2D browsers through CEF_SetBrowserLayer(playerid, browserid, layer).

Higher layer values render above lower ones. Browsers default to layer 0, support negative values, and use browser ID as a deterministic tie-breaker.

Layer changes are independent of focus and visibility. Assignments persist across visibility changes, reloads and navigation, including when browser creation is waiting for resource downloads. Recreating a browser resets its layer.

Includes the open.mp C++ API, documentation and examples. WorldObject3D rendering remains unaffected. Both client and server require an updated build.

@xbruno1000x xbruno1000x changed the title Add browser layer control feat: Add browser layer control Sep 23, 2026
@NeekoGta
NeekoGta merged commit ddd18d0 into aurora-mp:main Oct 14, 2026
1 check 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