Skip to content

Dropdown content staying on screen after widget removal #1870

@NotYou404

Description

@NotYou404

Bug Report

Whenever you open a UIDropdown the options stay on screen even after the dropdown has been removed from the UIManager, if the dropdown wasn't closed.

System Info

Arcade 3.0.0.dev25
------------------
vendor: Intel
renderer: Intel(R) UHD Graphics
version: (3, 3)
python: 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:36:42) [MSC v.1929 64 bit (AMD64)]
platform: win32
pyglet version: 2.0.9
PIL version: 9.5.0

Actual behavior:

After the widget was removed the dropdown options stay on the screen, without the dropdown itself (see image).

Expected behavior:

The options should disappear; the operation should cancel.

Steps to reproduce/example code:

A pretty easy way to reproduce is running the GUI Menu example here and opening the volume or options submenu, then expanding the dropdown and pressing "Back" without closing the dropdown before. However this issue also exists without the submenu, so it's not special to the example.

Enhancement request:

What should be added/changed?

Make the dropdown options disappear when the dropdown isn't rendered anymore.

What would it help with?

Fixing a common glitch that would be common with all arcade games using dropdowns in submenus.

img

Metadata

Metadata

Assignees

Labels

guiRelated to arcade GUI (sub module arcade.gui)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions