Skip to content

MenuState

APHONIC edited this page Sep 15, 2026 · 2 revisions

Menu State

MenuState.lua: remembers whether a LAM2 settings-menu submenu was left open or closed across a reload.

LibAPH.PersistSubmenuOpenState(savedTable, reference)

PC keyboard/mouse only. Restores on the call, then tracks future toggles.

LibAPH.PersistSubmenuOpenState(MyAddon.settings.submenu_state, "MyAddon_Submenu_UIConfig")

TrackSubmenuOpenState(savedTable, reference) and RestoreSubmenuOpenState(savedTable, reference) are the two halves of the call above, if you want them separately - RestoreSubmenuOpenState on menu build, TrackSubmenuOpenState on toggle.


Home · Getting Started

Clone this wiki locally