Has anyone been able to make WarMenu open in vehicles?
Where iam suposed to put this ?? " client_script ‘@warmenu/warmenu.lua’ "
I cant find the ___resource.lua.
Failed to load script @warmenu/warmenu.lua
Update 0.9.15
- Improved performance and memory consumption
- Added proper debug getter/setter API
- Improved API consistency
Update 1.0
Yes, it’s finally here!
WarMenu became a quite popular UI framework, its API were stabilized and checked through the time, all noticeable bugs were eliminated.
Last few updates brought massive performance improvements, new important APIs and improvements to existing ones.
It’s worth to mention, that WarMenu is a piece of software with backward compatibility, so it’s highly recommended to update to this version.
Usage section was also updated with more advanced and correct examples.
Version 1.0 is not the end.
I’m planning to implement more controls, also keep fixing bugs.
And I have some great ideas for WarMenu 2.0 including style support, even more stateless implementation and custom controls support.
Thank you for using WarMenu and helping me with improvements!
Changelog
- Added
WarMenu.IsItemHovered
andWarMenu.IsItemSelected
API - Implemented restoring parent menu selected index after closing submenu
- Improved
WarMenu.ComboBox
andWarMenu.CheckBox
API (without breaking compatibility!) - Improved performance and memory consumption
- Updated Usage section
Download
(it’s always better to use it as Git submodule)
That’s a very nice update. Thanks a lot for your work.
Update 1.1
- Added
WarMenu.ToolTip
API
Video Example
Also, remember, since 1.0 you have everything to implement your own tooltip if you are not happy about default implementation.
Update 1.2
- Added
WarMenu.SpriteButton
API
Also, as a small bonus, improved WarMenu.CheckBox
style!
Update 1.3
This is huge!
I made a large portion of code refactoring, fixed a lot of ‘sleeping’ bugs.
But I think the best feature of this release is Demo menu.
It replaces Usage section and supposed to cover all available API (not yet though).
Just add client_script '@warmenu/warmenu_demo.lua'
AND server_script '@warmenu/warmenu_demo.lua'
to your fxmanifest.lua
, then type /warmenuDemo
command in chat to open Demo menu.
- Added Demo Menu
- Added
WarMenu.SetMenuFocusTextColor
API - Fixed
WarMenu.SetMenuFocusColor
API - Fixed
WarMenu.SpriteButton
edge case - Improved performance and memory consumption
- Removed debug prints
- Improved code style
Update 1.4
- Added
WarMenu.InputButton
API - Improved performance
- Improved key mapping
- Marked optional parameters in API section
Is there a way to add a small gap between the buttons?
I tried modifying the xy values for drawing the rectangles but didnt get anywhere
No.
Also, WarMenu.ToolTip
was designed to be used for one hovered item only.
I would recommend you to use subText
to indicate if vehicle is in garage.
thank you, I fixed this and I’m now using subtext for displaying that, and tooltip for hovered item. awesome library
Hello, thanks for the release and upload
I’m quiet new to the WarMenu though, it would be sooooo nice if you could make tutorials on Youtube.
Thanksss
Update 1.5
Styles support is the main new feature.
Style is basically a Lua table of display properties.
It allows to reduce memory consumption, especially when there are a lot of menus using the same display property values.
And it provides more convenient way to modify few menu properties at once.
See API
section for more details (warmenu_demo
is not updated yet)
- Added styles support
- Added
WarMenu.SetMenuStyle
API - Added
WarMenu.CreateMenu
subTitle parameter - Corrected title background aspect ratio
- Fixed minor bugs
Forgot to add that the main difference between style and regular setter is that you create and store style in your code and pass table reference to menu structure.
While you can still use setters to override values for concrete menu style properties.
WarMenu.SetMenuTitleBackgroundSprite
dumb question how would i use it for imgur? s ay my id is 756