Create an abstract Button class which InventoryButton inherits from. It handles the creation of the background and the content and provides sizing methods and click callback. (Should it handles drag and drop of Buttons content or should it be in the inheriting InventoryButton class ?)
Create an abstract Button class which InventoryButton inherits from. It handles the creation of the background and the content and provides sizing methods and click callback. (Should it handles drag and drop of Buttons content or should it be in the inheriting InventoryButton class ?)