This commit is contained in:
kmyuhkyuk 2024-04-08 13:15:51 +08:00
parent 7863c7bd2e
commit 816f1a14f1
5 changed files with 20 additions and 12 deletions

View File

@ -25,7 +25,8 @@ namespace Build
try try
{ {
Copy.CopyFolder(arg, "Release", Path.Combine(baseDirectory, "localized"), Path.Combine(modPath, "localized")); Copy.CopyFolder(arg, "Release", Path.Combine(baseDirectory, "localized"),
Path.Combine(modPath, "localized"));
Copy.CopyAssembly(arg, "Release", baseDirectory, modPath, new[] Copy.CopyAssembly(arg, "Release", baseDirectory, modPath, new[]
{ {

View File

@ -1,5 +1,4 @@
using System.Reflection; using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下 // 有关程序集的一般信息由以下

View File

@ -43,19 +43,22 @@ namespace HideDress
if (hideDressModel.PlayerModelViewBody != null) if (hideDressModel.PlayerModelViewBody != null)
{ {
EnabledPartDress(hideDressModel.PlayerModelViewBody, settingsModel.KeyPlayerHideDressPart.Value, !settingsModel.KeyPlayerHideDress.Value); EnabledPartDress(hideDressModel.PlayerModelViewBody, settingsModel.KeyPlayerHideDressPart.Value,
!settingsModel.KeyPlayerHideDress.Value);
} }
if (player != null) if (player != null)
{ {
EnabledPartDress(player.PlayerBody, settingsModel.KeyPlayerHideDressPart.Value, !settingsModel.KeyPlayerHideDress.Value); EnabledPartDress(player.PlayerBody, settingsModel.KeyPlayerHideDressPart.Value,
!settingsModel.KeyPlayerHideDress.Value);
} }
if (world != null) if (world != null)
{ {
foreach (var otherPlayer in _GameWorldHelper.AllOtherPlayer) foreach (var otherPlayer in _GameWorldHelper.AllOtherPlayer)
{ {
EnabledPartDress(otherPlayer.PlayerBody, settingsModel.KeyOtherPlayerHideDressPart.Value, !settingsModel.KeyOtherPlayerHideDress.Value); EnabledPartDress(otherPlayer.PlayerBody, settingsModel.KeyOtherPlayerHideDressPart.Value,
!settingsModel.KeyOtherPlayerHideDress.Value);
} }
} }
} }
@ -83,8 +86,10 @@ namespace HideDress
} }
} }
EnabledDress(dressList.Where(x => x.GetType() == typeof(Dress)), part == HideDressModel.DressPart.SkinDress || enabled); EnabledDress(dressList.Where(x => x.GetType() == typeof(Dress)),
EnabledSkinDress(dressList.Where(x => x is SkinDress || x is ArmBandView), part == HideDressModel.DressPart.Dress || enabled); part == HideDressModel.DressPart.SkinDress || enabled);
EnabledSkinDress(dressList.Where(x => x is SkinDress || x is ArmBandView),
part == HideDressModel.DressPart.Dress || enabled);
} }
private static void EnabledDress(IEnumerable<Dress> dressEnumerable, bool enabled) private static void EnabledDress(IEnumerable<Dress> dressEnumerable, bool enabled)

View File

@ -32,7 +32,8 @@ namespace HideDress.Models
RefHelper.FieldRef<object, Dress[]>.Create(RefSlotList.FieldType.GetGenericArguments()[0], "Dresses"); RefHelper.FieldRef<object, Dress[]>.Create(RefSlotList.FieldType.GetGenericArguments()[0], "Dresses");
RefRenderers = RefHelper.FieldRef<Dress, Renderer[]>.Create("Renderers"); RefRenderers = RefHelper.FieldRef<Dress, Renderer[]>.Create("Renderers");
PlayerModelViewShow = RefHelper.HookRef.Create(typeof(PlayerModelView), x => x.Name == "Show" && x.GetParameters()[0].ParameterType == typeof(PlayerVisualRepresentation)); PlayerModelViewShow = RefHelper.HookRef.Create(typeof(PlayerModelView),
x => x.Name == "Show" && x.GetParameters()[0].ParameterType == typeof(PlayerVisualRepresentation));
} }
} }
} }

View File

@ -27,9 +27,11 @@ namespace HideDress.Models
KeyOtherPlayerHideDress = configFile.Bind<bool>(hideDressSettings, "Hide Other Player Dress", false); KeyOtherPlayerHideDress = configFile.Bind<bool>(hideDressSettings, "Hide Other Player Dress", false);
KeyPlayerHideDressPart = KeyPlayerHideDressPart =
configFile.Bind<HideDressModel.DressPart>(hideDressPartSettings, "Player", HideDressModel.DressPart.Both); configFile.Bind<HideDressModel.DressPart>(hideDressPartSettings, "Player",
HideDressModel.DressPart.Both);
KeyOtherPlayerHideDressPart = KeyOtherPlayerHideDressPart =
configFile.Bind<HideDressModel.DressPart>(hideDressPartSettings, "Other Player", HideDressModel.DressPart.Both); configFile.Bind<HideDressModel.DressPart>(hideDressPartSettings, "Other Player",
HideDressModel.DressPart.Both);
KeyPlayerHideDressShortcut = KeyPlayerHideDressShortcut =
configFile.Bind<KeyboardShortcut>(shortcutSettings, "Hide Player Dress", configFile.Bind<KeyboardShortcut>(shortcutSettings, "Hide Player Dress",