Instructional buttons for popup

This commit is contained in:
sardelka9515
2022-08-25 00:58:21 +08:00
parent eab64f9254
commit faaa856aa5
4 changed files with 16 additions and 5 deletions

View File

@ -4,6 +4,7 @@ using LemonUI.Elements;
using LemonUI.Menus;
using LemonUI.Scaleform;
using System.Drawing;
using GTA.Native;
namespace RageCoop.Client.Menus
{
@ -96,6 +97,16 @@ namespace RageCoop.Client.Menus
{
Game.DisableAllControlsThisFrame();
MenuPool.Process();
var scaleform = new Scaleform("instructional_buttons");
scaleform.CallFunction("CLEAR_ALL");
scaleform.CallFunction("TOGGLE_MOUSE_BUTTONS", 0);
scaleform.CallFunction("CREATE_CONTAINER");
scaleform.CallFunction("SET_DATA_SLOT", 0, Function.Call<string>((Hash)0x0499D7B09FC9B407, 2, (int)Control.FrontendAccept, 0), "Continue");
scaleform.CallFunction("SET_DATA_SLOT", 1, Function.Call<string>((Hash)0x0499D7B09FC9B407, 2, (int)Control.FrontendCancel, 0), "Cancel");
scaleform.CallFunction("DRAW_INSTRUCTIONAL_BUTTONS", -1);
scaleform.Render2D();
if (Game.IsControlJustPressed(Control.FrontendAccept))
{
PopUp.Visible=false;

View File

@ -78,7 +78,7 @@ namespace RageCoop.Client
PlayerList.Cleanup();
EntityPool.AddPlayer();
if (publicKey==null && !string.IsNullOrEmpty(password) && !Menus.CoopMenu.ShowPopUp("Press Enter to confirm, Esc to Cancel", "WARNING", "Server's IP can be spoofed when using direct connection, do you wish to continue?", "", true))
if (publicKey==null && !string.IsNullOrEmpty(password) && !Menus.CoopMenu.ShowPopUp("", "WARNING", "Server's IP can be spoofed when using direct connection, do you wish to continue?", "", true))
{
IsConnecting=false;
return;

View File

@ -16,7 +16,7 @@ using System.Resources;
// Version informationr(
[assembly: AssemblyVersion("1.5.3.137")]
[assembly: AssemblyFileVersion("1.5.3.137")]
[assembly: AssemblyVersion("1.5.3.139")]
[assembly: AssemblyFileVersion("1.5.3.139")]
[assembly: NeutralResourcesLanguageAttribute( "en-US" )]

View File

@ -15,7 +15,7 @@ using System.Resources;
[assembly: AssemblyCulture("")]
// Version information
[assembly: AssemblyVersion("1.5.3.109")]
[assembly: AssemblyFileVersion("1.5.3.109")]
[assembly: AssemblyVersion("1.5.3.113")]
[assembly: AssemblyFileVersion("1.5.3.113")]
[assembly: NeutralResourcesLanguageAttribute( "en-US" )]