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

Context menu #543

Merged
merged 46 commits into from
Oct 26, 2021
Merged

Context menu #543

merged 46 commits into from
Oct 26, 2021

Commits on Oct 25, 2021

  1. Configuration menu
    Copy the full SHA
    01aea23 View commit details
    Browse the repository at this point in the history
  2. Add ContextMenuSystem for context menu

    Listens for secondary click, support for sub-menus
    mankinskin committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    04e52be View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    432ac9c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    185d86e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    69a33d8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    28ef15d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    1817b62 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7011c37 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    3519508 View commit details
    Browse the repository at this point in the history
  10. Refactor

    mankinskin committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    aa91812 View commit details
    Browse the repository at this point in the history
  11. Fix warnings

    mankinskin committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    1da8097 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    171a818 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    a3f0c5e View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    3f49d85 View commit details
    Browse the repository at this point in the history
  15. Refactor and comment

    mankinskin committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    2410c76 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    968233d View commit details
    Browse the repository at this point in the history
  17. Close submenu when pointer outside is not moving towards it

    we need to request an extra repaint to detect if the pointer is still
    even in reactive mode
    mankinskin committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    c40c120 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    ea27d7c View commit details
    Browse the repository at this point in the history
  19. Improve submenu style

    mankinskin committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    0698b2b View commit details
    Browse the repository at this point in the history
  20. Fix submenu button flicker

    mankinskin committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    3e0e7aa View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    f25e02f View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    5e96b56 View commit details
    Browse the repository at this point in the history
  23. Some styling improvements

    mankinskin committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    8c46041 View commit details
    Browse the repository at this point in the history
  24. Fix submenu text alignment

    mankinskin committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    31e9fd4 View commit details
    Browse the repository at this point in the history
  25. Refactor, run cargo fmt

    mankinskin committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    2a1ac41 View commit details
    Browse the repository at this point in the history
  26. Add function for adding items to submenus

    this allows us to disable hover visuals when any
    other entry is hovered
    mankinskin committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    ccbd1d2 View commit details
    Browse the repository at this point in the history
  27. Keep track of submenu index in parent context menu

    this improves the Id's generated for submenus, as they will depend on
    the index in their parent, rather than their position. This avoids
    recreating an Id for the same conceptual submenu, only drawn at a
    different position.
    mankinskin committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    dee2611 View commit details
    Browse the repository at this point in the history
  28. Refactoring

    mankinskin committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    1697958 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    ae95f5f View commit details
    Browse the repository at this point in the history
  30. Don't return any Response from SubMenu::show

    wasn't really needed so far and is probably better for encapsulation
    mankinskin committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    97c957a View commit details
    Browse the repository at this point in the history
  31. Define useful Response for SubMenu::show

    an InnerResponse for the SubMenu button Response with an optional
    inner Response for the extended SubMenu
    mankinskin committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    85d63b1 View commit details
    Browse the repository at this point in the history
  32. Open ContextMenu on pointer button press, not click

    clicks only occur on button release, button press feels more responsive
    mankinskin committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    1238467 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    3ed068a View commit details
    Browse the repository at this point in the history
  34. cargo clippy

    mankinskin committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    557184f View commit details
    Browse the repository at this point in the history
  35. Add MenuUi and demo window

    mankinskin committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    5a31048 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    2f573a6 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    b8fe011 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    aef287b View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    88d3900 View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    9f3af74 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    700b166 View commit details
    Browse the repository at this point in the history
  42. Apply review

    - refactoring
    - removed some demos
    - add doctest for ui.menu_button()
    - fixed menu_state not being cloned to child ui
    mankinskin committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    37ac070 View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    ffbf96f View commit details
    Browse the repository at this point in the history
  44. cargo fmt & clippy

    mankinskin committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    a74dff7 View commit details
    Browse the repository at this point in the history
  45. Delete context_menu module

    mankinskin committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    b54233c View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    3db6bdf View commit details
    Browse the repository at this point in the history