Свойство | Type | Description | |
---|---|---|---|
AUDIO_BACK | string | ||
AUDIO_ERROR | string | ||
AUDIO_LEFTRIGHT | string | ||
AUDIO_LIBRARY | string | ||
AUDIO_SELECT | string | ||
AUDIO_UPDOWN | string | ||
AllowCameraMovement | bool | ||
ControlDisablingEnabled | bool | ||
FormatDescriptions | bool | ||
HoldTimeBeforeScroll | uint | ||
MenuItems | List |
||
MouseControlsEnabled | bool | ||
MouseEdgeEnabled | bool | ||
ResetCursorOnOpen | bool |
Méthode | Description | |
---|---|---|
AddInstructionalButton ( InstructionalButton button ) : void | ||
AddItem ( |
Add an item to the menu.
|
|
BindMenuToItem ( |
Bind a menu to a button. When the button is clicked that menu will open.
|
|
Clear ( ) : void |
Remove all items from the menu.
|
|
DisEnableControls ( bool enable ) : void |
Enable or disable all controls but the necessary to operate a menu.
|
|
DisableInstructionalButtons ( bool disable ) : void |
Enable or disable the instructional buttons.
|
|
Draw ( ) : void |
Draw the menu and all of it's components.
|
|
DrawBanner ( Rage g ) : void |
Draw your custom banner. To prevent flickering call it inside a Game.RawFrameRender event handler.
|
|
GetSafezoneBounds ( ) : Point |
Returns the safezone bounds in pixel, relative to the 1080pixel based system.
|
|
GetScreenResolutionMantainRatio ( ) : |
Returns the 1080pixels-based screen resolution while mantaining current aspect ratio.
|
|
GoBack ( ) : void |
Close or go back in a menu chain.
|
|
GoDown ( ) : void |
Go up the menu if the number of items is less than or equal to the maximum items on screen.
|
|
GoDownOverflow ( ) : void |
Go down the menu if the number of items is more than maximum items on screen.
|
|
GoLeft ( ) : void |
Go left on a MenuListItem.
|
|
GoRight ( ) : void |
Go right on a MenuListItem.
|
|
GoUp ( ) : void |
Go up the menu if the number of items is less than or equal to the maximum items on screen.
|
|
GoUpOverflow ( ) : void |
Go up the menu if the number of items is more than maximum items on screen.
|
|
HasControlJustBeenPressed ( |
Check whether a menucontrol has been pressed.
|
|
HasControlJustBeenReleaseed ( |
Check whether a menucontrol has been released.
|
|
IsControlBeingPressed ( |
Checks whether a menucontrol is being pressed and if selected item is UIListItem, uses UIListItem variables
|
|
IsMouseInBounds ( Point topLeft, |
Chech whether the mouse is inside the specified rectangle.
|
|
IsMouseInListItemArrows ( |
Function to get whether the cursor is in an arrow space, or in label of an MenuListItem.
|
|
ProcessControl ( Keys key = Keys.None ) : void |
Process control-stroke. Call this in the Game.FrameRender event or in a loop.
|
|
ProcessKey ( Keys key ) : void |
Process keystroke. Call this in the Game.FrameRender event or in a loop.
|
|
ProcessMouse ( ) : void |
Process the mouse's position and check if it's hovering over any Element. Call this in Game.FrameRender or in a loop.
|
|
RefreshIndex ( ) : void |
Reset the current selected item to 0. Use this after you add or remove items dynamically.
|
|
ReleaseMenuFromItem ( |
Remove menu binding from button.
|
|
RemoveInstructionalButton ( InstructionalButton button ) : void | ||
RemoveItemAt ( int index ) : void |
Remove an item at index n.
|
|
Reset ( bool resetLists, bool resetCheckboxes ) : void |
Sets the index of all lists to 0 and unchecks all the checkboxes.
|
|
ResetKey ( |
Remove all controls on a control.
|
|
SelectItem ( ) : void |
Activate the current selected item.
|
|
SetBannerType ( RAGENativeUI.Elements.ResRectangle rectangle ) : void |
Set the banner to your own Rectangle.
|
|
SetBannerType ( |
Set the banner to your own Sprite object.
|
|
SetBannerType ( Texture texture ) : void |
Set the banner to your own custom texture. Set it to null if you want to restore the banner.
|
|
SetKey ( |
Set a Rage.GameControl to control a menu. Can be multiple controls. This applies it to all indexes.
|
|
SetKey ( |
Set a Rage.GameControl to control a menu only on a specific index.
|
|
SetKey ( |
Set a key to control a menu. Can be multiple keys for each control.
|
|
SetMenuWidthOffset ( int widthOffset ) : void |
Change the menu's width. The width is calculated as DefaultWidth + WidthOffset, so a width offset of 10 would enlarge the menu by 10 pixels.
|
|
UIMenu ( string title, string subtitle ) : System |
Basic Menu constructor.
|
|
UIMenu ( string title, string subtitle, Point offset ) : System |
Basic Menu constructor with an offset.
|
|
UIMenu ( string title, string subtitle, Point offset, Texture customBanner ) : System |
Initialise a menu with a custom texture banner.
|
|
UIMenu ( string title, string subtitle, Point offset, string spriteLibrary, string spriteName ) : System |
Advanced Menu constructor that allows custom title banner.
|
|
UpdateScaleform ( ) : void |
Manually update the instructional buttons scaleform.
|
Méthode | Description | |
---|---|---|
CheckboxChange ( RAGENativeUI.Elements.UIMenuCheckboxItem sender, bool Checked ) : void | ||
IndexChange ( int newindex ) : void | ||
ItemSelect ( |
||
ListChange ( |
||
MenuChangeEv ( |
||
MenuCloseEv ( ) : void |
Méthode | Description | |
---|---|---|
DrawBanner ( GraphicsEventArgs e ) : void | ||
EnableCameraMovement ( ) : void | ||
FormatDescription ( string input ) : string |
Formats the input string so it doesn't go out of bounds of the description box.
|
|
RecaulculateDescriptionPosition ( ) : void |
public AddInstructionalButton ( InstructionalButton button ) : void | ||
button | InstructionalButton | |
Résultat | void |
public AddItem ( |
||
item | Item object to be added. Can be normal item, checkbox or list item. | |
Résultat | void |
public BindMenuToItem ( |
||
menuToBind | ||
itemToBindTo | ||
Résultat | void |
protected CheckboxChange ( RAGENativeUI.Elements.UIMenuCheckboxItem sender, bool Checked ) : void | ||
sender | RAGENativeUI.Elements.UIMenuCheckboxItem | |
Checked | bool | |
Résultat | void |
public static DisEnableControls ( bool enable ) : void | ||
enable | bool | |
Résultat | void |
public DisableInstructionalButtons ( bool disable ) : void | ||
disable | bool | |
Résultat | void |
public DrawBanner ( Rage g ) : void | ||
g | Rage | The |
Résultat | void |
public static GetSafezoneBounds ( ) : Point | ||
Résultat | Point |
public static GetScreenResolutionMantainRatio ( ) : |
||
Résultat |
public HasControlJustBeenPressed ( |
||
control | Control to check for. | |
key | Keys | Key if you're using keys. |
Résultat | bool |
public HasControlJustBeenReleaseed ( |
||
control | Control to check for. | |
key | Keys | Key if you're using keys. |
Résultat | bool |
protected IndexChange ( int newindex ) : void | ||
newindex | int | |
Résultat | void |
public IsControlBeingPressed ( |
||
control | ||
key | Keys | |
Résultat | bool |
public static IsMouseInBounds ( Point topLeft, |
||
topLeft | Point | top left point of your rectangle. |
boxSize | size of your rectangle. | |
Résultat | bool |
public IsMouseInListItemArrows ( |
||
item | What item to check | |
topLeft | Point | top left point of the item. |
safezone | Point | safezone size. |
Résultat | int |
protected ItemSelect ( |
||
selecteditem | ||
index | int | |
Résultat | void |
protected ListChange ( |
||
sender | ||
newindex | int | |
Résultat | void |
protected MenuChangeEv ( |
||
newmenu | ||
forward | bool | |
Résultat | void |
public ProcessControl ( Keys key = Keys.None ) : void | ||
key | Keys | |
Résultat | void |
public ReleaseMenuFromItem ( |
||
releaseFrom | Button to release from. | |
Résultat | bool |
public RemoveInstructionalButton ( InstructionalButton button ) : void | ||
button | InstructionalButton | |
Résultat | void |
public RemoveItemAt ( int index ) : void | ||
index | int | Index to remove the item at. |
Résultat | void |
public Reset ( bool resetLists, bool resetCheckboxes ) : void | ||
resetLists | bool | If true the index of all lists will be set to 0. |
resetCheckboxes | bool | If true all the checkboxes will be unchecked. |
Résultat | void |
public SetBannerType ( RAGENativeUI.Elements.ResRectangle rectangle ) : void | ||
rectangle | RAGENativeUI.Elements.ResRectangle | UIResRectangle object. Position and size does not matter. |
Résultat | void |
public SetBannerType ( |
||
spriteBanner | Sprite object. The position and size does not matter. | |
Résultat | void |
public SetBannerType ( Texture texture ) : void | ||
texture | Texture | Rage.Texture object |
Résultat | void |
public SetKey ( |
||
control | ||
gtaControl | GameControl | |
Résultat | void |
public SetKey ( |
||
control | ||
gtaControl | GameControl | |
controlIndex | int | |
Résultat | void |
public SetKey ( |
||
control | ||
keyToSet | Keys | |
Résultat | void |
public SetMenuWidthOffset ( int widthOffset ) : void | ||
widthOffset | int | New width offset. |
Résultat | void |
public UIMenu ( string title, string subtitle ) : System | ||
title | string | Title that appears on the big banner. |
subtitle | string | Subtitle that appears in capital letters in a small black bar. |
Résultat | System |
public UIMenu ( string title, string subtitle, Point offset ) : System | ||
title | string | Title that appears on the big banner. |
subtitle | string | Subtitle that appears in capital letters in a small black bar. Set to "" if you dont want a subtitle. |
offset | Point | Point object with X and Y data for offsets. Applied to all menu elements. |
Résultat | System |
public UIMenu ( string title, string subtitle, Point offset, Texture customBanner ) : System | ||
title | string | Title that appears on the big banner. Set to "" if you don't want a title. |
subtitle | string | Subtitle that appears in capital letters in a small black bar. Set to "" if you dont want a subtitle. |
offset | Point | Point object with X and Y data for offsets. Applied to all menu elements. |
customBanner | Texture | Your custom Rage.Texture. |
Résultat | System |
public UIMenu ( string title, string subtitle, Point offset, string spriteLibrary, string spriteName ) : System | ||
title | string | Title that appears on the big banner. Set to "" if you are using a custom banner. |
subtitle | string | Subtitle that appears in capital letters in a small black bar. |
offset | Point | Point object with X and Y data for offsets. Applied to all menu elements. |
spriteLibrary | string | Sprite library name for the banner. |
spriteName | string | Sprite name for the banner. |
Résultat | System |