Releases: manups4e/ScaleformUI
Introducing MissionSelector and Scoreboard
With this release both C# and Lua can enjoy both the Scoreboard and the MissionSelector APIs.
Changelog:
- Lua: Fixed a TimerBar bug (thanks @NirosTen)
- Flash: Fixed those "seams" (lines) between items in the menu.
- Generic bug fixing.
❤️❤️ As always: if you enjoy my work and my menus, and you want to support me, you can contribute by donating via PayPal / ko-fi or by buying ScaleformUI on Tebex (You decide the price!)
Pride Month Release
“When I dare to be powerful, to use my strength in the service of my vision, then it becomes less and less important whether I am afraid.”
― Audre Lorde
With this release we want to celebrate the Pride for all our friends! To tell them not to be afraid for being who they truly are!
-
This release adds a new Feature to the PauseMenu, after the release of the Lobby i decided to bring those features into the PauseMenu giving people the ability to handle the players in a pause menu. Sadly there's no support currently for the cloning and previewing the peds in a custom scaleform. 😞 Anyway! You'll be able to call the new PlayerListTab and handle it for all your players in an async way.. players can be added and removed without the need to re-load your pause menu!! 🥳
-
New bugs and requested features have been addressed:
-
- Starting from this release
you won't need anymore to draw and process menu controls manually
: this means you won't need to create a thread in each script to Draw and ProcessControls for your menus.. everything is now done internally!
- Starting from this release
-
- Lua: Fixed crashing on switching between KeyBoard and Mouse input: Menu will no longer crash if you back out with backspace(keyboard) and then click with right click(mouse) -- thanks @ali-exacute
-
- Lua: Added missing sound on clicking with mouse -- thanks @ali-exacute
-
- Lua: Fix TimerBars drawing in weird resolutions: this fix allows you to get the correct drawing in all kind of resolutions and window modes!
-
FlushAllMenus()
is now reality: an experimental memory flushing on menu close was going to be introduced in this release, but while all my menus are alway dynamically rebuilt each iteration, some people noted that for static menus (the ones you make on startup for example and never rebuild) were going to be deleted as well. So i decided to add an optional function for developers: both Lua and C# now haveFlushAllMenus()
function in their MenuPools to let developers free clients's memory flushing and clearing the menu lists whenever they want!
-
- Lua: Fixed a corruption bug for InstructionalButtons on different systems.
-
- C#: Fixed empty lobbies giving NullReferenceException.
ScaleformUI_Assets
resource to be able to use this release completely!
❤️❤️ As always: if you enjoy my work and my menus, and you want to support me, you can contribute by donating via PayPal / ko-fi or by buying ScaleformUI on Tebex (You decide the price!)
Lua bugfixes and re-release
A couple of bug have been fixed for Lua.
Changes:
- Lua: Added TimerBars: You asked me A LOT about this so i added it.
- Fix flickering from Issue #18: This fixes the menu flickering when clicking on panels.
- removed example menu assertion test forgotten in last release.
❤️❤️ As always: if you enjoy my menus and you want to help me, please contribute by donating via PayPal / ko-fi or buying ScaleformUI on Tebex (You decide the price!)
Lobby Menu here we come!
Big news everyone! The Lobby system is finally available for both Lua and C#!! 🥳🎉🥂😁
-
It's in its first version.. surely some bugs are expected and some more features will come soon!
-
Some of you asked me to add a switch to decide if people can exit or not the menus.. so i added CanPlayerCloseMenu option in both classic menu and Pause/Lobby menus.
⚠️ Be careful tho.. if you set it to false and don't give a way out to the players, they'll be stuck in the menu forevah! -
After the high demand.. TimerBars have been added to Lua also. Check the Example in ScaleformUI_Lua
I'd like to thank also the community and its willing to help and contribute to the project.. this means it's important for you guys and you like it. It means a lot to me!
Before updating, be sure to update the assets! ❤️
There are so many commits since last update that i think it's better link them than explain them 😄
Changes since last update: 2.2.0...2.3.0
❤️If you enjoy my menus, please contribute by donating via PayPal / ko-fi or buying ScaleformUI on Tebex (You decide the price!)
Mouse Fixes for Lua and C#
Fixed some bugs with the new Mouse interface for ScaleformUI and PauseMenu, also the support for Mouse interface was added to PauseMenu both in C# and Lua.
TabTextItem
now is TextTab
and TabSubmenuItem
is now SubmenuTab
See what changed from the last release here: 2.1.0...2.2.0 <3
Mouse interface for ScaleformUI
Changes from this release:
- New mouse interface for both Lua and C#, fixes the mouse pointing and selection + makes Lua mouse dragging smoother.
- Lua: new async controls for mouse and keyboard / gamepad. It is now possible to draw and process controls in the same thread!(1)
- Lua: UIMenu Added activated event for all items
- Lua: UIMenu fixed going forward or backward more than once.
- C#: TabView disable in-game UI when pause menu is open
(1): from this release you can safely use:
pool:ProcessControls()
and pool:Draw()
in the same thread
Citizen.CreateThread(function()
while true do
Wait(0)
pool:ProcessControl()
pool:Draw()
end
end)
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.
Fix for Lua only
- Lua: UIMenu fixed parent menu opening twice when going back
New release with important fixes, please read description!
This release brings some potential breaking changes read carefully!
Changes since last release:
- Added a Wiki to the project, you can now check it to see the main features!
- IMPORTANT: Updated the gfx please download and replace the old assets with the new ones!
- C# & Lua UIMenu: fixed RemoveItemAt / RemoveItem
- Lua: Items:
- POTENTIAL BREAKING:
renamed SetRightBadge() and SetLeftBadge() to RightBadge() and LeftBadge(). Be sure to change your code accordingly! - Fixed bugs and added RemoveSidePanel()
- POTENTIAL BREAKING:
- C# ProgressItem fix event name and set SliderColor as public
- C# SliderColor is now public for SliderItem, StatsItem, ProgressItem
- C# CheckboxItemStyle is now only readable
- C# UIMenu parentitem is now only readable by users
- Lua: Fixed wrong code for items colors
- C# POTENTIAL BREAKING: SetPercentage becomes UpdateStatistic in UIMenuStatisticsPanel
- Lua: Removed unneeded DetailsImageItem.
- Lua: fixed panels code not interacting with the scaleform.
- Lua MenuPool: IsAnyMenuOpen must return true if submenu is open too
- Lua: fix left and right badges
- Lua / C#: UIMenuPool fix CloseAllMenus when in subMenus
New relese, new Bug fixes
Changes since last release:
- Updated Scaleform gfx for left badge not getting removed.
- Lua MenuPool: removed old function on menu closed
- Lua UIMenu fix going forward in submenus
- Lua MenuPool: fix instructionalbuttons disable on closing all menus
- Lua UIMenu fix default max items variable
- Lua MenuPool: Close submenus too.. (the Scaleform hangs up if the main menu is closed but the sub menu is not. this will close everything)
- Lua MenuPool: just close InstructionalButtons once
- Lua UIMenu: Handle mouse in a unique function
- Lua MenuPool: removed deprecated function
- Lua UIMenu: Enabled animationScroling feature
- Lua: Added AnimationType table
- Lua: IndexOf don't return nil but -1
- Lua: Fix items editing with menu opened (Since Lua poop doesn't know inheritance.. to avoid errors when the menu is opened, i need to send the item itself to count the index to send to the scaleforms)
- Lua: updated example menu