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

[Customized] Change the scrolling action of the sidebar #1522

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

CrimRecya
Copy link
Contributor

@CrimRecya CrimRecya commented Feb 11, 2025

  • Allow players to decide for themselves:
    • Whether can use mouse wheel to scroll sidebar strip when the mouse is not on it by ScrollSidebarStripInTactical .
    • Whether can use mouse wheel to scroll sidebar strip when pressing Ctrl by ScrollSidebarStripWhenHoldCtrl, Alt by ScrollSidebarStripWhenHoldAlt, or Shift by ScrollSidebarStripWhenHoldShift.

In RA2MD.ini:

[Phobos]
ScrollSidebarStripInTactical=true     ; boolean
ScrollSidebarStripWhenHoldAlt=true    ; boolean
ScrollSidebarStripWhenHoldCtrl=true   ; boolean
ScrollSidebarStripWhenHoldShift=true  ; boolean

I also prepared a trigger hook to catch the state when mouse wheel scrolling.

Copy link

github-actions bot commented Feb 11, 2025

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.

@Thrifinesma
Copy link
Contributor

The feature tagged customized, but when ScrollSidebarStripWhenHoldKey, all three keys are avaliable. I suggest to change it to allow specify which keys (one or two or three) is usable to trigger scrolling action.

@TaranDahl TaranDahl added the ⚙️T1 T1 maintainer review is sufficient label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚙️T1 T1 maintainer review is sufficient Tested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants