drwhut / tabletop-club

An open-source platform for playing tabletop games in a physics-based 3D environment for Windows, macOS, and Linux! Made with the Godot Engine.
https://tabletopclub.net
MIT License
1.26k stars 51 forks source link

[Bug] Highlight doesn't follow cursor in right-click menu #185

Open GrimPixel opened 1 year ago

GrimPixel commented 1 year ago

Describe the bug Highlight doesn't follow cursor in right-click menu.

To Reproduce Steps to reproduce the behavior:

  1. Load the 52-card deck
  2. Right-click on it
  3. Move cursor to “Deal cards” or “Take off top”
  4. Move the cursor and the highlight stays on the option.

Expected behavior Highlight moves with cursor.

Environment Arch Linux

Version v0.1.0

elmodor commented 1 year ago

I would guess that the issue is in: https://github.com/drwhut/godot/blob/master/scene/gui/popup_menu.cpp _activate_submenu especially about the auto hide areas.

Not sure if we want to update this with the recent version in: https://github.com/godotengine/godot/blob/master/scene/gui/popup_menu.cpp somehow

or wait for the godot engine update to 3.5 (in the tabletop-club godot repo).

Best would probably to wait for the godot update which might fix the issue since there were some fixes made related to submenus.