Skip to content

UI: Adding TexturedButton2D and TextButton2D#1056

Merged
maharshi-gor merged 1 commit intofury-gl:v2from
ganimtron-10:v2_button
Feb 26, 2026
Merged

UI: Adding TexturedButton2D and TextButton2D#1056
maharshi-gor merged 1 commit intofury-gl:v2from
ganimtron-10:v2_button

Conversation

@ganimtron-10
Copy link
Contributor

@ganimtron-10 ganimtron-10 commented Nov 19, 2025

Adding Button2D abstract with TexturedButton2D and TextButton2D

image

@ganimtron-10 ganimtron-10 force-pushed the v2_button branch 2 times, most recently from 862ee11 to 6e3e6ea Compare December 19, 2025 10:36
@ganimtron-10 ganimtron-10 marked this pull request as ready for review February 19, 2026 19:45
@ganimtron-10 ganimtron-10 changed the title UI: Adding Button2D UI: Adding TexturedButton2D and TextButton2D Feb 19, 2026
Copy link
Contributor

@maharshi-gor maharshi-gor left a comment

Choose a reason for hiding this comment

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

Hello @ganimtron-10 thanks for the work. The PR works nicely.

Let's try to look into events binding. And some easy comments to fix.

@maharshi-gor
Copy link
Contributor

Hi @ganimtron-10 please rebase this PR.

feat: adding Button2D

temp: changes

fix: updating buton to be reactive

fix: update button icons on states

fix: moving actual buttons to elements

chore: adding button tests
Comment on lines +170 to +171
self.handle_events(self.child.actor)
self.handle_events(self.child.background.actor)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The handle_events should be refactored/rearchitected to enhance DX, maybe by allowing UI or actor or actors so that we dont need to manually specify all actors that to pickup specific events.

@ganimtron-10
Copy link
Contributor Author

Hi @maharshi-gor,
PTAL, updated and rebased.

@maharshi-gor
Copy link
Contributor

Thanks for the changes @ganimtron-10

@maharshi-gor maharshi-gor merged commit 345fd80 into fury-gl:v2 Feb 26, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants