mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-04 23:56:40 -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 |
||
---|---|---|
.. | ||
d2gamescreen | ||
d2player |