Compare commits

..

9 Commits

Author SHA1 Message Date
CWX
0b15423a42 fixed up voiceadder mod, added readme 2024-07-28 23:34:51 +01:00
CWX
1a02be7963 Updated to 3.9.0 2024-07-06 22:05:04 +01:00
37cc39c0f8 updated 2024-02-06 00:14:43 +00:00
0d98ee659b asdasd 2024-01-24 21:08:06 +00:00
f547cb2ddb asd 2024-01-24 20:22:12 +00:00
29eb7fb803 asd 2024-01-24 20:15:25 +00:00
478b503af3 added spawning stuff to tool, new option 4 2024-01-12 14:33:05 +00:00
be199850d1 update botmon from Drakiaxyz repo 2024-01-12 14:08:58 +00:00
CWX
acac743403 bump 2023-10-18 13:04:15 +01:00
257 changed files with 1340 additions and 517 deletions

1
.gitignore vendored
View File

@ -52,3 +52,4 @@ WIP/CWX-BackpackReload/CWX-BackpackReload/obj
WIP/CWX-BUNDLEMAKER/BUNDLEMAKER/bin
WIP/CWX-BUNDLEMAKER/BUNDLEMAKER/obj
Live/CWX_Mods.sln.DotSettings.user

View File

@ -1,40 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net472</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Reference Include="Aki.Common">
<HintPath>..\..\..\Shared\Aki.Common.dll</HintPath>
</Reference>
<Reference Include="Aki.Reflection">
<HintPath>..\..\..\Shared\Aki.Reflection.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp">
<HintPath>..\..\..\Shared\Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="BepInEx">
<HintPath>..\..\..\Shared\BepInEx.dll</HintPath>
</Reference>
<Reference Include="bsg.console.core">
<HintPath>..\..\..\Shared\bsg.console.core.dll</HintPath>
</Reference>
<Reference Include="Comfort">
<HintPath>..\..\..\Shared\Comfort.dll</HintPath>
</Reference>
<Reference Include="UnityEngine">
<HintPath>..\..\..\Shared\UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>..\..\..\Shared\UnityEngine.CoreModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.IMGUIModule">
<HintPath>..\..\..\Shared\UnityEngine.IMGUIModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.TextRenderingModule">
<HintPath>..\..\..\Shared\UnityEngine.TextRenderingModule.dll</HintPath>
</Reference>
</ItemGroup>
</Project>

View File

@ -1,64 +0,0 @@
using BepInEx;
using Comfort.Common;
using EFT;
using EFT.Console.Core;
using EFT.UI;
namespace CWX_DebuggingTool
{
[BepInPlugin("com.cwx.debuggingtool", "cwx-debuggingtool", "1.1.0")]
public class DebuggingTool : BaseUnityPlugin
{
private void Awake()
{
ConsoleScreen.Processor.RegisterCommandGroup<DebuggingTool>();
}
[ConsoleCommand("BotMonitor")]
public static void BotMonitorConsoleCommand([ConsoleArgument("", "Options: 0 = off, 1 = Total bots, 2 = 1+Total bots per Zone, 3 = 2+Each bot")] int value )
{
switch (value)
{
case 0:
DisableBotMonitor();
ConsoleScreen.Log("BotMonitor disabled");
break;
case 1:
EnableBotMonitor(1);
ConsoleScreen.Log("BotMonitor enabled with only Total");
break;
case 2:
EnableBotMonitor(2);
ConsoleScreen.Log("BotMonitor enabled with Total and per zone Total");
break;
case 3:
EnableBotMonitor(3);
ConsoleScreen.Log("BotMonitor enabled with Total, per zone Total and each bot");
break;
default:
// fail to load, or wrong option used
ConsoleScreen.LogError("Wrong Option used, please use 0, 1, 2 or 3");
break;
}
}
private static void DisableBotMonitor()
{
BotmonClass.Instance.Dispose();
}
private static void EnableBotMonitor(int option)
{
var gameWorld = Singleton<GameWorld>.Instance;
var checkExists = gameWorld.gameObject.GetComponentInChildren<BotmonClass>();
if (checkExists != null)
Destroy(checkExists);
var btmInstance = gameWorld.gameObject.AddComponent<BotmonClass>();
btmInstance.Mode = option;
}
}
}

View File

@ -1,14 +0,0 @@
using BepInEx;
namespace CWX_LockPicking
{
[BepInPlugin("com.CWX.LockPicker", "CWX-LockPicker", "1.0.0")]
public class LockPicker : BaseUnityPlugin
{
private void Awake()
{
new LockPickerMenuPatch().Enable();
}
}
}

View File

@ -1,112 +0,0 @@
using System;
using System.Collections;
using System.Linq;
using System.Reflection;
using Aki.Reflection.Patching;
using Aki.Reflection.Utils;
using EFT;
using UnityEngine;
using System.Threading.Tasks;
using EFT.Interactive;
namespace CWX_LockPicking
{
public class LockPickerMenuPatch : ModulePatch
{
// TODO: Make Version Agnostic
private static Type playerActionClass; // GClass1726 - smethod_9 on this class
private static Type menuClass; // GClass2804
private static Type menuItemClass; // GClass2803
protected override MethodBase GetTargetMethod()
{
return typeof(GClass1726).GetMethod("smethod_9", BindingFlags.Static | BindingFlags.NonPublic);
}
[PatchPostfix]
public static void PatchPostFix(ref GClass2804 __result, GamePlayerOwner owner, Door door)
{
// always do this to get rid of the useless interactions
__result.Actions.RemoveAll(
x => x.Name == "Bang & clear" || x.Name == "Flash & clear" || x.Name == "Move in");
// make sure its a locked and a door that can be unlocked
if (door.DoorState != EDoorState.Locked || door.KeyId == null || door.KeyId == "") return;
// add action to unlock door - currently no animation
__result.Actions.Add(new GClass2803
{
Name = "LockPicking",
Action = () => { door.DoorState = EDoorState.Shut; },
Disabled = false
});
}
}
public class TestLock : MonoBehaviour
{
private string _BundlePath = "BepInEx/plugins/CWX/Test/lockpick.bundle";
public AssetBundle assetBundle;
public async Task<GameObject> LoadLock()
{
var bundleLoadRequest = AssetBundle.LoadFromFileAsync(_BundlePath);
while (!bundleLoadRequest.isDone)
await Task.Yield();
assetBundle = bundleLoadRequest.assetBundle;
var assetLoadRequest = assetBundle.LoadAllAssetsAsync<GameObject>();
while (!assetLoadRequest.isDone)
await Task.Yield();
var requestedGo = assetLoadRequest.allAssets[0] as GameObject;
return requestedGo;
}
public async void Init()
{
Instantiate(await LoadLock(), new Vector3(0, 0, 0), Quaternion.Euler(new Vector3(0, 0, 0)));
}
}
}

View File

@ -3,66 +3,24 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.1.32407.343
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CWX_WeatherPatcher", "CWX_WeatherPatcher\CWX_WeatherPatcher.csproj", "{0E6813D8-8989-4643-9D11-138F21CE4963}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CWX_BushWhacker", "CWX_BushWhacker\CWX_BushWhacker.csproj", "{FBA1D35B-1115-4333-8A6F-6F5884BD47D9}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CWX_MasterKey", "CWX_MasterKey\CWX_MasterKey.csproj", "{40BE277F-55BE-4579-9535-D1F5ED9CC549}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CWX_DebuggingTool", "CWX_DebuggingTool\CWX_DebuggingTool.csproj", "{E439D92F-26FD-42A2-9EA5-38A318EB5403}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CWX_AlarmChanger", "CWX_AlarmChanger\CWX_AlarmChanger.csproj", "{518D3743-AE98-41CD-8A6A-7B537C3FC293}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "test-layout", "test-layout\test-layout.csproj", "{CBDE7880-21AE-45AC-B216-D1061FD6A8A0}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CWX_GrassCutter", "CWX_GrassCutter\CWX_GrassCutter.csproj", "{CC095831-11F9-4429-9A5C-BF60EF451E96}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CWX_LockPicking", "CWX_LockPicking\CWX_LockPicking.csproj", "{A9363B69-7848-48FB-8562-4B694778F679}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Kaeno-TraderScrolling", "Kaeno-TraderScrolling\Kaeno-TraderScrolling.csproj", "{01BF7708-EC1F-4E2A-A788-084AE1C9E467}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CWX_VoiceAdder", "CWX_VoiceAdder\CWX_VoiceAdder.csproj", "{8030C0C1-BD86-4891-BD69-3D0772423641}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0E6813D8-8989-4643-9D11-138F21CE4963}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0E6813D8-8989-4643-9D11-138F21CE4963}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0E6813D8-8989-4643-9D11-138F21CE4963}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0E6813D8-8989-4643-9D11-138F21CE4963}.Release|Any CPU.Build.0 = Release|Any CPU
{FBA1D35B-1115-4333-8A6F-6F5884BD47D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FBA1D35B-1115-4333-8A6F-6F5884BD47D9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FBA1D35B-1115-4333-8A6F-6F5884BD47D9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FBA1D35B-1115-4333-8A6F-6F5884BD47D9}.Release|Any CPU.Build.0 = Release|Any CPU
{40BE277F-55BE-4579-9535-D1F5ED9CC549}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{40BE277F-55BE-4579-9535-D1F5ED9CC549}.Debug|Any CPU.Build.0 = Debug|Any CPU
{40BE277F-55BE-4579-9535-D1F5ED9CC549}.Release|Any CPU.ActiveCfg = Release|Any CPU
{40BE277F-55BE-4579-9535-D1F5ED9CC549}.Release|Any CPU.Build.0 = Release|Any CPU
{E439D92F-26FD-42A2-9EA5-38A318EB5403}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E439D92F-26FD-42A2-9EA5-38A318EB5403}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E439D92F-26FD-42A2-9EA5-38A318EB5403}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E439D92F-26FD-42A2-9EA5-38A318EB5403}.Release|Any CPU.Build.0 = Release|Any CPU
{518D3743-AE98-41CD-8A6A-7B537C3FC293}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{518D3743-AE98-41CD-8A6A-7B537C3FC293}.Debug|Any CPU.Build.0 = Debug|Any CPU
{518D3743-AE98-41CD-8A6A-7B537C3FC293}.Release|Any CPU.ActiveCfg = Release|Any CPU
{518D3743-AE98-41CD-8A6A-7B537C3FC293}.Release|Any CPU.Build.0 = Release|Any CPU
{CBDE7880-21AE-45AC-B216-D1061FD6A8A0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CBDE7880-21AE-45AC-B216-D1061FD6A8A0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CBDE7880-21AE-45AC-B216-D1061FD6A8A0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CBDE7880-21AE-45AC-B216-D1061FD6A8A0}.Release|Any CPU.Build.0 = Release|Any CPU
{CC095831-11F9-4429-9A5C-BF60EF451E96}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CC095831-11F9-4429-9A5C-BF60EF451E96}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CC095831-11F9-4429-9A5C-BF60EF451E96}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CC095831-11F9-4429-9A5C-BF60EF451E96}.Release|Any CPU.Build.0 = Release|Any CPU
{A9363B69-7848-48FB-8562-4B694778F679}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A9363B69-7848-48FB-8562-4B694778F679}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A9363B69-7848-48FB-8562-4B694778F679}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A9363B69-7848-48FB-8562-4B694778F679}.Release|Any CPU.Build.0 = Release|Any CPU
{01BF7708-EC1F-4E2A-A788-084AE1C9E467}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{01BF7708-EC1F-4E2A-A788-084AE1C9E467}.Debug|Any CPU.Build.0 = Debug|Any CPU
{01BF7708-EC1F-4E2A-A788-084AE1C9E467}.Release|Any CPU.ActiveCfg = Release|Any CPU
{01BF7708-EC1F-4E2A-A788-084AE1C9E467}.Release|Any CPU.Build.0 = Release|Any CPU
{8030C0C1-BD86-4891-BD69-3D0772423641}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8030C0C1-BD86-4891-BD69-3D0772423641}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8030C0C1-BD86-4891-BD69-3D0772423641}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8030C0C1-BD86-4891-BD69-3D0772423641}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

View File

@ -7,28 +7,28 @@
<ItemGroup>
<Reference Include="0Harmony">
<HintPath>..\..\..\Shared\BepInEx\0Harmony.dll</HintPath>
<HintPath>D:\HomeRepos\CWX-MegaMod\shared\0Harmony.dll</HintPath>
</Reference>
<Reference Include="Aki.Common">
<HintPath>..\..\..\Shared\Aki\Aki.Common.dll</HintPath>
<Reference Include="SPT.Common">
<HintPath>D:\HomeRepos\CWX-MegaMod\shared\spt-Common.dll</HintPath>
</Reference>
<Reference Include="Aki.Reflection">
<HintPath>..\..\..\Shared\Aki\Aki.Reflection.dll</HintPath>
<Reference Include="SPT.Reflection">
<HintPath>D:\HomeRepos\CWX-MegaMod\shared\spt-Reflection.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp">
<HintPath>..\..\..\Shared\EFT\Assembly-CSharp.dll</HintPath>
<HintPath>D:\HomeRepos\CWX-MegaMod\shared\Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="BepInEx">
<HintPath>..\..\..\Shared\BepInEx\BepInEx.dll</HintPath>
<HintPath>D:\HomeRepos\CWX-MegaMod\shared\BepInEx.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json">
<HintPath>..\..\..\Shared\EFT\Newtonsoft.Json.dll</HintPath>
<HintPath>D:\HomeRepos\CWX-MegaMod\shared\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="UnityEngine">
<HintPath>..\..\..\Shared\EFT\UnityEngine.dll</HintPath>
<HintPath>D:\HomeRepos\CWX-MegaMod\shared\UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>..\..\..\Shared\EFT\UnityEngine.CoreModule.dll</HintPath>
<HintPath>D:\HomeRepos\CWX-MegaMod\shared\UnityEngine.CoreModule.dll</HintPath>
</Reference>
</ItemGroup>

View File

@ -1,12 +1,12 @@
using Aki.Reflection.Patching;
using Aki.Reflection.Utils;
using HarmonyLib;
using HarmonyLib;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Newtonsoft.Json;
using System.IO;
using SPT.Reflection.Patching;
using SPT.Reflection.Utils;
namespace VoiceAdd
{

View File

@ -1,36 +1,42 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net472</TargetFramework>
<TargetFramework>net471</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Reference Include="Aki.Reflection">
<HintPath>..\..\..\Shared\Aki.Reflection.dll</HintPath>
<Reference Include="0Harmony">
<HintPath>D:\HomeRepos\CWX-MegaMod\shared\0Harmony.dll</HintPath>
</Reference>
<Reference Include="spt-Reflection">
<HintPath>D:\HomeRepos\CWX-MegaMod\shared\spt-Reflection.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp">
<HintPath>..\..\..\Shared\Assembly-CSharp.dll</HintPath>
<HintPath>D:\HomeRepos\CWX-MegaMod\shared\Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="BepInEx">
<HintPath>..\..\..\Shared\BepInEx.dll</HintPath>
<HintPath>D:\HomeRepos\CWX-MegaMod\shared\BepInEx.dll</HintPath>
</Reference>
<Reference Include="Comfort">
<HintPath>..\..\..\Shared\Comfort.dll</HintPath>
<HintPath>D:\HomeRepos\CWX-MegaMod\shared\Comfort.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json">
<HintPath>..\..\..\Shared\Newtonsoft.Json.dll</HintPath>
<HintPath>D:\HomeRepos\CWX-MegaMod\shared\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="Sirenix.Serialization">
<HintPath>D:\HomeRepos\CWX-MegaMod\shared\Sirenix.Serialization.dll</HintPath>
</Reference>
<Reference Include="UnityEngine">
<HintPath>..\..\..\Shared\UnityEngine.dll</HintPath>
<HintPath>D:\HomeRepos\CWX-MegaMod\shared\UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>..\..\..\Shared\UnityEngine.CoreModule.dll</HintPath>
<HintPath>D:\HomeRepos\CWX-MegaMod\shared\UnityEngine.CoreModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UI">
<HintPath>..\..\..\Shared\UnityEngine.UI.dll</HintPath>
<HintPath>D:\HomeRepos\CWX-MegaMod\shared\UnityEngine.UI.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UIModule">
<HintPath>..\..\..\Shared\UnityEngine.UIModule.dll</HintPath>
<HintPath>D:\HomeRepos\CWX-MegaMod\shared\UnityEngine.UIModule.dll</HintPath>
</Reference>
</ItemGroup>

View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2024 Naekami
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -1,5 +1,5 @@
using Aki.Reflection.Patching;
using Aki.Reflection.Utils;
using SPT.Reflection.Patching;
using SPT.Reflection.Utils;
using EFT.UI;
using System.Reflection;
using UnityEngine;

View File

@ -13,7 +13,7 @@ namespace TraderScrolling
var rightPerson = GameObject.Find("Right Person");
var list = rightPerson.GetComponentsInChildren<RectTransform>(true).ToList();
var money = list.FirstOrDefault(x => x.name == "Money");
var moneyRect = money.RectTransform();
var moneyRect = money.GetComponent<RectTransform>();
moneyRect.anchoredPosition = new Vector2(moneyRect.anchoredPosition.x + 60f, moneyRect.anchoredPosition.y);
//End of Money position Change
@ -39,6 +39,7 @@ namespace TraderScrolling
// Change Colour alpha to max for background
var background = tile.FirstOrDefault(x => x.name == "Background");
background.color = new Color(0, 0, 0, 1);
}
}
}

View File

@ -2,13 +2,13 @@
namespace TraderScrolling
{
[BepInPlugin("com.kaeno.TraderScrolling", "Kaeno-TraderScrolling", "1.0.0")]
[BepInPlugin("com.kaeno.TraderScrolling", "Kaeno-TraderScrolling", "1.1.0")]
public class TraderScrolling : BaseUnityPlugin
{
private void Awake()
{
new TraderScrollingPatch().Enable();
new PlayerCardPatch().Enable();
}
}
}
}

View File

@ -1,7 +1,8 @@
using System.Reflection;
using Aki.Reflection.Patching;
using Aki.Reflection.Utils;
using SPT.Reflection.Patching;
using SPT.Reflection.Utils;
using EFT.UI;
using HarmonyLib;
using UnityEngine;
namespace TraderScrolling
@ -10,7 +11,7 @@ namespace TraderScrolling
{
protected override MethodBase GetTargetMethod()
{
return typeof(TraderScreensGroup).GetMethod("method_4", PatchConstants.PrivateFlags);
return AccessTools.Method(typeof(TraderScreensGroup), nameof(TraderScreensGroup.Show));
}
[PatchPostfix]
@ -19,11 +20,11 @@ namespace TraderScrolling
var gameObject = GameObject.Find("Menu UI");
var check = gameObject.GetComponentInChildren<TraderScrollingScript>();
if (check != null)
{
return;
}
gameObject.AddComponent<TraderScrollingScript>();
}
}

View File

@ -1,4 +1,6 @@
using System.Linq;
using Comfort.Common;
using EFT.UI;
using System.Linq;
using UnityEngine;
using UnityEngine.UI;
@ -13,10 +15,10 @@ namespace TraderScrolling
var list = menuUI.GetComponentsInChildren<RectTransform>(true).ToList();
var container = list.FirstOrDefault(x => x.name == "Container");
var scrollrect = traderCards.AddComponent<ScrollRect>();
var traderCardsRect = traderCards.RectTransform();
var containerRect = container.RectTransform();
var traderCardsRect = traderCards.GetComponent<RectTransform>();
var containerRect = container.GetComponent<RectTransform>();
var countCards = traderCards.transform.childCount;
var countCards = traderCards.transform.childCount;
var count = countCards - 10;
//THIS IS DEFAULT anchorMin For anything below 11
@ -35,6 +37,6 @@ namespace TraderScrolling
scrollrect.vertical = false;
scrollrect.movementType = ScrollRect.MovementType.Elastic;
scrollrect.viewport = containerRect;
}
}
}
}

BIN
Live/shared/0Harmony.dll Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Live/shared/BepInEx.dll Normal file

Binary file not shown.

BIN
Live/shared/Cinemachine.dll Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Live/shared/Comfort.dll Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,216 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>ConfigurationManager</name>
</assembly>
<members>
<member name="M:ConfigurationManager.SettingSearcher.GetBepInExCoreConfig">
<summary>
Get entries for all core BepInEx settings
</summary>
</member>
<member name="M:ConfigurationManager.SettingSearcher.GetPluginConfig(BepInEx.BaseUnityPlugin)">
<summary>
Get entries for all settings of a plugin
</summary>
</member>
<member name="M:ConfigurationManager.Utilities.Utils.FindPlugins">
<summary>
Search for all instances of BaseUnityPlugin loaded by chainloader or other means.
</summary>
</member>
<member name="T:ConfigurationManager.ConfigurationManager">
<summary>
An easy way to let user configure how a plugin behaves without the need to make your own GUI. The user can change any of the settings you expose, even keyboard shortcuts.
https://github.com/ManlyMarco/BepInEx.ConfigurationManager
</summary>
</member>
<member name="F:ConfigurationManager.ConfigurationManager.GUID">
<summary>
GUID of this plugin
</summary>
</member>
<member name="F:ConfigurationManager.ConfigurationManager.Version">
<summary>
Version constant
</summary>
</member>
<member name="E:ConfigurationManager.ConfigurationManager.DisplayingWindowChanged">
<summary>
Event fired every time the manager window is shown or hidden.
</summary>
</member>
<member name="F:ConfigurationManager.ConfigurationManager.OverrideHotkey">
<summary>
Disable the hotkey check used by config manager. If enabled you have to set <see cref="P:ConfigurationManager.ConfigurationManager.DisplayingWindow"/> to show the manager.
</summary>
</member>
<member name="M:ConfigurationManager.ConfigurationManager.#ctor">
<inheritdoc />
</member>
<member name="P:ConfigurationManager.ConfigurationManager.DisplayingWindow">
<summary>
Is the config manager main window displayed on screen
</summary>
</member>
<member name="M:ConfigurationManager.ConfigurationManager.RegisterCustomSettingDrawer(System.Type,System.Action{ConfigurationManager.SettingEntryBase})">
<summary>
Register a custom setting drawer for a given type. The action is ran in OnGui in a single setting slot.
Do not use any Begin / End layout methods, and avoid raising height from standard.
</summary>
</member>
<member name="M:ConfigurationManager.ConfigurationManager.BuildSettingList">
<summary>
Rebuild the setting list. Use to update the config manager window if config settings were removed or added while it was open.
</summary>
</member>
<member name="P:ConfigurationManager.ConfigurationManager.SearchString">
<summary>
String currently entered into the search box
</summary>
</member>
<member name="T:ConfigurationManager.SettingEntryBase">
<summary>
Class representing all data about a setting collected by ConfigurationManager.
</summary>
</member>
<member name="P:ConfigurationManager.SettingEntryBase.AcceptableValues">
<summary>
List of values this setting can take
</summary>
</member>
<member name="P:ConfigurationManager.SettingEntryBase.AcceptableValueRange">
<summary>
Range of the values this setting can take
</summary>
</member>
<member name="P:ConfigurationManager.SettingEntryBase.ShowRangeAsPercent">
<summary>
Should the setting be shown as a percentage (only applies to value range settings)
</summary>
</member>
<member name="P:ConfigurationManager.SettingEntryBase.CustomDrawer">
<summary>
Custom setting draw action.
Use either CustomDrawer or CustomHotkeyDrawer, using both at the same time leads to undefined behaviour.
</summary>
</member>
<member name="P:ConfigurationManager.SettingEntryBase.CustomHotkeyDrawer">
<summary>
Custom setting draw action that allows polling keyboard input with the Input class.
Use either CustomDrawer or CustomHotkeyDrawer, using both at the same time leads to undefined behaviour.
</summary>
</member>
<member name="T:ConfigurationManager.SettingEntryBase.CustomHotkeyDrawerFunc">
<summary>
Custom setting draw action that allows polling keyboard input with the Input class.
</summary>
<param name="setting">Setting currently being set, is available</param>
<param name="isCurrentlyAcceptingInput">Set this ref parameter to true when you want the current setting drawer to receive Input events. Remember to set it to false after you are done!</param>
</member>
<member name="P:ConfigurationManager.SettingEntryBase.Browsable">
<summary>
Show this setting in the settings screen at all? If false, don't show.
</summary>
</member>
<member name="P:ConfigurationManager.SettingEntryBase.Category">
<summary>
Category the setting is under. Null to be directly under the plugin.
</summary>
</member>
<member name="P:ConfigurationManager.SettingEntryBase.DefaultValue">
<summary>
If set, a "Default" button will be shown next to the setting to allow resetting to default.
</summary>
</member>
<member name="P:ConfigurationManager.SettingEntryBase.HideDefaultButton">
<summary>
Force the "Reset" button to not be displayed, even if a valid DefaultValue is available.
</summary>
</member>
<member name="P:ConfigurationManager.SettingEntryBase.HideSettingName">
<summary>
Force the setting name to not be displayed. Should only be used with a <see cref="P:ConfigurationManager.SettingEntryBase.CustomDrawer"/> to get more space.
Can be used together with <see cref="P:ConfigurationManager.SettingEntryBase.HideDefaultButton"/> to gain even more space.
</summary>
</member>
<member name="P:ConfigurationManager.SettingEntryBase.Description">
<summary>
Optional description shown when hovering over the setting
</summary>
</member>
<member name="P:ConfigurationManager.SettingEntryBase.DispName">
<summary>
Name of the setting
</summary>
</member>
<member name="P:ConfigurationManager.SettingEntryBase.PluginInfo">
<summary>
Plugin this setting belongs to
</summary>
</member>
<member name="P:ConfigurationManager.SettingEntryBase.ReadOnly">
<summary>
Only allow showing of the value. False whenever possible by default.
</summary>
</member>
<member name="P:ConfigurationManager.SettingEntryBase.SettingType">
<summary>
Type of the variable
</summary>
</member>
<member name="P:ConfigurationManager.SettingEntryBase.PluginInstance">
<summary>
Instance of the plugin that owns this setting
</summary>
</member>
<member name="P:ConfigurationManager.SettingEntryBase.IsAdvanced">
<summary>
Is this setting advanced
</summary>
</member>
<member name="P:ConfigurationManager.SettingEntryBase.Order">
<summary>
Order of the setting on the settings list relative to other settings in a category. 0 by default, lower is higher on the list.
</summary>
</member>
<member name="M:ConfigurationManager.SettingEntryBase.Get">
<summary>
Get the value of this setting
</summary>
</member>
<member name="M:ConfigurationManager.SettingEntryBase.Set(System.Object)">
<summary>
Set the value of this setting
</summary>
</member>
<member name="M:ConfigurationManager.SettingEntryBase.SetValue(System.Object)">
<summary>
Implementation of <see cref="M:ConfigurationManager.SettingEntryBase.Set(System.Object)"/>
</summary>
</member>
<member name="P:ConfigurationManager.SettingEntryBase.ObjToStr">
<summary>
Custom converter from setting type to string for the textbox
</summary>
</member>
<member name="P:ConfigurationManager.SettingEntryBase.StrToObj">
<summary>
Custom converter from string to setting type for the textbox
</summary>
</member>
<member name="T:ConfigurationManager.ValueChangedEventArgs`1">
<summary>
Arguments representing a change in value
</summary>
</member>
<member name="M:ConfigurationManager.ValueChangedEventArgs`1.#ctor(`0)">
<inheritdoc />
</member>
<member name="P:ConfigurationManager.ValueChangedEventArgs`1.NewValue">
<summary>
Newly assigned value
</summary>
</member>
</members>
</doc>

Binary file not shown.

BIN
Live/shared/DOTween.dll Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Live/shared/Mono.Cecil.dll Normal file

Binary file not shown.

Binary file not shown.

BIN
Live/shared/Mono.Posix.dll Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Live/shared/NLog.dll Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Live/shared/SteamAudio.dll Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Live/shared/System.Core.dll Normal file

Binary file not shown.

BIN
Live/shared/System.Data.dll Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Live/shared/System.Web.dll Normal file

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More