using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using System.Text; using AzuExtendedPlayerInventory; using BepInEx; using BepInEx.Bootstrap; using BepInEx.Configuration; using BepInEx.Logging; using ConditionalConfigSync; using ExtraSlots; using GUIFramework; using HarmonyLib; using JetBrains.Annotations; using Microsoft.CodeAnalysis; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using TMPro; using TradersExtended.Compatibility; using UnityEngine; using UnityEngine.Events; using UnityEngine.UI; using YamlDotNet.Serialization; [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: ComVisible(false)] [assembly: AssemblyTrademark("")] [assembly: AssemblyCopyright("Copyright © 2023")] [assembly: AssemblyProduct("Traders Extended")] [assembly: AssemblyCompany("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyDescription("")] [assembly: Guid("6d6f243e-c80e-4a33-b2d0-a2657d3b9f7f")] [assembly: AssemblyTitle("Traders Extended")] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: CompilationRelaxations(8)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyFileVersion("2.0.0")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("2.0.0.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [<513676d6-9794-4182-bde6-312741b82216>Embedded] internal sealed class <513676d6-9794-4182-bde6-312741b82216>EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] [<513676d6-9794-4182-bde6-312741b82216>Embedded] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace TradersExtended { internal static class AmountDialog { [HarmonyPatch(typeof(StoreGui), "OnSelectedItem")] public static class StoreGui_OnSelectedItem_SelectItem { private static void Postfix() { OnSelectedTradeableItemClick(sellDialog: false); } } [CompilerGenerated] private static class <>O { public static UnityAction <0>__OnSplitSliderChanged; public static UnityAction <1>__OnOkClick; public static UnityAction <2>__Close; } private static float clickTime; private static GameObject amountDialog; private static Slider sliderDialog; private static TMP_Text sliderTitle; private static TMP_Text sliderAmountText; private static TMP_Text sliderAmountCoinsText; private static TMP_Text sliderButtonOk; private static Image sliderImage; private static Image sliderCurrencyImage; private static string sliderTitleText; private static string sliderButtonText; private static StoreGui storeGui; private const float m_splitNumInputTimeoutSec = 0.5f; private static string m_splitInput = ""; private static DateTime m_lastSplitInput; private static bool isSellDialog; public static GameObject Init(StoreGui store) { //IL_012e: Unknown result type (might be due to invalid IL or missing references) //IL_013d: Unknown result type (might be due to invalid IL or missing references) //IL_0142: 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_015e: Unknown result type (might be due to invalid IL or missing references) //IL_0163: Unknown result type (might be due to invalid IL or missing references) //IL_0179: Unknown result type (might be due to invalid IL or missing references) //IL_0188: Unknown result type (might be due to invalid IL or missing references) //IL_018d: Unknown result type (might be due to invalid IL or missing references) //IL_019b: Unknown result type (might be due to invalid IL or missing references) //IL_01aa: Unknown result type (might be due to invalid IL or missing references) //IL_01af: Unknown result type (might be due to invalid IL or missing references) //IL_0212: Unknown result type (might be due to invalid IL or missing references) //IL_0221: Unknown result type (might be due to invalid IL or missing references) //IL_0226: Unknown result type (might be due to invalid IL or missing references) //IL_0234: Unknown result type (might be due to invalid IL or missing references) //IL_0243: Unknown result type (might be due to invalid IL or missing references) //IL_0248: Unknown result type (might be due to invalid IL or missing references) //IL_025f: Unknown result type (might be due to invalid IL or missing references) //IL_026e: Unknown result type (might be due to invalid IL or missing references) //IL_0273: Unknown result type (might be due to invalid IL or missing references) //IL_0281: Unknown result type (might be due to invalid IL or missing references) //IL_0290: Unknown result type (might be due to invalid IL or missing references) //IL_0295: Unknown result type (might be due to invalid IL or missing references) //IL_02e9: Unknown result type (might be due to invalid IL or missing references) //IL_02f8: Unknown result type (might be due to invalid IL or missing references) //IL_02fd: Unknown result type (might be due to invalid IL or missing references) //IL_036a: Unknown result type (might be due to invalid IL or missing references) //IL_036f: Unknown result type (might be due to invalid IL or missing references) //IL_0375: Expected O, but got Unknown //IL_03a0: Unknown result type (might be due to invalid IL or missing references) //IL_03a5: Unknown result type (might be due to invalid IL or missing references) //IL_03ab: Expected O, but got Unknown storeGui = store; amountDialog = Object.Instantiate(((Component)InventoryGui.instance.m_splitPanel).gameObject, storeGui.m_rootPanel.transform.parent); ((Object)amountDialog).name = "AmountDialog"; Transform val = amountDialog.transform.Find("win_bkg"); sliderTitle = ((Component)val.Find("Text")).GetComponent(); sliderDialog = ((Component)val.Find("Slider")).GetComponent(); sliderAmountText = ((Component)val.Find("amount")).GetComponent(); sliderImage = ((Component)val.Find("Icon_bkg/Icon")).GetComponent(); sliderButtonOk = ((Component)val.Find("Button_ok/Text")).GetComponent(); Transform val2 = val.Find("Icon_bkg"); GameObject val3 = Object.Instantiate(((Component)val2).gameObject, val); ((Object)val3).name = "Coins_bkg"; val3.transform.SetSiblingIndex(val2.GetSiblingIndex() + 1); sliderCurrencyImage = ((Component)val3.transform.Find("Icon")).GetComponent(); UpdateCurrencyIcon(storeGui.m_coinPrefab); RectTransform component = val3.GetComponent(); component.anchorMax += new Vector2(0.15f, 0f); component.anchorMin += new Vector2(0.15f, 0f); RectTransform component2 = ((Component)val2).GetComponent(); component2.anchorMax -= new Vector2(0.15f, 0f); component2.anchorMin -= new Vector2(0.15f, 0f); GameObject val4 = Object.Instantiate(((Component)sliderAmountText).gameObject, val); ((Object)val4).name = "amount_coins"; val4.transform.SetSiblingIndex(sliderAmountText.transform.GetSiblingIndex() + 1); sliderAmountCoinsText = val4.GetComponent(); RectTransform component3 = ((Component)sliderAmountText).GetComponent(); component3.anchorMax -= new Vector2(0.15f, 0f); component3.anchorMin -= new Vector2(0.15f, 0f); RectTransform component4 = val4.GetComponent(); component4.anchorMax += new Vector2(0.15f, 0f); component4.anchorMin += new Vector2(0.15f, 0f); GameObject val5 = Object.Instantiate(((Component)sliderTitle).gameObject, val); ((Object)val5).name = "equal"; val5.transform.SetSiblingIndex(sliderTitle.transform.GetSiblingIndex() + 1); RectTransform component5 = val5.GetComponent(); component5.anchorMin -= new Vector2(0f, 0.5f); val5.GetComponent().SetText("="); ((UnityEvent)(object)sliderDialog.onValueChanged).AddListener((UnityAction)OnSplitSliderChanged); ButtonClickedEvent onClick = ((Component)val.Find("Button_ok")).GetComponent