v3.1.1
Changed
-
Both menus now use a namespaced API. The documented way to reach them is
MSK.Context.Register,MSK.Context.Show,MSK.Context.Update,MSK.Context.Hide,MSK.Context.GetOpenand the same set onMSK.Menu. This matches the rest of the library, whereMSK.Input.OpenandMSK.Cron.Createalready work that way.Nothing breaks. The flat names introduced in v3.1.0 (
MSK.RegisterContext,MSK.ShowMenu,MSK.UpdateContextand so on) point at the exact same functions and stay supported, and the exports are unchanged (exports.msk_core:RegisterContext(...)). -
MSK.Menu.HidereplacesMSK.Menu.Closeso it lines up withMSK.Context.Hide.MSK.Menu.Closeremains as an alias.
Fixed
- The Menu module leaked its internal navigation onto the public table.
MSK.Menu.Move,MSK.Menu.SideScrollandMSK.Menu.Selectwere reachable inside msk_core but did not exist for consumer resources, so calling them from another script failed. They are module-internal now and no longer part of the public API.
This is a pure Lua change, the NUI is untouched. Only the two Menu files have to be replaced, web/dist can stay as it is.
Changed files
fxmanifest.lua
modules/Menu/client.lua
modules/Menu/server.lua