using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Globalization; using System.IO; using System.IO.Compression; using System.Linq; using System.Reflection; using System.Reflection.Emit; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Serialization; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Bootstrap; using BepInEx.Configuration; using HarmonyLib; using JetBrains.Annotations; using Microsoft.CodeAnalysis; using Professions; using ServerSync; using TMPro; using UnityEngine; using UnityEngine.Events; using UnityEngine.UI; [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: Guid("6A561CBA-69AC-46B3-9095-15E99C3121EC")] [assembly: ComVisible(false)] [assembly: AssemblyTrademark("")] [assembly: AssemblyCopyright("Copyright © 2022")] [assembly: AssemblyProduct("Professions")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyDescription("https://valheim.thunderstore.io/package/Smoothbrain/Professions")] [assembly: AssemblyTitle("Professions")] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: CompilationRelaxations(8)] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyCompany("")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: RefSafetyRules(11)] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class <3f8c2674-c2ea-4852-a419-e2b1dd1287f3>NullableAttribute : Attribute { public readonly byte[] NullableFlags; public <3f8c2674-c2ea-4852-a419-e2b1dd1287f3>NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public <3f8c2674-c2ea-4852-a419-e2b1dd1287f3>NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class <3a698ea0-42ea-416c-911f-0c551a7abd91>NullableContextAttribute : Attribute { public readonly byte Flag; public <3a698ea0-42ea-416c-911f-0c551a7abd91>NullableContextAttribute(byte P_0) { Flag = P_0; } } [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; } } } [<3f8c2674-c2ea-4852-a419-e2b1dd1287f3>Nullable(0)] [<3a698ea0-42ea-416c-911f-0c551a7abd91>NullableContext(1)] public class ProfessionPanel : MonoBehaviour { [Header("Stuff To replace")] public Image SelectionBKG; public Image ContentBkg; public Text header; public Image linebreak; public Text description; [Header("Skill Element")] public GameObject SkillElementGO; public Skill_Element skill_element; public RectTransform panelToInstantiateIn; public GameObject InstantiateSkill(Sprite icon, string title, string desc, string buttontext) { GameObject obj = Object.Instantiate(SkillElementGO, (Transform)(object)panelToInstantiateIn); Skill_Element component = obj.GetComponent(); component.m_icon.sprite = icon; component.m_desc.text = desc; component.m_Title.text = title; component.buttontxt.text = buttontext; return obj; } public void Awake() { Transform parent = ((Component)this).transform.parent.parent.parent; Image component = ((Component)parent.Find("Menu/MenuRoot/Menu/ornament")).gameObject.GetComponent(); Image component2 = ((Component)parent.Find("Inventory_screen/root/Player/Bkg")).gameObject.GetComponent(); TMP_FontAsset font = ((TMP_Text)((Component)parent.Find("Inventory_screen/root/Player/Armor/ac_text")).gameObject.GetComponent()).font; description.font = font.sourceFontFile; header.font = font.sourceFontFile; header.text = "Select Profession"; linebreak.sprite = component.sprite; ContentBkg.sprite = component2.sprite; ((Graphic)ContentBkg).material = ((Graphic)component2).material; ((Graphic)SelectionBKG).material = ((Graphic)component2).material; SelectionBKG.sprite = component2.sprite; } } [<3f8c2674-c2ea-4852-a419-e2b1dd1287f3>Nullable(0)] [<3a698ea0-42ea-416c-911f-0c551a7abd91>NullableContext(1)] public class Skill_Element : MonoBehaviour { [Header("Stuff To replace")] public Image m_icon; public Text m_Title; public Text m_desc; public Button Select; public Text buttontxt; public Image[] configOptions; public static Sprite blockUsage; public static Sprite blockExperience; public static GameObject tooltipPrefab; public void Awake() { //IL_0021: Unknown result type (might be due to invalid IL or missing references) Button component = ((Component)((Component)Menu.instance).transform.Find("MenuRoot/ExitConfirm/dialog/Button_yes")).GetComponent