arcade icon indicating copy to clipboard operation
arcade copied to clipboard

Enhancement: Split button row generation into a new UI widget class

Open pushfoo opened this issue 3 years ago • 1 comments

Enhancement request:

What should be added/changed?

Generating a row of buttons from labels should become a dedicated UI element. An unencapsulated version of this behavior is currently present in UIMessageBox: https://github.com/pythonarcade/arcade/blob/118722555fbe27ad727cb800b72ff3d3560b8f94/arcade/gui/constructs.py#L59-L63

What would it help with?

It would make it easier to create button rows for other UI elements such as the file chooser (#1201). For example, the bottom row of buttons in this mockup could be implemented using the proposed widget: image

pushfoo avatar Jun 19 '22 22:06 pushfoo

I've submitted #1253 which adds a UIButtonRow class.

JackAshwell11 avatar Jun 21 '22 09:06 JackAshwell11

Fixed with https://github.com/pythonarcade/arcade/pull/1580

Will be released within 3.0.

eruvanos avatar Feb 24 '23 15:02 eruvanos