Skip to content

gui: enhance UIWidget usability with intuitive property setters for p…#2705

Merged
eruvanos merged 3 commits intodevelopmentfrom
gui/rect-delegates
May 30, 2025
Merged

gui: enhance UIWidget usability with intuitive property setters for p…#2705
eruvanos merged 3 commits intodevelopmentfrom
gui/rect-delegates

Conversation

@eruvanos
Copy link
Member

…osition and size

@eruvanos eruvanos requested a review from Copilot May 30, 2025 11:15
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances UIWidget usability by introducing intuitive property setters for positioning and sizing without direct manipulation of the underlying rect attribute.

  • Added property setters for left, right, top, bottom, center_x, center_y, width, height, and size in the UIWidget implementation
  • Updated the CHANGELOG.md file to document these changes

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
arcade/gui/widgets/init.py Added setter methods for widget positioning and dimensions to simplify usage
CHANGELOG.md Updated release notes to reflect improved UIWidget usability

eruvanos and others added 2 commits May 30, 2025 13:17
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@eruvanos eruvanos merged commit 78550c0 into development May 30, 2025
7 checks passed
@eruvanos eruvanos deleted the gui/rect-delegates branch May 30, 2025 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants