Closed Saturn745 closed 10 months ago
This implements a new event Highlighted which will be triggered when the item is "selected".
Highlighted
Lua Example:
local dummyItem = UIMenuItem.New("Dummy Item", "Dummy Item") dummyItem.Highlighted = function (item) print('Dummy Item Highlighted') end
C# Example:
UIMenu exampleMenu = new UIMenu("ScaleformUI", "ScaleformUI ~o~SHOWCASE", new PointF(20, 20), "scaleformui", "bannerbackground", true, true); UIMenuItem exampleItem = new UIMenuItem("Example Item", "This is an example item."); exampleItem.Highlighted += (menu, item) => { Debug.WriteLine("Example Item Highlighted"); };
amazing!!!
This implements a new event
Highlighted
which will be triggered when the item is "selected".Lua Example:
C# Example: