This repository was archived by the owner on Jun 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
ITEM specific functions
Leonardo Emanuele edited this page Oct 24, 2021
·
1 revision
This page will look at the specific items function to handle and change items behaviour.
This function will set a badge for the specified UIMenuItem
| Parameters | TYPE | Optional | Description |
|---|---|---|---|
| item | Int |
☒ | The item's index |
| txd | String |
☒ | The dictionary |
| icon | String |
☒ | the sprite |
| Returns | VOID |
|---|
- C#
NativeUIScaleform.CallFunction("SET_RIGHT_BADGE", 0, "commonmenu", "shop_new_star");- Lua
BeginScaleformMovieMethod(scaleformUI, "SET_RIGHT_BADGE")
ScaleformMovieMethodAddParamInt(0)
ScaleformMovieMethodAddParamTextureNameString("commonmenu")
ScaleformMovieMethodAddParamTextureNameString("shop_new_star")
EndScaleformMovieMethod()Result:
This function will set a right label for the specified UIMenuItem
| Parameters | TYPE | Optional | Description |
|---|---|---|---|
| item | Int |
☒ | The item's index |
| r_label | String |
☒ | The right label |
| Returns | VOID |
|---|
- C#
NativeUIScaleform.CallFunction("SET_RIGHT_LABEL", 0, "Right Label");- Lua
BeginScaleformMovieMethod(scaleformUI, "SET_RIGHT_LABEL")
ScaleformMovieMethodAddParamInt(0)
ScaleformMovieMethodAddParamTextureNameString("Right Label")
EndScaleformMovieMethod()Result:
This function will change any items left label
| Parameters | TYPE | Optional | Description |
|---|---|---|---|
| item | Int |
☒ | The item's index |
| l_label | String |
☒ | The label |
| Returns | VOID |
|---|
- C#
NativeUIScaleform.CallFunction("SET_LEFT_LABEL", 0, "Left Label");- Lua
BeginScaleformMovieMethod(scaleformUI, "SET_LEFT_LABEL")
ScaleformMovieMethodAddParamInt(0)
ScaleformMovieMethodAddParamTextureNameString("Left Label")
EndScaleformMovieMethod()This function will change both left and right labels
| Parameters | TYPE | Optional | Description |
|---|---|---|---|
| item | Int |
☒ | The item's index |
| l_label | String |
☒ | The left label |
| r_label | String |
☒ | The right label |
| Returns | VOID |
|---|
- C#
NativeUIScaleform.CallFunction("SET_ITEM_LABELS", 0, "Left Label", "Right Label");- Lua
BeginScaleformMovieMethod(scaleformUI, "SET_ITEM_LABELS")
ScaleformMovieMethodAddParamInt(0)
ScaleformMovieMethodAddParamTextureNameString("Left Label")
ScaleformMovieMethodAddParamTextureNameString("Right Label")
EndScaleformMovieMethod()This function will add an item at the end of a ListItem list
| Parameters | TYPE | Optional | Description |
|---|---|---|---|
| listItem | Int |
☒ | The ListItem's index |
| item | String |
☒ | The item that will be added |
| Returns | VOID |
|---|
- C#
NativeUIScaleform.CallFunction("ADD_ITEM_TO_ITEMLIST", 0, "accept");- Lua
BeginScaleformMovieMethod(scaleformUI, "ADD_ITEM_TO_ITEMLIST")
ScaleformMovieMethodAddParamInt(0)
ScaleformMovieMethodAddParamTextureNameString("accept")
EndScaleformMovieMethod()This function will remove an item at the specified index of a ListItem list
| Parameters | TYPE | Optional | Description |
|---|---|---|---|
| listItem | Int |
☒ | The ListItem's index |
| index | Int |
☒ | The item's index in the list that will be removed |
| Returns | VOID |
|---|
- C#
NativeUIScaleform.CallFunction("REMOVE_ITEM_FROM_ITEMLIST", 0, 0);- Lua
BeginScaleformMovieMethod(scaleformUI, "REMOVE_ITEM_FROM_ITEMLIST")
ScaleformMovieMethodAddParamInt(0)
ScaleformMovieMethodAddParamInt(0)
EndScaleformMovieMethod()This function sets the current highlighted item at a different index.
| Parameters | TYPE | Optional | Description |
|---|---|---|---|
| index | Int |
☒ | The item's index |
| Returns | VOID |
|---|
- C#
NativeUIScaleform.CallFunction("SET_CURRENT_ITEM", 0);- Lua
BeginScaleformMovieMethod(scaleformUI, "SET_CURRENT_ITEM")
ScaleformMovieMethodAddParamInt(0)
EndScaleformMovieMethod()MORE FUNCTION WILL BE ADDED SHORTLY!
by manups4e

