Skip to content

ButtonDef is bad abstraction #159

@DarthGandalf

Description

@DarthGandalf
  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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions