Big changes!!
First of all, the Assets have been updated, you MUST update them to use this release.
Changes:
-Lua: fixed MenuPool giving errors (Thanks @Andyyy7666)
- Lua: DrawText3D fix drawing
- Lua: PauseMenu disable all control actions if enabled
- Lua: UIMenu don't set the container to null when closing the menu
- C# menu pool: fix offset for submenu.
- C# / Lua UIMenu: New AddSubMenu method for menus (You can see more in their description and examples)
- C# / Lua: UIMenu added a smooth improvement in scrolling speed when key is kept pressed.
From this release, there are 2 ways to add submenus:
- the old way =>
local submenu = pool:AddSubMenu(parent, ...)
example:local windowSubmenu = pool:AddSubMenu(exampleMenu, "Heritage Menu", "", true, true)
- NEW way =>
local subMenu = UIMenu.New() parent:AddSubMenu(subMenu, itemText, itemDescription, offset, KeepBanner)
example:
local windowSubmenu = pool:AddSubMenu(exampleMenu, "Heritage Menu", "", true, true) local heritageWindow = UIMenuHeritageWindow.New(0, 0)
the new approach lets you create the submenu as a normal menu, and add it when you want to in the order you want, without the need to change your menu accordingly.