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.IgnoreSymbolStoreSequencePoints)] [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("Release")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+d7bda957fd8ac430b550d6978236f20e79d9ce39")] [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] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [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 BlinkingTextEffect : MonoBehaviour { public Text Target; public Color ColorA = Color.white; public Color ColorB = Color.white; public float Speed = 2f; private void Update() { //IL_0034: Unknown result type (might be due to invalid IL or missing references) //IL_003a: Unknown result type (might be due to invalid IL or missing references) //IL_0040: Unknown result type (might be due to invalid IL or missing references) if (!((Object)(object)Target == (Object)null)) { float num = (Mathf.Sin(Time.unscaledTime * Speed) + 1f) * 0.5f; ((Graphic)Target).color = Color.Lerp(ColorA, ColorB, num); } } } 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_0015: 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_00a3: Unknown result type (might be due to invalid IL or missing references) //IL_00a4: Unknown result type (might be due to invalid IL or missing references) //IL_00c5: Unknown result type (might be due to invalid IL or missing references) //IL_00c6: Unknown result type (might be due to invalid IL or missing references) //IL_00d1: Unknown result type (might be due to invalid IL or missing references) //IL_00f2: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Unknown result type (might be due to invalid IL or missing references) //IL_00fe: Unknown result type (might be due to invalid IL or missing references) //IL_011f: 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_012b: 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_0147: Unknown result type (might be due to invalid IL or missing references) //IL_01a3: Unknown result type (might be due to invalid IL or missing references) //IL_01ad: Expected O, but got Unknown //IL_01c0: Unknown result type (might be due to invalid IL or missing references) //IL_01ca: Expected O, but got Unknown //IL_0026: Unknown result type (might be due to invalid IL or missing references) //IL_002b: Unknown result type (might be due to invalid IL or missing references) //IL_004b: Unknown result type (might be due to invalid IL or missing references) //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)row == (Object)null) { return; } Transform obj = Utils.FindChild((Transform)(object)row, "name", (IterativeSearchType)0); RectTransform val = (RectTransform)(object)((obj is RectTransform) ? obj : null); if (val != null) { Rect rect = val.rect; float width = ((Rect)(ref rect)).width; float num = Mathf.Min(width, 100f); if (num < width) { float num2 = val.anchoredPosition.x - val.pivot.x * width; val.SetSizeWithCurrentAnchors((Axis)0, num); val.anchoredPosition = new Vector2(num2 + val.pivot.x * num, val.anchoredPosition.y); } } SkillRowController skillRowController = ((Component)row).gameObject.AddComponent(); skillRowController.SkillType = skillType; Vector2 val2 = default(Vector2); ((Vector2)(ref val2))..ctor(0.5f, 0.5f); GameObject val3 = GUIManager.Instance.CreateButton("+", (Transform)(object)row, val2, val2, new Vector2(-10f, 0f), 24f, 24f); GameObject val4 = GUIManager.Instance.CreateButton("-", (Transform)(object)row, val2, val2, new Vector2(-35f, 0f), 24f, 24f); GameObject val5 = GUIManager.Instance.CreateText("0", (Transform)(object)row, val2, val2, new Vector2(25f, 0f), GUIManager.Instance.AveriaSerifBold, 16, GUIManager.Instance.ValheimOrange, true, Color.black, 30f, 20f, false); skillRowController.CounterText = val5.GetComponent(); skillRowController.PlusButtonObj = val3; skillRowController.MinusButtonObj = val4; skillRowController.CounterTextObj = val5; skillRowController.RefreshCounter(); SkillRowController ctrl = skillRowController; ((UnityEvent)val3.GetComponent