1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-20 03:16:26 -05:00
OpenDiablo2/d2game/d2player
Maxime Lavigne (malavv) b640385623
Handles Click and Hovers on most game control elements (#413) (#418)
* Handles Click and Hovers on most game control elements.

Creates a new type of "Actionable" which includes most of the bottom
bar elements. Then handles both "Click" and "Hover" into a separate
handler function.

At the moment, hover does nothing but routes correctly. Click logs
the corresponding actionable.

Known issues:
  - Not capturing button press on click (meaning player will move).
  - Basic touch detection, could be a more fancy QuadTree like struct.
  - Since the visual frames used are not just the actionable, the actual
    x, y coordinates of the actionable need to be entered statically. Changes
    in resolution would probably affect this.

* Renaming vars for code consistency and readability
2020-06-23 12:28:05 -04:00
..
escape_menu.go Escape menu - Keyboard support and minor improvements (#374) 2020-06-21 18:44:33 -04:00
game_controls.go Handles Click and Hovers on most game control elements (#413) (#418) 2020-06-23 12:28:05 -04:00
input_callback_listener.go Added multiplayer support (#336) 2020-06-18 14:11:04 -04:00
inventory_grid_test.go Initial work to separate client and server logic (#330) 2020-06-13 18:32:09 -04:00
inventory_grid.go Initial work to separate client and server logic (#330) 2020-06-13 18:32:09 -04:00
inventory.go Move rendering stuff out of d2common into d2render (#281) 2020-02-01 20:39:28 -05:00
player_state.go Added multiplayer support (#336) 2020-06-18 14:11:04 -04:00
stats.go Add panel to contain hero stats (#299) 2020-02-08 10:51:11 -05:00