Repository navigation
Conversation
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
Adds
lib.mashGame, a key-holding minigame where players must hold a randomly chosen key until the progress bar reaches 100%. Releasing the key decays progress over time. Supports multiple consecutive stages with different hold durations and randomized keys.API Reference
lib.mashGamedurations(number|number[]): Hold duration in milliseconds for each stage.keys(string|string[], optional): Keys to randomly choose from per stage (defaults to{'e'}).options(table, optional):decayRate(number): Progress decay percentage per second when released (defaults to25).failOnWrongKey(boolean): Fails the attempt immediately on an incorrect key press (defaults totrue).timeout(number|number[]): Maximum allowed duration in milliseconds per stage or total.Returns
truewhen all stages are completed, orfalseon failure/cancellation.Additional Methods
lib.cancelMashGame(): Cancels the active game and resolvesfalse.lib.mashGameActive(): Returns whether a game is currently running.Usage Example
Changes
resource/interface/client/mashgame.lua): Added promise-based wrapper, NUI focus management, and export registration matchingskillCheck.web/src/features/mashgame/): Added horizontal progress bar matchingox_lib:progressBardimensions (350x45px) andskillCheck-style keycap hints (25x25px).Testing