AbyssEngine / AbyssEngineOld

The Open Source ARPG Engine.
https://www.abyssengine.com
GNU General Public License v3.0
438 stars 46 forks source link

ButtonDef is bad abstraction #159

Open DarthGandalf opened 8 months ago

DarthGandalf commented 8 months ago
  1. 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.
  2. 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