-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Expand ghost structure multiplier controls #5314
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
Open
Pesinario
wants to merge
35
commits into
openfrontio:main
Choose a base branch
from
Pesinario:feat/multiplier_changes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
10b908b
Made the multiplier for buildings and nukes scale linearly instead of…
Pesinario 889cc0c
Refactored via guard clause to reduce nesting
Pesinario a5788b8
Implemented alt+scroll as single number increase/decrease for valid g…
Pesinario 1ff87e2
clamp upgradeMultiplier to 50 & refactored to a switch statement
Pesinario 40f0f7c
ran prettier, linting
Pesinario 302d171
Improved Alt key prevention tests
Pesinario 9fdaf76
Removed leftover logic from previous branch
Pesinario 18bdeba
Added comments clarifying intended behavior.
Pesinario 297055c
Added tests for intended behavior
Pesinario 7295d72
fix: Potentially some keyboards could get their rightAlt blocked
Pesinario d016e85
Cleaned up setGhostStructure logic
Pesinario 360ee47
Refactors scroll events for improved mantainability.
Pesinario f0148fd
Adds a test to ensure no regression on shift + scroll behavior
Pesinario 7c2ce30
Micro lint
Pesinario e69a40c
fix: alt (potentially) did not block zoom on minimal scroll events
Pesinario 21fec22
Ensures consistent alt prevention behavior on keydown and keyup.
Pesinario 56e9b94
fix: lint
Pesinario d19d6e9
fix: wrong comparison target
Pesinario 761681e
looser alt prevention
Pesinario 3f7e4b7
improves tests, additional tests for rebound keybinds
Pesinario b367176
Merge branch 'main' into feat/multiplier_changes
Pesinario 7867eec
Changes behavior to respond to a keybind instead of raw key
Pesinario 493866b
Allows changing keybind from settings
Pesinario 3f87964
Moves tests to own describe statement and changes them for keybind-ba…
Pesinario 56e06cf
Strict AltLeft prevention
Pesinario 714e113
Prevent zoom if build scroll modifier OR any ALT is pressed
Pesinario 2c72e82
Removes tests that never made any sense to begin with
Pesinario 9b78edd
fix: Period missing.
Pesinario d4adace
Stronger tests via rebinding to non-modifier key
Pesinario 38b8d9c
micro lint
Pesinario bdf1f31
fix: triple share alt rebinding
Pesinario ddde1d3
Added alt-sharing keybinds to existing default keybinds test.
Pesinario 41ef190
Makes test behavior clearer to AI.
Pesinario 10e9cdb
Update comment to better describe intended behavior
Pesinario 6cbcbd1
Fix: AI was right after all
Pesinario File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.