55 lines
1.9 KiB
C#
55 lines
1.9 KiB
C#
using BepInEx;
|
|
using Comfort.Common;
|
|
using EFT;
|
|
|
|
namespace UIFixes
|
|
{
|
|
[BepInPlugin(PluginInfo.PLUGIN_GUID, PluginInfo.PLUGIN_NAME, PluginInfo.PLUGIN_VERSION)]
|
|
public class Plugin : BaseUnityPlugin
|
|
{
|
|
public void Awake()
|
|
{
|
|
Settings.Init(Config);
|
|
|
|
R.Init();
|
|
|
|
ConfirmDialogKeysPatches.Enable();
|
|
new FixMailRecieveAllPatch().Enable();
|
|
FixTooltipPatches.Enable();
|
|
new FixWeaponBindsDisplayPatch().Enable();
|
|
FocusFleaOfferNumberPatches.Enable();
|
|
HideoutSearchPatches.Enable();
|
|
HideoutLevelPatches.Enable();
|
|
InspectWindowResizePatches.Enable();
|
|
InspectWindowStatsPatches.Enable();
|
|
new RemoveDoorActionsPatch().Enable();
|
|
ScrollPatches.Enable();
|
|
StackFirItemsPatches.Enable();
|
|
SwapPatches.Enable();
|
|
SyncScrollPositionPatches.Enable();
|
|
new TransferConfirmPatch().Enable();
|
|
WeaponPresetConfirmPatches.Enable();
|
|
WeaponZoomPatches.Enable();
|
|
new MoveTaskbarPatch().Enable();
|
|
FixFleaPatches.Enable();
|
|
FleaPrevSearchPatches.Enable();
|
|
KeepOfferWindowOpenPatches.Enable();
|
|
AddOfferClickablePricesPatches.Enable();
|
|
new AssortUnlocksPatch().Enable();
|
|
new AutofillQuestItemsPatch().Enable();
|
|
InsureContextMenuPatches.Enable();
|
|
TradingAutoSwitchPatches.Enable();
|
|
AddOfferRememberAutoselectPatches.Enable();
|
|
KeepMessagesOpenPatches.Enable();
|
|
new FocusTradeQuantityPatch().Enable();
|
|
new RememberRepairerPatch().Enable();
|
|
}
|
|
|
|
public static bool InRaid()
|
|
{
|
|
bool? inRaid = Singleton<AbstractGame>.Instance?.InRaid;
|
|
return inRaid.HasValue && inRaid.Value;
|
|
}
|
|
}
|
|
}
|