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

Menu UI - Support Touch Screen and Mouse Input #3204

Draft
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

jetrotal
Copy link
Contributor

@jetrotal jetrotal commented Apr 2, 2024

Code from both @MackValentine and @Ghabry.

Those are changes in menu navigation. Through it, the user is able to:

  • Hover options with mouse.
  • Select an option with Left Click/ Touch Input
  • Cancel Selection through Right Click / Double Touch Input
  • Scroll through options using mouse wheel or by clicking on the arrow icons.

It's also possible to:

  • Change Mouse PNG
  • Change MouseHover PNG

Mack is working on this feature, we need help on testing and pointing out the best outcome to certain interactions.
So we are opening a PR for testing and change suggestions.

MackValentine and others added 15 commits March 22, 2024 22:28
Add "MouseButton=true"
To the RPG_RT.ini to active mouse menu control.

Done :
Main menu, Order Menu, Shop, Titlescreen, Message ( With choice ), and Battle
First test for input Window_Number
Cursor will change when you hover selectable items !

You can make custom cursor by adding file name "mouseCursor" ( for the Arrow ) and "mouseCursorHand" ( for the Hover cursor ) inside the Picture/ folder.
Ensures that cursor selection works by default in most scenes.
Changed Ghabry's GetCursorRect() to GetCursorRect(0),
since that function required a parameter.
Add an option in Input Settings to use this function.
Still can force it in the .ini
Fix scroll in SceneFile
Tests for "half active" feature : Windows can be selected even if they doesn't have focus. ( SceneGameBrowser and SceneMenu only )
@Ghabry Ghabry marked this pull request as draft April 2, 2024 13:52
@Ghabry Ghabry added the EasyRPG New functionality exclusive to EasyRPG Player label Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EasyRPG New functionality exclusive to EasyRPG Player
Development

Successfully merging this pull request may close these issues.

None yet

3 participants