mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-20 07:27:19 -05:00
d2input made the move to immutable events. (ex. MouseMove) but d2gui was using "local events" for its recursive layouts. Meaning when entering a sub-layout, the original event was modified to have the cursor relative to the x, and y of the parent layout. After tossing ideas with Grav, we considered (1) making events modifiable, (2) having an event constructor, (3) changing sub-Layout to use screen layout. We choose (3), and this is the relevant commit.