raylib: fix DM popup (#36265)

* come on

* try

* better

* better

* multiple places!

* debug

* works

* temp

* whoops

* wonder if this wortks

* ah need this!

* wtf is this when deleted?

* another day no modal show event

* clean

* fix

* ugh

* need this
This commit is contained in:
Shane Smiskol
2025-10-04 00:05:20 -07:00
committed by GitHub
parent c88ab5cd12
commit 2bc97ee23f
2 changed files with 13 additions and 2 deletions
+4
View File
@@ -178,6 +178,10 @@ class GuiApplication:
self._mouse.start()
def set_modal_overlay(self, overlay, callback: Callable | None = None):
if self._modal_overlay.overlay is not None:
if self._modal_overlay.callback is not None:
self._modal_overlay.callback(-1)
self._modal_overlay = ModalOverlay(overlay=overlay, callback=callback)
def texture(self, asset_path: str, width: int, height: int, alpha_premultiply=False, keep_aspect_ratio=True):