You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #249 from manups4e/experimental
ScaleformUI - Update 3: Make FiveM Great Again - Part 1
Completely rewrote the main Scaleform movie.
Fixed Glare position across resolutions (16:10 is completely bad on fivem for certain ui elements)
Code Breaking:
Removed fading time parameter in Lua/C# UIMenu constructors
Removed TextColor and HighlightedTextColor parameters in Items (unused and legacy)
Disabled all animations in menu.
Rewrote menu building system.
Rewrote menu and components updating process.
Modularized Scaleform movie to give the R* feeling we didn't know we were missing and didn't know we needed.
Fixed menu switching inheritance, it's now almost instant.
Performances increased up to by 40% across ScRTs.
All the exposed API has not been edited to maintain compatibility with the new update, marking as obsolete all the removed features.
UIMenuItem is now dynamic.
UIMenuListItem supports now virtually infinite list elements
I'm sure i forgot something.. 😛
All UIMenus are now updated.
Next update will bring a totally renewed and rewrote PauseMenu.
@@ -152,7 +151,7 @@ public async void ExampleMenu()
152
151
UIMenuCheckboxItemketchupItem=newUIMenuCheckboxItem("~g~Scrolling animation enabled? ~b~in a very long label to ~o~test the text scrolling feature!",UIMenuCheckboxStyle.Tick,enabled,"Do you wish to enable the scrolling animation?");
@@ -230,10 +229,6 @@ public async void ExampleMenu()
230
229
exampleMenu.AddItem(BlankItem);
231
230
exampleMenu.AddItem(BlankItem_2);
232
231
233
-
UIMenuListItemcolorListItem=newUIMenuListItem("Choose the scrolling animation",foodsList,(int)exampleMenu.AnimationType,"~BLIP_BARBER~ ~BLIP_INFO_ICON~ ~BLIP_TANK~ ~BLIP_OFFICE~ ~BLIP_CRIM_DRUGS~ ~BLIP_WAYPOINT~ ~INPUTGROUP_MOVE~~n~You can use Blips and Inputs in description as you prefer!~n~⚠ 🐌 ❤️ 🥺 💪🏻 You can use Emojis too!",SColor.HUD_Freemode_dark,SColor.HUD_Freemode);
234
-
colorListItem.BlinkDescription=true;
235
-
exampleMenu.AddItem(colorListItem);
236
-
237
232
UIMenuSliderItemslider=newUIMenuSliderItem("Slider Item","Cool!",true);// by default max is 100 and multipler 5 = 20 steps.
@@ -419,6 +431,7 @@ public async void ExampleMenu()
419
431
align.OnListChanged+=(item,index)=>
420
432
{
421
433
item.Parent.MenuAlignment=(MenuAlignment)index;
434
+
exampleMenu.MenuAlignment=(MenuAlignment)index;
422
435
};
423
436
424
437
UIMenuDynamicListItemoffsetX=newUIMenuDynamicListItem("Offset X","Change the X offset of the menu",exampleMenu.Offset.X.ToString("F3"),async(sender,direction)=>
@@ -995,8 +1008,8 @@ public async void ExampleMenu()
0 commit comments