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
CREATE_MENU
Leonardo Emanuele edited this page Oct 24, 2021
·
5 revisions
This is the first to be called if you want to make your menu.
Parameters | TYPE | Optional | Description |
---|---|---|---|
title | String |
☑ | the main title |
subtitle | String |
☑ | the blue subtitle |
txd | String |
☑ | custom texture dictionary |
txn | String |
☑ | custom texture name |
Returns | VOID |
---|
if no txd and txn are set the menu will try to load "commonmenu" and "interaction_bgd" automatically
EXAMPLE:
- C#:
while (!HasStreamedTextureDictLoaded("commonmenu"))
{
await BaseScript.Delay(0);
RequestStreamedTextureDict("commonmenu", true);
}
while (!NativeUIScaleform.IsLoaded) await BaseScript.Delay(0);
NativeUIScaleform.CallFunction("CREATE_MENU", "Main Title", "I'm a subtitle");
- Lua
while(not HasStreamedTextureDictLoaded("commonmenu")) do
Wait(0)
RequestStreamedTextureDict("commonmenu", true)
end
while(not HasScaleformMovieLoaded(scaleformUI)) do
Wait(0)
end
BeginScaleformMovieMethod(scaleformUI, "CREATE_MENU")
ScaleformMovieMethodAddParamTextureNameString("Main Title")
ScaleformMovieMethodAddParamTextureNameString("I'm a subtitle")
EndScaleformMovieMethod()
by manups4e