using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Configuration;
using BepInEx.Logging;
using BepInEx.NET.Common;
using BepInExResoniteShim;
using Elements.Core;
using HarmonyLib;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(/*Could not decode attribute arguments.*/)]
[assembly: TargetFramework(".NETCoreApp,Version=v10.0", FrameworkDisplayName = ".NET 10.0")]
[assembly: AssemblyCompany("art0007i")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+e9e0ae6eb578fca42212211e92d091a53a3d09e6")]
[assembly: AssemblyProduct("ConsistentDashboard")]
[assembly: AssemblyTitle("ConsistentDashboard")]
[assembly: AssemblyMetadata("RepositoryUrl", "https://github.com/art0007i/ConsistentDashboard")]
[assembly: AssemblyVersion("1.0.0.0")]
[module: RefSafetyRules(11)]
namespace ConsistentDashboard;
[ResonitePlugin("art0007i.ConsistentDashboard", "ConsistentDashboard", "1.0.0", "art0007i", "https://github.com/art0007i/ConsistentDashboard")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class Plugin : BasePlugin
{
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
private class ConsistentDashboardPatch
{
public static bool Prefix(ref bool __result)
{
if (!Enabled.Value)
{
return true;
}
__result = false;
return false;
}
}
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
private class ConsistentDashboardResolutionPatch
{
public static bool Prefix(ref int2 __result)
{
//IL_0014: Unknown result type (might be due to invalid IL or missing references)
//IL_0019: Unknown result type (might be due to invalid IL or missing references)
if (!Enabled.Value)
{
return true;
}
__result = Resolution.Value;
return false;
}
}
internal static ManualLogSource Log;
internal static ConfigEntry<bool> Enabled;
internal static ConfigEntry<int2> Resolution;
public override void Load()
{
//IL_0045: Unknown result type (might be due to invalid IL or missing references)
Log = ((BasePlugin)this).Log;
Enabled = ((BasePlugin)this).Config.Bind<bool>("General", "Enabled", true, "When enabled the mod will set the dashboard size to a set resolution.");
Resolution = ((BasePlugin)this).Config.Bind<int2>("General", "Resolution", new int2(2560, 1440), "<color=orange>⚠Messing with this option may result in brekaing your dash.⚠</color> The resolution the dashboard will be set to while the mod is enabled.");
((BasePlugin)this).HarmonyInstance.PatchAll();
}
}
public static class PluginMetadata
{
public const string GUID = "art0007i.ConsistentDashboard";
public const string NAME = "ConsistentDashboard";
public const string VERSION = "1.0.0";
public const string AUTHORS = "art0007i";
public const string REPOSITORY_URL = "https://github.com/art0007i/ConsistentDashboard";
}