mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-20 03:16:26 -05:00
b640385623
* 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 |
||
---|---|---|
.. | ||
escape_menu.go | ||
game_controls.go | ||
input_callback_listener.go | ||
inventory_grid_test.go | ||
inventory_grid.go | ||
inventory.go | ||
player_state.go | ||
stats.go |