Mudlet: BUG Flyout Labels not properly collapsing when you leave a parent menu item.

Created on 6 Dec 2020  路  8Comments  路  Source: Mudlet/Mudlet

Brief summary of issue / Description of requested feature:

BUG Flyout Labels not properly collapsing when you leave a parent menu item.

GIFrecord_2020-12-06_095408

Steps to reproduce the issue / Reasons for adding feature:

Create a Flyout label menu, only create sub menus for some of the items.
now traverse the parent menu with your mouse.

Error output / Expected result of feature

The sub menus do not close when your no longer on that parent menu.

Extra information, such as Mudlet version, operating system and ideas for how to solve / implement:

Mudlet 4.10.1

bug lua only

Most helpful comment

The menu does not behave the way most people expect a menu to, by this I mean that when you click on an entry in the menu, the menu should close. If there are some situations where keeping the menu open is beneficial then maybe that should be added as a configurable option. For example if I goto my start menu either on linux or windows or even my web browser, and I click on an entry then soon as I click an entry the menu closes:

This is already possible by putting closeAllLevels(myParentLabel) in the function which is called by clickCallBack.

All 8 comments

I do not remember always having this issue. I am uncertain if any of this is a result of the changes here: https://github.com/Mudlet/Mudlet/issues/2500

@Edru2 do you have an idea?

@xekon please test if the version at #4499 fixes the issue for you

Awesome @Edru2 you fixed the issue I described initially. I did however just notice something else as well. The menu does not behave the way most people expect a menu to, by this I mean that when you click on an entry in the menu, the menu should close. If there are some situations where keeping the menu open is beneficial then maybe that should be added as a configurable option. For example if I goto my start menu either on linux or windows or even my web browser, and I click on an entry then soon as I click an entry the menu closes:

(If you would rather me post this to a separate issue then let me know, thanks again)

mudlet-menu-not-closing

The menu does not behave the way most people expect a menu to, by this I mean that when you click on an entry in the menu, the menu should close. If there are some situations where keeping the menu open is beneficial then maybe that should be added as a configurable option. For example if I goto my start menu either on linux or windows or even my web browser, and I click on an entry then soon as I click an entry the menu closes:

This is already possible by putting closeAllLevels(myParentLabel) in the function which is called by clickCallBack.

oh perfect! thank you @Edru2

@Edru2 I can't find the documentation in the wiki, only a few example. This is a very helpful function!

I can't find the documentation in the wiki, only a few example. This is a very helpful function!

@wiploo For historic reasons, Geyser documentation is listed on an extra page outside wiki.
You can find closeAllLevels etc. here: https://www.mudlet.org/geyser/files/geyser/GeyserLabel.html

Was this page helpful?
0 / 5 - 0 ratings