Skip to content

Mouse support#73

Draft
AloXado320 wants to merge 1 commit intoflyngmt:masterfrom
AloXado320:mouse
Draft

Mouse support#73
AloXado320 wants to merge 1 commit intoflyngmt:masterfrom
AloXado320:mouse

Conversation

@AloXado320
Copy link
Copy Markdown

Adds mouse support to most menu interfaces in the game, of which some makes sense logically.

Here's the changes in detail:

m_hand (Hand cursor)

  • Render now uses a separate visual position variable so mouse movement feels smooth.

m_tag (Menu table like interface for items and selection entries for it)

  • Each submenu has a table entry check for mouse to interact them seamlessly.
  • Item selection entry highlights the text hovered by mouse.
  • Left/Right click functionality for both table entries and item selection entry.
  • Scroll wheel support for catalog list entries.
  • Adjusted positions from some table entries and set hitboxes for each of them.

m_design (Design menu)

  • Seamlessly change design modes and it's entries depending where you hover the mouse.
  • Interpolation used for pen drawing to prevent missed pixels if the mouse is moved too fast.
  • Safety checks like preventing changing menus while currently drawing and extra spacing for tool menu icons.

m_choice (Dialog choose selection)

  • Simple hover and selection mouse support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant