Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

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.

SET_RIGHT_BADGE

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

Example:

  • 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:

result


SET_RIGHT_LABEL

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

Example:

  • C#
NativeUIScaleform.CallFunction("SET_RIGHT_LABEL", 0, "Right Label");
  • Lua
BeginScaleformMovieMethod(scaleformUI, "SET_RIGHT_LABEL")
ScaleformMovieMethodAddParamInt(0)
ScaleformMovieMethodAddParamTextureNameString("Right Label")
EndScaleformMovieMethod()

Result:

result


SET_LEFT_LABEL

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

Example:

  • C#
NativeUIScaleform.CallFunction("SET_LEFT_LABEL", 0, "Left Label");
  • Lua
BeginScaleformMovieMethod(scaleformUI, "SET_LEFT_LABEL")
ScaleformMovieMethodAddParamInt(0)
ScaleformMovieMethodAddParamTextureNameString("Left Label")
EndScaleformMovieMethod()

SET_ITEM_LABELS

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

Example:

  • 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()

ADD_ITEM_TO_ITEMLIST

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

Example:

  • C#
NativeUIScaleform.CallFunction("ADD_ITEM_TO_ITEMLIST", 0, "accept");
  • Lua
BeginScaleformMovieMethod(scaleformUI, "ADD_ITEM_TO_ITEMLIST")
ScaleformMovieMethodAddParamInt(0)
ScaleformMovieMethodAddParamTextureNameString("accept")
EndScaleformMovieMethod()

REMOVE_ITEM_FROM_ITEMLIST

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

Example:

  • C#
NativeUIScaleform.CallFunction("REMOVE_ITEM_FROM_ITEMLIST", 0, 0);
  • Lua
BeginScaleformMovieMethod(scaleformUI, "REMOVE_ITEM_FROM_ITEMLIST")
ScaleformMovieMethodAddParamInt(0)
ScaleformMovieMethodAddParamInt(0)
EndScaleformMovieMethod()

SET_CURRENT_ITEM

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!