Upload from upload_mods.ps1
This commit is contained in:
25
Harmony/Harmony_XUiC_CollectedItemList.cs
Normal file
25
Harmony/Harmony_XUiC_CollectedItemList.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using Quartz.Settings;
|
||||
|
||||
namespace Harmony.XUiC_CollectedItemListPatches
|
||||
{
|
||||
[HarmonyPatch(typeof(XUiC_CollectedItemList))]
|
||||
[HarmonyPatch("Update")]
|
||||
public class UpdatePatch
|
||||
{
|
||||
public static bool Prefix(XUiC_CollectedItemList __instance, float _dt,
|
||||
ref XUiView ___viewComponent
|
||||
)
|
||||
{
|
||||
if (MinimapSettings.Enabled)
|
||||
{
|
||||
___viewComponent.Position = new Vector2i(-90, 270);
|
||||
}
|
||||
else
|
||||
{
|
||||
___viewComponent.Position = new Vector2i(-90, 32);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user