Closed 07-stadia closed 2 years ago
Is easier to find bugs like this now that I'm using Rider instead of Visual Studio lol.
Also, check your code blocks, they were entered incorrectly and the code doesn't looks right :)
Wow, that was quick. I saw the code block already. Don't know how to fix it other then just removing it... Patiently waiting for the new update to drop.
Well, the issue came in right after I finished #68 and I had Rider open so... yeah xd
Issue: When using setter of NativeListItem.SelectedItem, it doesn't select it in the menu. When e.g. the item '0' is in the list, and using SelectedItem = '0', item '0' doesn't get selected.
Expected behavior:
When e.g. the item '0' is in the list, using SelectedItem = '0', should select item '0'. Running similar code with RageNativeUI works fine.
Environment Information
LemonUI version: 1.7.0
RagePluginHookSDK: 1.86.1288.16169
.NET Framework: 4.7.2
LemonUI code snippet: `{ LemonUI.ObjectPool menuPool = new LemonUI.ObjectPool(); LemonUI.Menus.NativeMenu menu = new LemonUI.Menus.NativeMenu("Menu", ""); LemonUI.Menus.NativeListItem floatList = new LemonUI.Menus.NativeListItem("Float List", "", -10, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 10);
LemonUI.Menus.NativeItem selectZero = new LemonUI.Menus.NativeItem("Float List Select 0");
}`
RageNativeUI: `{ RAGENativeUI.MenuPool menuPool = new RAGENativeUI.MenuPool(); RAGENativeUI.UIMenu menu = new RAGENativeUI.UIMenu("Menu", ""); RAGENativeUI.Elements.UIMenuListScrollerItem floatList = new RAGENativeUI.Elements.UIMenuListScrollerItem("Float List", "", new List() { -10, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 10 });
RAGENativeUI.Elements.UIMenuItem selectZero = new RAGENativeUI.Elements.UIMenuItem("Float List Select 0");