Skip to content

Commit

Permalink
Merge pull request #274 from freedy69/patch-2
Browse files Browse the repository at this point in the history
Add gallery options to Recording Options submenu
  • Loading branch information
TomGrobbe authored Mar 4, 2023
2 parents 52f9d24 + 2f598a5 commit f9737aa
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion vMenu/menus/Recording.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand All @@ -21,12 +21,20 @@ public class Recording

private void CreateMenu()
{
AddTextEntryByHash(0x86F10CE6, "Upload To Cfx.re Forum"); // Replace the "Upload To Social Club" button in gallery
AddTextEntry("ERROR_UPLOAD", "Are you sure you want to upload this photo to Cfx.re forum?"); // Replace the warning message text for uploading

// Create the menu.
menu = new Menu("Recording", "Recording Options");

MenuItem takePic = new MenuItem("Take Photo", "Takes a photo and saves it to the Pause Menu gallery.");
MenuItem openPmGallery = new MenuItem("Open Gallery", "Opens the Pause Menu gallery.");
MenuItem startRec = new MenuItem("Start Recording", "Start a new game recording using GTA V's built in recording.");
MenuItem stopRec = new MenuItem("Stop Recording", "Stop and save your current recording.");
MenuItem openEditor = new MenuItem("Rockstar Editor", "Open the rockstar editor, note you might want to quit the session first before doing this to prevent some issues.");

menu.AddMenuItem(takePic);
menu.AddMenuItem(openPmGallery);
menu.AddMenuItem(startRec);
menu.AddMenuItem(stopRec);
menu.AddMenuItem(openEditor);
Expand All @@ -44,6 +52,16 @@ private void CreateMenu()
StartRecording(1);
}
}
else if (item == openPmGallery)
{
ActivateFrontendMenu((uint)GetHashKey("FE_MENU_VERSION_MP_PAUSE"), true, 3);
}
else if (item == takePic)
{
BeginTakeHighQualityPhoto();
SaveHighQualityPhoto(-1);
FreeMemoryForHighQualityPhoto();
}
else if (item == stopRec)
{
if (!IsRecording())
Expand Down

0 comments on commit f9737aa

Please sign in to comment.