Now you can start adding elements to your menu by using the AddItem(UIMenuItem item) method. myMenu.KeyUp = Keys.W myMenu.KeyDown = Keys.S myMenu.KeyLeft = Keys.A myMenu.KeyRight = Keys.D myMenu.KeySelect = Keys.Space You may change the default Numpad navigation keys by changing the KeyUp-KeySelect properties. var myMenu = new UIMenu("Banner Title", "~b~SUBTITLE") It also has an overload with a third Point parameter which determines the offset, and an overload for a custom sprites. UIMenu has two base parameters: the banner title and the subtitle. This class provides 4 events: OnIndexChange, OnListChange, OnCheckboxChange and OnItemSelect. You can create a menu by using the UIMenu class. This causes many old versions floating around on the internet. Fixed graphical errors when there were more than 12 items on screen. Restyled the menu to look a lot more like an official Rockstar menu. Place ProcessMouse() in your OnTick event. Added a helper class, MenuPool, to easily call your process methods of all of your menus with just one method, ProcessMenus. Added menu nesting methods: BindMenuToItem and ReleaseMenuFromItem Menu mantains aspect ratio in all screen resolutions. You can disable this setting ResetCursorOnOpen to false. See github release for more information. Mouse controls are disabled when controller is used. Compatibilities with ScriptHookVDotNet 2.0 Fixed crash related to instructional buttons. Fixed Wasted & Busted messages not going away. Fixed issue when UIMenuListItem had more than 100k items You can read the documentation at the wiki.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |