manups4e / ScaleformUI

ScaleformUI is a GTA menu styled API made with custom Scaleforms to be lighter, faster and visually better
Other
141 stars 49 forks source link

feat: mono v2 update #151

Closed Local9 closed 1 year ago

Local9 commented 1 year ago

Missing Alignment, Text, and Rectangle in mono v2 -> https://github.com/thorium-cfx/mono_v2_get_started/issues/16

Local9 commented 1 year ago

PR now builds, those elements we should update and just have the UIResRectangle and UIResText do them instead.

manups4e commented 1 year ago

image

when i tried opening the menu

manups4e commented 1 year ago

sorry closed by mistake 😅

manups4e commented 1 year ago

also i get this on resource start

[     55781] [FiveM_b2802_GT]             MainThrd/ Failed to instantiate instance of script ScaleformUI.ScaleformUI: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MethodAccessException: Transparent method CitizenFX.Core.EventHandlerSet:op_Addition (CitizenFX.Core.EventHandlerSet,System.Delegate) cannot call Critical method CitizenFX.Core.Func:Create (object,System.Reflection.MethodInfo).
[     55781] [FiveM_b2802_GT]             MainThrd/   at System.Security.SecurityManager.ThrowException (System.Exception ex) [0x00000] in <b575c7ac070e41ffa0751333b6ac9f42>:0 
[     55781] [FiveM_b2802_GT]             MainThrd/   at CitizenFX.Core.EventHandlerSet.op_Addition (CitizenFX.Core.EventHandlerSet entry, System.Delegate deleg) [0x00000] in C:\gl\builds\master\fivem\code\client\clrcore-v2\Interop\EventsManager.cs:184 
[     55781] [FiveM_b2802_GT]             MainThrd/   at ScaleformUI.ScaleformUI..ctor () [0x000b7] in G:\Progetti\source\repos\manups4e\ScaleformUI_V2\ScaleformUI_Csharp\Scaleforms\ScaleformUI\ScaleformUI.cs:43 
[     55781] [FiveM_b2802_GT]             MainThrd/   at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
[     55781] [FiveM_b2802_GT]             MainThrd/   at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in <b575c7ac070e41ffa0751333b6ac9f42>:0 
Local9 commented 1 year ago

Closing this as my forks all fucked up, least we can see the work needed

manups4e commented 1 year ago

Yeah we must wait for things to settle in new mono