-
Notifications
You must be signed in to change notification settings - Fork 2
ADD_PANEL
Let's take a look at the panels available!
Like for the ADD_ITEM function, ADD_PANEL have some common needed parameters for all panels.
| Parameters | TYPE | Optional | Description |
|---|---|---|---|
| item | Int |
☒ | The item's index in menu |
| id | Int |
☒ | The panel's type |
| Returns | VOID |
|---|
The first panel we all know, it comes in 2 variants: hair and makeup colors combinations.
| Parameters | TYPE | Optional | Description |
|---|---|---|---|
| item | Int |
☒ | The item's index |
| id | Int |
☒ | The panel's type (id = 0)
|
| title | String |
☒ | The panel's title |
| type | Int |
☒ | The panel's variant (0 = hair, 1 = makeup)
|
| firstIndex | Int |
☒ | panel's starting index |
- C#
NativeUIScaleform.CallFunction("ADD_PANEL", 0, 0, "Title", 0, 0);- Lua
BeginScaleformMovieMethod(scaleformUI, "ADD_PANEL")
ScaleformMovieMethodAddParamInt(0) -- Item 0
ScaleformMovieMethodAddParamInt(0) -- UIMenuColorPanel
ScaleformMovieMethodAddParamTextureNameString("Title")
ScaleformMovieMethodAddParamInt(0) -- Hair variant
ScaleformMovieMethodAddParamInt(0) -- color index 0
EndScaleformMovieMethod()Result:
Adds a customizable panel that will act similar as the ProgressItem.
| Parameters | TYPE | Optional | Description |
|---|---|---|---|
| item | Int |
☒ | The item's index |
| id | Int |
☒ | The panel's type (id = 1)
|
| title | String |
☒ | The panel's title |
| left_label | String |
☒ | The panel's left label (usually "0%") |
| right_label | String |
☒ | The panel's right label (usually "100%") |
| startIndex | Int |
☒ | panel's starting index (0 -> 100) |
- C#
NativeUIScaleform.CallFunction("ADD_PANEL", 0, 1, "Title", "0%", "100%", 50);- Lua
BeginScaleformMovieMethod(scaleformUI, "ADD_PANEL")
ScaleformMovieMethodAddParamInt(0) -- Item 0
ScaleformMovieMethodAddParamInt(1) -- UIMenuPercentagePanel
ScaleformMovieMethodAddParamTextureNameString("Title")
ScaleformMovieMethodAddParamTextureNameString("0%")
ScaleformMovieMethodAddParamTextureNameString("100%")
ScaleformMovieMethodAddParamInt(50) -- Start value
EndScaleformMovieMethod()Result:
This panel has 2 variants: classic grid panel with x,y coordinates and horizontal grid panel with y fixed at 0 and variable x.
| Parameters | TYPE | Optional | Description |
|---|---|---|---|
| item | Int |
☒ | The item's index |
| id | Int |
☒ | The panel's type (id = 2)
|
| top_label | String |
☒ | The panel's top label (leave empty for horizontal) |
| right_label | String |
☒ | The panel's right label |
| left_label | String |
☒ | The panel's left label |
| bottom_label | String |
☒ | The panel's bottom label (leave empty for horizontal) |
| startIndex_x | Float |
☒ | panel's starting x coordinate (0 -> 1) |
| startIndex_y | Float |
☒ | panel's starting y coordinate (0 -> 1) |
| animate | Bool |
☒ | if true the dot will be animated |
| horizontal | Int |
☒ | 0 = classic variant, 1 = horizontal variant |
- C#
NativeUIScaleform.CallFunction("ADD_PANEL", 0, 2, "Top", "Right", "Left", "Bottom", 0.5f, 0.5f, true, 0);
NativeUIScaleform.CallFunction("ADD_PANEL", 0, 2, "", "Right", "Left", "", 1, 0, true, 1);- Lua
BeginScaleformMovieMethod(scaleformUI, "ADD_PANEL")
ScaleformMovieMethodAddParamInt(0) -- Item 0
ScaleformMovieMethodAddParamInt(2) -- UIMenuGridPanel
ScaleformMovieMethodAddParamTextureNameString("Top")
ScaleformMovieMethodAddParamTextureNameString("Right")
ScaleformMovieMethodAddParamTextureNameString("Left")
ScaleformMovieMethodAddParamTextureNameString("Bottom")
ScaleformMovieMethodAddParamFloat(0.5) -- X
ScaleformMovieMethodAddParamFloat(0.5) -- Y
ScaleformMovieMethodAddParamBool(true) -- animate
ScaleformMovieMethodAddParamInt(0) -- classic grid
EndScaleformMovieMethod()
BeginScaleformMovieMethod(scaleformUI, "ADD_PANEL")
ScaleformMovieMethodAddParamInt(0) -- Item 0
ScaleformMovieMethodAddParamInt(2) -- UIMenuGridPanel
ScaleformMovieMethodAddParamTextureNameString("")
ScaleformMovieMethodAddParamTextureNameString("Right")
ScaleformMovieMethodAddParamTextureNameString("Left")
ScaleformMovieMethodAddParamTextureNameString("")
ScaleformMovieMethodAddParamFloat(0.5) -- X
ScaleformMovieMethodAddParamFloat(0) -- Y
ScaleformMovieMethodAddParamBool(true) -- animate
ScaleformMovieMethodAddParamInt(1) -- Horizontal grid
EndScaleformMovieMethod()Result:
The only panel that is not interactable as it shows only statistics based on values you give to it.
| Parameters | TYPE | Optional | Description |
|---|---|---|---|
| item | Int |
☒ | The item's index in menu |
| id | Int |
☒ | The panel's type (id = 3)
|
- C#
NativeUIScaleform.CallFunction("ADD_PANEL", 0, 3);- Lua
BeginScaleformMovieMethod(scaleformUI, "ADD_PANEL")
ScaleformMovieMethodAddParamInt(0) -- Item 0
ScaleformMovieMethodAddParamInt(3) -- UIMenuStatsPanel
EndScaleformMovieMethod()This will only create the container and add it to the item, to add statistics you need 2 more functions: ADD_STATISTIC_TO_PANEL and SET_PANEL_STATS_ITEM_VALUE
This function will add a new line to the container with a title and a starting value (default set to 0)
| Parameters | TYPE | Optional | Description |
|---|---|---|---|
| item | Int |
☒ | The item's index in menu |
| panel | Int |
☒ | The panel's index in the item's panels list |
| title | String |
☒ | The statistic's title |
| value | Int |
☑ | The statistic's value ( 0 -> 100, if not specified will default to 0) |
- C#
NativeUIScaleform.CallFunction("ADD_STATISTIC_TO_PANEL", 0, 0, "Statistic 1", 75);- Lua
BeginScaleformMovieMethod(scaleformUI, "ADD_PANEL")
ScaleformMovieMethodAddParamInt(0) -- Item 0
ScaleformMovieMethodAddParamInt(0) -- Panel 0
ScaleformMovieMethodAddParamTextureNameString("Statistic 1")
ScaleformMovieMethodAddParamInt(75)
EndScaleformMovieMethod()If we already have a statistic but we want to change its value, we call this function.
| Parameters | TYPE | Optional | Description |
|---|---|---|---|
| item | Int |
☒ | The item's index in menu |
| panel | Int |
☒ | The panel's index in the item's panels list |
| line | Int |
☒ | The panel's stat index in the panel's list |
| value | Int |
☒ | The statistic's value we wanna set |
- C#
NativeUIScaleform.CallFunction("SET_PANEL_STATS_ITEM_VALUE", 0, 0, 0, 50);- Lua
BeginScaleformMovieMethod(scaleformUI, "ADD_PANEL")
ScaleformMovieMethodAddParamInt(0) -- Item 0
ScaleformMovieMethodAddParamInt(0) -- Panel 0
ScaleformMovieMethodAddParamInt(0) -- Line 0
ScaleformMovieMethodAddParamInt(50)
EndScaleformMovieMethod()Result:
by manups4e



