using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using Groups; using HarmonyLib; using JetBrains.Annotations; using Jotunn; using Jotunn.Configs; using Jotunn.Entities; using Jotunn.Extensions; using Jotunn.Managers; using Jotunn.Utils; using Microsoft.CodeAnalysis; using SkillsReworked.Bootstrap; using SkillsReworked.Commands; using SkillsReworked.Infrastructure.Networking; using SkillsReworked.Integration.Groups; using SkillsReworked.Integration.SkillManager; using SkillsReworked.Persistence; using SkillsReworked.Systems.Common; using SkillsReworked.Systems.Costs; using SkillsReworked.Systems.Prestige; using SkillsReworked.Systems.Progression; using SkillsReworked.Systems.Rebirth; using SkillsReworked.Systems.Reset; using SkillsReworked.Systems.Rewards; using SkillsReworked.UI.Dialogs; using SkillsReworked.UI.LevelHud; using SkillsReworked.UI.SkillPanel; using TMPro; using UnityEngine; using UnityEngine.Events; using UnityEngine.UI; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: IgnoresAccessChecksTo("assembly_guiutils")] [assembly: IgnoresAccessChecksTo("assembly_utils")] [assembly: IgnoresAccessChecksTo("assembly_valheim")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyCompany("SkillsReworked")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+da0c81f704e40697f68447d9ff0f7bb4db43ec87")] [assembly: AssemblyProduct("SkillsReworked")] [assembly: AssemblyTitle("SkillsReworked")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.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.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace SkillsReworked.UI.SkillPanel { public class SkillRowController : MonoBehaviour { public static readonly List ActiveControllers = new List(); public SkillType SkillType; public Text CounterText; internal GameObject PlusButtonObj; internal GameObject MinusButtonObj; internal GameObject CounterTextObj; private void Awake() { ActiveControllers.Add(this); } private void OnDestroy() { ActiveControllers.Remove(this); } public void RefreshCounter() { //IL_0018: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)CounterText != (Object)null) { CounterText.text = SkillUiController.GetAllocated(SkillType).ToString(); } } public static void DestroyAll() { List list = new List(ActiveControllers); ActiveControllers.Clear(); foreach (SkillRowController item in list) { if (!((Object)(object)item == (Object)null)) { if ((Object)(object)item.PlusButtonObj != (Object)null) { Object.Destroy((Object)(object)item.PlusButtonObj); } if ((Object)(object)item.MinusButtonObj != (Object)null) { Object.Destroy((Object)(object)item.MinusButtonObj); } if ((Object)(object)item.CounterTextObj != (Object)null) { Object.Destroy((Object)(object)item.CounterTextObj); } Object.Destroy((Object)(object)item); } } } } public static class SkillRowDecorator { public static void AddButtons(RectTransform row, SkillType skillType) { //IL_00c1: Unknown result type (might be due to invalid IL or missing references) //IL_00c2: Unknown result type (might be due to invalid IL or missing references) //IL_00e3: Unknown result type (might be due to invalid IL or missing references) //IL_00e5: Unknown result type (might be due to invalid IL or missing references) //IL_00f1: Unknown result type (might be due to invalid IL or missing references) //IL_0112: Unknown result type (might be due to invalid IL or missing references) //IL_0114: Unknown result type (might be due to invalid IL or missing references) //IL_0120: Unknown result type (might be due to invalid IL or missing references) //IL_0141: Unknown result type (might be due to invalid IL or missing references) //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014f: Unknown result type (might be due to invalid IL or missing references) //IL_0165: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Unknown result type (might be due to invalid IL or missing references) //IL_01c8: Unknown result type (might be due to invalid IL or missing references) //IL_01d2: Expected O, but got Unknown //IL_01e6: Unknown result type (might be due to invalid IL or missing references) //IL_01f0: Expected O, but got Unknown //IL_0039: Unknown result type (might be due to invalid IL or missing references) //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_0070: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Unknown result type (might be due to invalid IL or missing references) //IL_009d: Unknown result type (might be due to invalid IL or missing references) //IL_00a7: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)row == (Object)null) { return; } Transform val = Utils.FindChild((Transform)(object)row, "name", (IterativeSearchType)0); RectTransform val2 = (RectTransform)(object)((val is RectTransform) ? val : null); if (val2 != null) { Rect rect = val2.rect; float width = ((Rect)(ref rect)).width; float num = Mathf.Min(width, 100f); if (num < width) { float num2 = val2.anchoredPosition.x - val2.pivot.x * width; val2.SetSizeWithCurrentAnchors((Axis)0, num); val2.anchoredPosition = new Vector2(num2 + val2.pivot.x * num, val2.anchoredPosition.y); } } SkillRowController skillRowController = ((Component)row).gameObject.AddComponent(); skillRowController.SkillType = skillType; Vector2 val3 = default(Vector2); ((Vector2)(ref val3))..ctor(0.5f, 0.5f); GameObject val4 = GUIManager.Instance.CreateButton("+", (Transform)(object)row, val3, val3, new Vector2(-10f, 0f), 24f, 24f); GameObject val5 = GUIManager.Instance.CreateButton("-", (Transform)(object)row, val3, val3, new Vector2(-35f, 0f), 24f, 24f); GameObject val6 = GUIManager.Instance.CreateText("0", (Transform)(object)row, val3, val3, new Vector2(25f, 0f), GUIManager.Instance.AveriaSerifBold, 16, GUIManager.Instance.ValheimOrange, true, Color.black, 30f, 20f, false); skillRowController.CounterText = val6.GetComponent(); skillRowController.PlusButtonObj = val4; skillRowController.MinusButtonObj = val5; skillRowController.CounterTextObj = val6; skillRowController.RefreshCounter(); SkillRowController ctrl = skillRowController; ((UnityEvent)val4.GetComponent