Skip to content

Commit

Permalink
added example for right picture in pause menu text tab
Browse files Browse the repository at this point in the history
  • Loading branch information
manups4e committed Apr 4, 2024
1 parent 502d214 commit 9f9cbf8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MenuExample/MenuExample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,11 @@ public async void PauseMenuShowcase(UIMenu _menu)
long bg_dui = API.CreateDui("https://giphy.com/embed/sxwk9hGlsULcYm6hDX", 1280, 720);
API.CreateRuntimeTextureFromDuiHandle(txd, "pausebigbg", API.GetDuiHandle(bg_dui));

long rightPic = API.CreateDui("https://i.giphy.com/sEU384ODAcnSg.webp", 288, 430);
API.CreateRuntimeTextureFromDuiHandle(txd, "rightPic", API.GetDuiHandle(rightPic));

basicTab.UpdateBackground("scaleformui", "pausebigbg");
basicTab.AddPicture("scaleformui", "rightPic");
basicTab.AddItem(new BasicTabItem("~y~Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat"));
basicTab.LabelsList[0].LabelFont = ScaleformFonts.HANDSTYLE_HEIST;
basicTab.AddItem(new BasicTabItem("~BLIP_INFO_ICON~ ~r~Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat"));
Expand Down

0 comments on commit 9f9cbf8

Please sign in to comment.