using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using HarmonyLib;
using Microsoft.CodeAnalysis;
using UI.Settings;
using UnityEngine.UIElements;
using VoidManager;
using VoidManager.MPModChecks;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyFileVersion("1.1.1.4369")]
[assembly: AssemblyInformationalVersion("1.1.1+11117bbdd7")]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("HobosInSpace")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyDescription("Increases Range of FOV slider")]
[assembly: AssemblyProduct("Increase_FOV")]
[assembly: AssemblyTitle("IncreaseFOV")]
[assembly: AssemblyMetadata("RepositoryUrl", "https://github.com/bls220/VoidCrew_IncreaseFOV")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.1.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)]
internal sealed class NullableAttribute : Attribute
{
public readonly byte[] NullableFlags;
public NullableAttribute(byte P_0)
{
NullableFlags = new byte[1] { P_0 };
}
public NullableAttribute(byte[] P_0)
{
NullableFlags = P_0;
}
}
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)]
internal sealed class NullableContextAttribute : Attribute
{
public readonly byte Flag;
public NullableContextAttribute(byte P_0)
{
Flag = P_0;
}
}
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
internal sealed class RefSafetyRulesAttribute : Attribute
{
public readonly int Version;
public RefSafetyRulesAttribute(int P_0)
{
Version = P_0;
}
}
}
[GeneratedCode("Nerdbank.GitVersioning.Tasks", "3.6.141.978")]
[ExcludeFromCodeCoverage]
internal static class ThisAssembly
{
internal const string AssemblyConfiguration = "Debug";
internal const string AssemblyFileVersion = "1.1.1.4369";
internal const string AssemblyInformationalVersion = "1.1.1+11117bbdd7";
internal const string AssemblyName = "IncreaseFOV";
internal const string AssemblyTitle = "IncreaseFOV";
internal const string AssemblyVersion = "1.1.0.0";
internal static readonly DateTime GitCommitDate = new DateTime(638603146260000000L, DateTimeKind.Utc);
internal const string GitCommitId = "11117bbdd71f959c99b4b91057f4aa87cf4b33a8";
internal const bool IsPrerelease = false;
internal const bool IsPublicRelease = true;
internal const string PluginAuthors = "SubHobo";
internal const string PluginDescription = "Increases Range of FOV slider";
internal const string PluginGUID = "IncreaseFOV";
internal const string PluginTitle = "Increase FOV";
internal const string RootNamespace = "IncreaseFOV";
}
namespace IncreaseFOV
{
[BepInPlugin("IncreaseFOV", "Increase FOV", "1.1.1.4369")]
[BepInProcess("Void Crew.exe")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class Plugin : BaseUnityPlugin
{
private static readonly Harmony _harmony = new Harmony("IncreaseFOV");
private void Awake()
{
((BaseUnityPlugin)this).Logger.LogDebug((object)"Plugin IncreaseFOV is loading!");
_harmony.PatchAll();
((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin IncreaseFOV is loaded!");
}
}
[HarmonyPatch(typeof(SettingFov))]
internal static class SettingFovPatch
{
[HarmonyPostfix]
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
private static void Constructor_Postfix(ref ISetting[] ____setting)
{
//IL_0010: Unknown result type (might be due to invalid IL or missing references)
//IL_0016: Expected O, but got Unknown
____setting = (ISetting[])(object)new ISetting[1] { (ISetting)new IntSetting(90, 70, 120) };
}
}
[HarmonyPatch(typeof(SettingsUIPanel))]
internal static class SettingsUIPanelPatch
{
[HarmonyPostfix]
[HarmonyPatch("OnInitialize")]
private static void OnInitialize_Postfix(UIDocument ____doc)
{
//IL_003c: Unknown result type (might be due to invalid IL or missing references)
//IL_0042: Expected O, but got Unknown
//IL_0093: Unknown result type (might be due to invalid IL or missing references)
//IL_009a: Expected O, but got Unknown
VisualElement val = UQueryExtensions.Q(____doc.rootVisualElement, "GraphicsSettingsPanel", (string)null);
SliderIntSettingEntryVE val2 = UQueryExtensions.Q<SliderIntSettingEntryVE>(val, "Fov", (string)null);
FieldInfo fieldInfo = AccessTools.Field(typeof(SliderIntSettingEntryVE), "setting");
IntSetting val3 = (IntSetting)fieldInfo.GetValue(val2);
MethodInfo methodInfo = AccessTools.PropertySetter(typeof(SliderIntSettingEntryVE), "HighValue");
methodInfo.Invoke(val2, new object[1] { ((ClampedSetting<int>)(object)val3).MaxValue });
FieldInfo fieldInfo2 = AccessTools.Field(typeof(SliderIntSettingEntryVE), "slider");
SliderInt val4 = (SliderInt)fieldInfo2.GetValue(val2);
((BaseSlider<int>)(object)val4).highValue = ((ClampedSetting<int>)(object)val3).MaxValue;
((SettingEntryVE)val2).Reload();
}
}
public class VoidManagerPlugin : VoidPlugin
{
public override MultiplayerType MPType => (MultiplayerType)3;
public override string Author => "SubHobo";
public override string Description => "Increases Range of FOV slider";
}
}