AbyssEngineOld
AbyssEngineOld copied to clipboard
ButtonDef is bad abstraction
- It requires a filename of the image. This means that I need to load the image twice: to query the size of the frame, and to actually show it on screen.
- Far from every button has text/font, but ButtonDef requires it
Related: Button should be decoupled from "clickable area". Examples of non-button clickable areas are tabs in quests/waypoints panels, helmet/amulet/etc slots in inventory. Mouse handling isn't specific to Buttons