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

Allow UI modding for HUD only with Lua disabled #2973

Open
slipher opened this issue Apr 11, 2024 · 0 comments
Open

Allow UI modding for HUD only with Lua disabled #2973

slipher opened this issue Apr 11, 2024 · 0 comments
Labels
A-UI T-Feature-Request Proposed new feature

Comments

@slipher
Copy link
Contributor

slipher commented Apr 11, 2024

@DolceTriade suggested in a comment an idea for how to enable limited UI modding: disable Lua in the HUD context and allow modding of the HUD only. Without Lua it would be a lot harder to abuse UI modding for cheating as there should be no way to send commands, get access to information (e.g. locations of non-beaconed entities) not intended for the UI, or generally break out of the sandbox.

I haven't verified that RmlUi allows enabling Lua on a per-context basis.

I see one serious drawback to this idea, which is that it would prevent us from using Lua in the "official" HUD in the future. Some HUD elements have drawing routines implemented in C++ which send drawing commands directly to the engine, bypassing RmlUi. If we were implementing those elements today it's likely we'd use RmlUi+Lua.

@slipher slipher added A-UI T-Feature-Request Proposed new feature labels Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-UI T-Feature-Request Proposed new feature
Projects
None yet
Development

No branches or pull requests

1 participant