public PantsSubBaker(Wearable pants) { if (pants.Type != WearableType.Pants) { throw new ArgumentException(nameof(pants)); } pants.Textures.TryGetValue(AvatarTextureIndex.LowerPants, out m_PantsTextureId); if (m_PantsTextureId == AppearanceInfo.AvatarTextureData.DefaultAvatarTextureID) { m_PantsTextureId = UUID.Zero; } m_PantsColor = GetPantColor(pants); m_Length = pants.GetParamValueOrDefault(615, 0.8); m_Waist = pants.GetParamValueOrDefault(614, 0.8); m_LengthBump = pants.GetMinParamOrDefault(0, 1018, 1036); m_WaistBump = pants.GetMinParamOrDefault(0, 1017, 1035); m_Displace = pants.GetParamValueOrDefault(516, 0); }
public JacketSubBaker(Wearable jacket) { if (jacket.Type != WearableType.Jacket) { throw new ArgumentException(nameof(jacket)); } m_JacketUpperOpen = jacket.GetParamValueOrDefault(622, 0.8); m_JacketLowerOpen = jacket.GetParamValueOrDefault(623, 0.8); m_JacketUpperLength = jacket.GetParamValueOrDefault(620, 0.8); m_JacketLowerLength = jacket.GetParamValueOrDefault(621, 0.8); m_JacketSleeveLength = jacket.GetParamValueOrDefault(1020, 0); m_JacketCollarFront = jacket.GetParamValueOrDefault(1022, 0); m_JacketCollarBack = jacket.GetParamValueOrDefault(1024, 0); m_JacketUpperColor = GetJacketUpperColor(jacket); m_JacketLowerColor = GetJacketLowerColor(jacket); m_JacketSleeveLengthBump = jacket.GetParamValueOrDefault(1019, 0); m_JacketCollarFrontBump = jacket.GetParamValueOrDefault(1021, 0); m_JacketCollarBackBump = jacket.GetParamValueOrDefault(1023, 0); m_JacketLowerLengthBump = jacket.GetMinParamOrDefault(0, 1033, 1025); m_JacketUpperLengthBump = jacket.GetMinParamOrDefault(0, 1037, 1027); m_JacketUpperOpenBump = jacket.GetMinParamOrDefault(0, 1026, 1038); m_JacketLowerOpenBump = jacket.GetMinParamOrDefault(0, 1028, 1034); jacket.Textures.TryGetValue(AvatarTextureIndex.UpperJacket, out m_UpperTextureId); jacket.Textures.TryGetValue(AvatarTextureIndex.LowerJacket, out m_LowerTextureId); if (m_UpperTextureId == AppearanceInfo.AvatarTextureData.DefaultAvatarTextureID) { m_UpperTextureId = UUID.Zero; } if (m_LowerTextureId == AppearanceInfo.AvatarTextureData.DefaultAvatarTextureID) { m_LowerTextureId = UUID.Zero; } }
public ShirtSubBaker(Wearable shirt) { if (shirt.Type != WearableType.Shirt) { throw new ArgumentException(nameof(shirt)); } m_ShirtColor = GetShirtColor(shirt); shirt.Textures.TryGetValue(AvatarTextureIndex.UpperShirt, out m_UpperTextureId); if (m_UpperTextureId == AppearanceInfo.AvatarTextureData.DefaultAvatarTextureID) { m_UpperTextureId = UUID.Zero; } m_SleeveLength = shirt.GetParamValueOrDefault(600, 0.7); m_BottomLength = shirt.GetParamValueOrDefault(601, 0.8); m_CollarFrontHeight = shirt.GetParamValueOrDefault(602, 0.8); m_CollarBackHeight = shirt.GetParamValueOrDefault(778, 0.8); m_BottomLengthBump = shirt.GetMinParamOrDefault(0, 1014, 1030); m_SleeveLengthBump = shirt.GetMinParamOrDefault(0, 1013, 1029); m_CollarFrontHeightBump = shirt.GetMinParamOrDefault(0, 1015, 1031); m_CollarBackHeightBump = shirt.GetMinParamOrDefault(0, 1016, 1032); m_Displace = shirt.GetMinParamOrDefault(0, 628, 828); }
public SocksSubBaker(Wearable socks) { if (socks.Type != WearableType.Socks) { throw new ArgumentException(nameof(socks)); } m_Color = GetSocksColor(socks); m_SocksLength = socks.GetParamValueOrDefault(617, 0.35); m_SocksLengthBump = socks.GetMinParamOrDefault(0.35, 1050, 1051); socks.Textures.TryGetValue(AvatarTextureIndex.LowerSocks, out m_TextureId); if (m_TextureId == AppearanceInfo.AvatarTextureData.DefaultAvatarTextureID) { m_TextureId = UUID.Zero; } }