feat: Add HUD message queue natives - #391
Open
lozatto wants to merge 7 commits into
Open
Conversation
feat: Add HUD message queue natives
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 Summary
This Pull Request integrates ReAPI with the new HUD Message Queue system recently created in ReGameDLL_CS, preventing multiple on-screen messages from overlapping or flickering improperly.
Additionally, this PR fixes GitHub Actions compilation failures that occurred when the repository lacked configured GPG/PFX keys in its secrets.
🛠️ What was done?
1. HUD Message Queue (
natives_misc.cpp&reapi_gamedll.inc)To accommodate all developer profiles and avoid the classic "global state" issues of the old
set_hudmessage, the integration was created using two approaches:rg_send_hudmessageC++ native. It bundles colors, positions, effects, and the message execution in a single call, bringing better performance and safety.rg_set_hudmessageandrg_show_hudmessagestocks were added. They perfectly simulate the old behavior, but format and route the payload under the hood directly to the new Native Queue.2. CI/CD Workflow Fix (
build.yml)skipping signatureand finish the build successfully.💻 Usage Examples (Pawn)
🔸 Modern Approach (Recommended)
Fast, clean, and immune to global state issues. Everything is sent in a single line: