korlibs / korlibs/korge

Add an onClose event to the UIWindow

Open
#2,202 0 comments 0 reactions 0 assignees View on GitHub
enhancement feature request
Dominant language
Kotlin
Stars
3k
Forks
148
Avg merge
13h 44m
Merged PRs (30d)
1

Description

At the moment I'm creating a UIButton in order to execute some logic before closing the window. It would be really cool to have an onClose event for the UIWindow that will execute some logic without having to add a separate button to the window.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating UIWindow and its existing close path, then inspect how UIButton actions are wired. Define done as allowing callers to attach an onClose handler that runs when the window closes, without requiring a separate button; add coverage if the relevant test area becomes clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
game-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.