AvatarAppearance.cs 68 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869
  1. /*
  2. * Copyright (c) Contributors, http://opensimulator.org/
  3. * See CONTRIBUTORS.TXT for a full list of copyright holders.
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions are met:
  7. * * Redistributions of source code must retain the above copyright
  8. * notice, this list of conditions and the following disclaimer.
  9. * * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * * Neither the name of the OpenSimulator Project nor the
  13. * names of its contributors may be used to endorse or promote products
  14. * derived from this software without specific prior written permission.
  15. *
  16. * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
  17. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  18. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  19. * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
  20. * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  21. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  22. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  23. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  24. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  25. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26. */
  27. using System;
  28. using System.Reflection;
  29. using System.Collections;
  30. using System.Collections.Generic;
  31. using OpenMetaverse;
  32. using OpenMetaverse.StructuredData;
  33. using log4net;
  34. namespace OpenSim.Framework
  35. {
  36. /// <summary>
  37. /// Contains the Avatar's Appearance and methods to manipulate the appearance.
  38. /// </summary>
  39. public class AvatarAppearance
  40. {
  41. // SL box diferent to size
  42. const float AVBOXAJUST = 0.2f;
  43. // constrains for ubitode physics
  44. const float AVBOXMINX = 0.2f;
  45. const float AVBOXMINY = 0.3f;
  46. const float AVBOXMINZ = 1.2f;
  47. private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
  48. // this is viewer capabilities and weared things dependent
  49. // should be only used as initial default value ( V1 viewers )
  50. public const int VISUALPARAM_COUNT = 218;
  51. // regions and viewer compatibility
  52. public readonly static int TEXTURE_COUNT = 45;
  53. public const int TEXTURE_COUNT_PV7 = 29;
  54. public const int BAKES_COUNT_PV7 = 6;
  55. public const int MAXWEARABLE_PV7 = 16;
  56. public const int MAXWEARABLE_LEGACY = 15;
  57. public readonly static byte[] BAKE_INDICES = new byte[] { 8, 9, 10, 11, 19, 20, 40, 41, 42, 43, 44 };
  58. protected int m_serial = 0;
  59. protected byte[] m_visualparams;
  60. protected Primitive.TextureEntry m_texture;
  61. protected AvatarWearable[] m_wearables;
  62. protected Dictionary<int, List<AvatarAttachment>> m_attachments;
  63. protected WearableCacheItem[] m_cacheitems;
  64. protected Vector3 m_avatarSize = new Vector3(0.45f, 0.6f, 1.9f); // sl Z cloud value
  65. protected Vector3 m_avatarBoxSize = new Vector3(0.45f, 0.6f, 1.9f);
  66. protected float m_avatarHeight = 0;
  67. protected float m_avatarFeetOffset = 0;
  68. protected float m_avatarAnimOffset = 0;
  69. public virtual int Serial
  70. {
  71. get { return m_serial; }
  72. set { m_serial = value; }
  73. }
  74. public virtual byte[] VisualParams
  75. {
  76. get { return m_visualparams; }
  77. set { m_visualparams = value; }
  78. }
  79. public virtual Vector3 AvatarSize
  80. {
  81. get { return m_avatarSize; }
  82. }
  83. public virtual Vector3 AvatarBoxSize
  84. {
  85. get { return m_avatarBoxSize; }
  86. }
  87. public virtual float AvatarFeetOffset
  88. {
  89. get { return m_avatarFeetOffset + m_avatarAnimOffset; }
  90. }
  91. public virtual Primitive.TextureEntry Texture
  92. {
  93. get { return m_texture; }
  94. set
  95. {
  96. // m_log.DebugFormat("[AVATAR APPEARANCE]: Set TextureEntry to {0}", value);
  97. m_texture = value;
  98. }
  99. }
  100. public virtual AvatarWearable[] Wearables
  101. {
  102. get { return m_wearables; }
  103. set { m_wearables = value; }
  104. }
  105. public virtual float AvatarHeight
  106. {
  107. get { return m_avatarHeight; }
  108. set { m_avatarHeight = value; }
  109. }
  110. public virtual WearableCacheItem[] WearableCacheItems
  111. {
  112. get { return m_cacheitems; }
  113. set { m_cacheitems = value; }
  114. }
  115. public virtual float AvatarPreferencesHoverZ { get; set; }
  116. public AvatarAppearance()
  117. {
  118. // m_log.WarnFormat("[AVATAR APPEARANCE]: create empty appearance");
  119. m_serial = 0;
  120. SetDefaultWearables();
  121. SetDefaultTexture();
  122. SetDefaultParams();
  123. // SetHeight();
  124. SetSize(new Vector3(0.45f,0.6f,1.9f));
  125. m_attachments = new Dictionary<int, List<AvatarAttachment>>();
  126. }
  127. public AvatarAppearance(OSDMap map)
  128. {
  129. // m_log.WarnFormat("[AVATAR APPEARANCE]: create appearance from OSDMap");
  130. Unpack(map);
  131. // SetHeight(); done in Unpack
  132. }
  133. public AvatarAppearance(AvatarWearable[] wearables, Primitive.TextureEntry textureEntry, byte[] visualParams)
  134. {
  135. // m_log.WarnFormat("[AVATAR APPEARANCE] create initialized appearance");
  136. m_serial = 0;
  137. if (wearables != null)
  138. m_wearables = wearables;
  139. else
  140. SetDefaultWearables();
  141. if (textureEntry != null)
  142. m_texture = textureEntry;
  143. else
  144. SetDefaultTexture();
  145. if (visualParams != null)
  146. m_visualparams = visualParams;
  147. else
  148. SetDefaultParams();
  149. // SetHeight();
  150. if(m_avatarHeight == 0)
  151. SetSize(new Vector3(0.45f,0.6f,1.9f));
  152. m_attachments = new Dictionary<int, List<AvatarAttachment>>();
  153. }
  154. public AvatarAppearance(AvatarAppearance appearance): this(appearance, true,true)
  155. {
  156. }
  157. public AvatarAppearance(AvatarAppearance appearance, bool copyWearables)
  158. : this(appearance, copyWearables, true)
  159. {
  160. }
  161. public AvatarAppearance(AvatarAppearance appearance, bool copyWearables, bool copyBaked)
  162. {
  163. // m_log.WarnFormat("[AVATAR APPEARANCE] create from an existing appearance");
  164. if (appearance == null)
  165. {
  166. m_serial = 0;
  167. SetDefaultWearables();
  168. SetDefaultTexture();
  169. SetDefaultParams();
  170. // SetHeight();
  171. SetSize(new Vector3(0.45f, 0.6f, 1.9f));
  172. AvatarPreferencesHoverZ = 0;
  173. m_attachments = new Dictionary<int, List<AvatarAttachment>>();
  174. return;
  175. }
  176. m_serial = appearance.Serial;
  177. AvatarPreferencesHoverZ = appearance.AvatarPreferencesHoverZ;
  178. if (copyWearables && (appearance.Wearables != null))
  179. {
  180. m_wearables = new AvatarWearable[appearance.Wearables.Length];
  181. for (int i = 0; i < appearance.Wearables.Length; i++)
  182. {
  183. m_wearables[i] = new AvatarWearable();
  184. AvatarWearable wearable = appearance.Wearables[i];
  185. for (int j = 0; j < wearable.Count; j++)
  186. m_wearables[i].Add(wearable[j].ItemID, wearable[j].AssetID);
  187. }
  188. }
  189. else
  190. ClearWearables();
  191. m_texture = null;
  192. if (appearance.Texture != null)
  193. {
  194. byte[] tbytes = appearance.Texture.GetBakesBytes();
  195. m_texture = new Primitive.TextureEntry(tbytes,0,tbytes.Length);
  196. if (copyBaked && appearance.m_cacheitems != null)
  197. m_cacheitems = (WearableCacheItem[])appearance.m_cacheitems.Clone();
  198. else
  199. m_cacheitems = null;
  200. }
  201. m_visualparams = null;
  202. if (appearance.VisualParams != null)
  203. m_visualparams = (byte[])appearance.VisualParams.Clone();
  204. // m_avatarHeight = appearance.m_avatarHeight;
  205. SetSize(appearance.AvatarSize);
  206. // Copy the attachment, force append mode since that ensures consistency
  207. m_attachments = new Dictionary<int, List<AvatarAttachment>>();
  208. foreach (AvatarAttachment attachment in appearance.GetAttachments())
  209. AppendAttachment(new AvatarAttachment(attachment));
  210. }
  211. public void GetAssetsFrom(AvatarAppearance app)
  212. {
  213. int len = m_wearables.Length;
  214. if(len > app.m_wearables.Length)
  215. len = app.m_wearables.Length;
  216. for (int i = 0; i < len; i++)
  217. {
  218. int count = m_wearables[i].Count;
  219. if(count > app.m_wearables[i].Count)
  220. count = app.m_wearables[i].Count;
  221. for (int j = 0; j < count; j++)
  222. {
  223. UUID itemID = m_wearables[i][j].ItemID;
  224. UUID assetID = app.Wearables[i].GetAsset(itemID);
  225. if (assetID != UUID.Zero)
  226. m_wearables[i].Add(itemID, assetID);
  227. }
  228. }
  229. }
  230. public void ClearWearables()
  231. {
  232. m_wearables = new AvatarWearable[AvatarWearable.LEGACY_VERSION_MAX_WEARABLES];
  233. for (int i = 0; i < AvatarWearable.LEGACY_VERSION_MAX_WEARABLES; i++)
  234. m_wearables[i] = new AvatarWearable();
  235. }
  236. protected virtual void SetDefaultWearables()
  237. {
  238. m_wearables = AvatarWearable.DefaultWearables;
  239. }
  240. /// <summary>
  241. /// Invalidate all of the baked textures in the appearance, useful
  242. /// if you know that none are valid
  243. /// </summary>
  244. public virtual void ResetAppearance()
  245. {
  246. // m_log.WarnFormat("[AVATAR APPEARANCE]: Reset appearance");
  247. m_serial = 0;
  248. SetDefaultTexture();
  249. AvatarPreferencesHoverZ = 0;
  250. //for (int i = 0; i < BAKE_INDICES.Length; i++)
  251. // {
  252. // int idx = BAKE_INDICES[i];
  253. // m_texture.FaceTextures[idx].TextureID = UUID.Zero;
  254. // }
  255. }
  256. protected virtual void SetDefaultParams()
  257. {
  258. m_visualparams = new byte[] { 33,61,85,23,58,127,63,85,63,42,0,85,63,36,85,95,153,63,34,0,63,109,88,132,63,136,81,85,103,136,127,0,150,150,150,127,0,0,0,0,0,127,0,0,255,127,114,127,99,63,127,140,127,127,0,0,0,191,0,104,0,0,0,0,0,0,0,0,0,145,216,133,0,127,0,127,170,0,0,127,127,109,85,127,127,63,85,42,150,150,150,150,150,150,150,25,150,150,150,0,127,0,0,144,85,127,132,127,85,0,127,127,127,127,127,127,59,127,85,127,127,106,47,79,127,127,204,2,141,66,0,0,127,127,0,0,0,0,127,0,159,0,0,178,127,36,85,131,127,127,127,153,95,0,140,75,27,127,127,0,150,150,198,0,0,63,30,127,165,209,198,127,127,153,204,51,51,255,255,255,204,0,255,150,150,150,150,150,150,150,150,150,150,0,150,150,150,150,150,0,127,127,150,150,150,150,150,150,150,150,0,0,150,51,132,150,150,150 };
  259. // for (int i = 0; i < VISUALPARAM_COUNT; i++)
  260. // {
  261. // m_visualparams[i] = 150;
  262. // }
  263. }
  264. /// <summary>
  265. /// Invalidate all of the baked textures in the appearance, useful
  266. /// if you know that none are valid
  267. /// </summary>
  268. public virtual void ResetBakedTextures()
  269. {
  270. SetDefaultTexture();
  271. //for (int i = 0; i < BAKE_INDICES.Length; i++)
  272. // {
  273. // int idx = BAKE_INDICES[i];
  274. // m_texture.FaceTextures[idx].TextureID = UUID.Zero;
  275. // }
  276. }
  277. protected virtual void SetDefaultTexture()
  278. {
  279. m_texture = new Primitive.TextureEntry(new UUID(AppearanceManager.DEFAULT_AVATAR_TEXTURE));
  280. }
  281. /// <summary>
  282. /// Set up appearance texture ids.
  283. /// </summary>
  284. /// <returns>
  285. /// True if any existing texture id was changed by the new data.
  286. /// False if there were no changes or no existing texture ids.
  287. /// </returns>
  288. public virtual bool SetTextureEntries(Primitive.TextureEntry textureEntry)
  289. {
  290. if (textureEntry == null)
  291. return false;
  292. bool changed = false;
  293. Primitive.TextureEntryFace newface;
  294. Primitive.TextureEntryFace tmpFace;
  295. //make sure textureEntry.DefaultTexture is the unused one(DEFAULT_AVATAR_TEXTURE).
  296. Primitive.TextureEntry converted = new Primitive.TextureEntry(AppearanceManager.DEFAULT_AVATAR_TEXTURE);
  297. for (uint i = 0; i < TEXTURE_COUNT; ++i)
  298. {
  299. newface = textureEntry.GetFace(i);
  300. if (newface.TextureID != AppearanceManager.DEFAULT_AVATAR_TEXTURE)
  301. {
  302. tmpFace = converted.GetFace(i);
  303. tmpFace.TextureID = newface.TextureID; // we need a full high level copy, assuming all other parameters are the same.
  304. if (m_texture.FaceTextures[i] == null || newface.TextureID != m_texture.FaceTextures[i].TextureID)
  305. changed = true;
  306. }
  307. else
  308. { if (m_texture.FaceTextures[i] == null)
  309. continue;
  310. if(m_texture.FaceTextures[i].TextureID != AppearanceManager.DEFAULT_AVATAR_TEXTURE)
  311. changed = true;
  312. }
  313. }
  314. if(changed)
  315. m_texture = converted;
  316. return changed;
  317. }
  318. /// <summary>
  319. /// Set up visual parameters for the avatar and refresh the avatar height
  320. /// </summary>
  321. /// <returns>
  322. /// True if any existing visual parameter was changed by the new data.
  323. /// False if there were no changes or no existing visual parameters.
  324. /// </returns>
  325. public virtual bool SetVisualParams(byte[] visualParams)
  326. {
  327. if (visualParams == null)
  328. return false;
  329. // There are much simpler versions of this copy that could be
  330. // made. We determine if any of the visual parameters actually
  331. // changed to know if the appearance should be saved later
  332. bool changed = false;
  333. int newsize = visualParams.Length;
  334. if (newsize != m_visualparams.Length)
  335. {
  336. changed = true;
  337. m_visualparams = (byte[])visualParams.Clone();
  338. }
  339. else
  340. {
  341. for (int i = 0; i < newsize; i++)
  342. {
  343. if (visualParams[i] != m_visualparams[i])
  344. {
  345. // DEBUG ON
  346. // m_log.WarnFormat("[AVATARAPPEARANCE] vparams changed [{0}] {1} ==> {2}",
  347. // i,m_visualparams[i],visualParams[i]);
  348. // DEBUG OFF
  349. m_visualparams[i] = visualParams[i];
  350. changed = true;
  351. }
  352. }
  353. }
  354. // Reset the height if the visual parameters actually changed
  355. // if (changed)
  356. // SetHeight();
  357. return changed;
  358. }
  359. public virtual void SetAppearance(Primitive.TextureEntry textureEntry, byte[] visualParams)
  360. {
  361. SetTextureEntries(textureEntry);
  362. SetVisualParams(visualParams);
  363. }
  364. /// <summary>
  365. /// Set avatar height by a calculation based on their visual parameters.
  366. /// </summary>
  367. public virtual void SetHeight()
  368. {
  369. /*
  370. // Start with shortest possible female avatar height
  371. m_avatarHeight = 1.14597f;
  372. // Add offset for male avatars
  373. if (m_visualparams[(int)VPElement.SHAPE_MALE] != 0)
  374. m_avatarHeight += 0.0848f;
  375. // Add offsets for visual params
  376. m_avatarHeight += 0.516945f * (float)m_visualparams[(int)VPElement.SHAPE_HEIGHT] / 255.0f
  377. + 0.08117f * (float)m_visualparams[(int)VPElement.SHAPE_HEAD_SIZE] / 255.0f
  378. + 0.3836f * (float)m_visualparams[(int)VPElement.SHAPE_LEG_LENGTH] / 255.0f
  379. + 0.07f * (float)m_visualparams[(int)VPElement.SHOES_PLATFORM_HEIGHT] / 255.0f
  380. + 0.08f * (float)m_visualparams[(int)VPElement.SHOES_HEEL_HEIGHT] / 255.0f
  381. + 0.076f * (float)m_visualparams[(int)VPElement.SHAPE_NECK_LENGTH] / 255.0f;
  382. */
  383. }
  384. public void SetSize(Vector3 avSize)
  385. {
  386. if (avSize.X > 32f)
  387. avSize.X = 32f;
  388. else if (avSize.X < 0.1f)
  389. avSize.X = 0.1f;
  390. if (avSize.Y > 32f)
  391. avSize.Y = 32f;
  392. else if (avSize.Y < 0.1f)
  393. avSize.Y = 0.1f;
  394. if (avSize.Z > 32f)
  395. avSize.Z = 32f;
  396. else if (avSize.Z < 0.1f)
  397. avSize.Z = 0.1f;
  398. m_avatarSize = avSize;
  399. m_avatarBoxSize = avSize;
  400. m_avatarBoxSize.Z += AVBOXAJUST;
  401. if (m_avatarBoxSize.X < AVBOXMINX)
  402. m_avatarBoxSize.X = AVBOXMINX;
  403. if (m_avatarBoxSize.Y < AVBOXMINY)
  404. m_avatarBoxSize.Y = AVBOXMINY;
  405. if (m_avatarBoxSize.Z < AVBOXMINZ)
  406. m_avatarBoxSize.Z = AVBOXMINZ;
  407. m_avatarHeight = m_avatarSize.Z;
  408. }
  409. public virtual void SetWearable(int wearableId, AvatarWearable wearable)
  410. {
  411. // DEBUG ON
  412. // m_log.WarnFormat("[AVATARAPPEARANCE] set wearable {0} --> {1}:{2}",wearableId,wearable.ItemID,wearable.AssetID);
  413. // DEBUG OFF
  414. if (wearableId >= m_wearables.Length)
  415. {
  416. int currentLength = m_wearables.Length;
  417. Array.Resize(ref m_wearables, wearableId + 1);
  418. for (int i = currentLength ; i < m_wearables.Length ; i++)
  419. m_wearables[i] = new AvatarWearable();
  420. }
  421. m_wearables[wearableId].Clear();
  422. for (int i = 0; i < wearable.Count; i++)
  423. m_wearables[wearableId].Add(wearable[i].ItemID, wearable[i].AssetID);
  424. }
  425. // DEBUG ON
  426. public override String ToString()
  427. {
  428. String s = "";
  429. s += String.Format("Serial: {0}\n",m_serial);
  430. for (uint i = 0; i < AvatarAppearance.TEXTURE_COUNT; i++)
  431. if (m_texture.FaceTextures[i] != null)
  432. s += String.Format("Texture: {0} --> {1}\n",i,m_texture.FaceTextures[i].TextureID);
  433. foreach (AvatarWearable awear in m_wearables)
  434. {
  435. for (int i = 0; i < awear.Count; i++)
  436. s += String.Format("Wearable: item={0}, asset={1}\n",awear[i].ItemID,awear[i].AssetID);
  437. }
  438. s += "Visual Params: ";
  439. // for (uint j = 0; j < AvatarAppearance.VISUALPARAM_COUNT; j++)
  440. for (uint j = 0; j < m_visualparams.Length; j++)
  441. s += String.Format("{0},",m_visualparams[j]);
  442. s += "\n";
  443. return s;
  444. }
  445. // DEBUG OFF
  446. /// <summary>
  447. /// Get a list of the attachments.
  448. /// </summary>
  449. /// <remarks>
  450. /// There may be duplicate attachpoints
  451. /// </remarks>
  452. public List<AvatarAttachment> GetAttachments()
  453. {
  454. lock (m_attachments)
  455. {
  456. List<AvatarAttachment> alist = new List<AvatarAttachment>();
  457. foreach (KeyValuePair<int, List<AvatarAttachment>> kvp in m_attachments)
  458. {
  459. foreach (AvatarAttachment attach in kvp.Value)
  460. alist.Add(new AvatarAttachment(attach));
  461. }
  462. return alist;
  463. }
  464. }
  465. internal void AppendAttachment(AvatarAttachment attach)
  466. {
  467. // m_log.DebugFormat(
  468. // "[AVATAR APPEARNCE]: Appending itemID={0}, assetID={1} at {2}",
  469. // attach.ItemID, attach.AssetID, attach.AttachPoint);
  470. lock (m_attachments)
  471. {
  472. if (!m_attachments.ContainsKey(attach.AttachPoint))
  473. m_attachments[attach.AttachPoint] = new List<AvatarAttachment>();
  474. foreach (AvatarAttachment prev in m_attachments[attach.AttachPoint])
  475. {
  476. if (prev.ItemID == attach.ItemID)
  477. return;
  478. }
  479. m_attachments[attach.AttachPoint].Add(attach);
  480. }
  481. }
  482. internal void ReplaceAttachment(AvatarAttachment attach)
  483. {
  484. // m_log.DebugFormat(
  485. // "[AVATAR APPEARANCE]: Replacing itemID={0}, assetID={1} at {2}",
  486. // attach.ItemID, attach.AssetID, attach.AttachPoint);
  487. lock (m_attachments)
  488. {
  489. m_attachments[attach.AttachPoint] = new List<AvatarAttachment>();
  490. m_attachments[attach.AttachPoint].Add(attach);
  491. }
  492. }
  493. /// <summary>
  494. /// Set an attachment
  495. /// </summary>
  496. /// <remarks>
  497. /// If the attachpoint has the
  498. /// 0x80 bit set then we assume this is an append
  499. /// operation otherwise we replace whatever is
  500. /// currently attached at the attachpoint
  501. /// </remarks>
  502. /// <param name="attachpoint"></param>
  503. /// <param name="item">If UUID.Zero, then an any attachment at the attachpoint is removed.</param>
  504. /// <param name="asset"></param>
  505. /// <returns>
  506. /// return true if something actually changed
  507. /// </returns>
  508. public bool SetAttachment(int attachpoint, UUID item, UUID asset)
  509. {
  510. // m_log.DebugFormat(
  511. // "[AVATAR APPEARANCE]: Setting attachment at {0} with item ID {1}, asset ID {2}",
  512. // attachpoint, item, asset);
  513. if (attachpoint == 0)
  514. return false;
  515. lock (m_attachments)
  516. {
  517. if (item == UUID.Zero)
  518. {
  519. if (m_attachments.ContainsKey(attachpoint))
  520. {
  521. m_attachments.Remove(attachpoint);
  522. return true;
  523. }
  524. return false;
  525. }
  526. // When a user logs in, the attachment item ids are pulled from persistence in the Avatars table. However,
  527. // the asset ids are not saved. When the avatar enters a simulator the attachments are set again. If
  528. // we simply perform an item check here then the asset ids (which are now present) are never set, and NPC attachments
  529. // later fail unless the attachment is detached and reattached.
  530. //
  531. // Therefore, we will carry on with the set if the existing attachment has no asset id.
  532. AvatarAttachment existingAttachment = GetAttachmentForItem(item);
  533. if (existingAttachment != null)
  534. {
  535. // m_log.DebugFormat(
  536. // "[AVATAR APPEARANCE]: Found existing attachment for {0}, asset {1} at point {2}",
  537. // existingAttachment.ItemID, existingAttachment.AssetID, existingAttachment.AttachPoint);
  538. if (existingAttachment.AssetID != UUID.Zero && existingAttachment.AttachPoint == (attachpoint & 0x7F))
  539. {
  540. m_log.DebugFormat(
  541. "[AVATAR APPEARANCE]: Ignoring attempt to attach an already attached item {0} at point {1}",
  542. item, attachpoint);
  543. return false;
  544. }
  545. else
  546. {
  547. // Remove it here so that the later append does not add a second attachment but we still update
  548. // the assetID
  549. DetachAttachment(existingAttachment.ItemID);
  550. }
  551. }
  552. // check if this is an append or a replace, 0x80 marks it as an append
  553. if ((attachpoint & 0x80) > 0)
  554. {
  555. // strip the append bit
  556. int point = attachpoint & 0x7F;
  557. AppendAttachment(new AvatarAttachment(point, item, asset));
  558. }
  559. else
  560. {
  561. ReplaceAttachment(new AvatarAttachment(attachpoint,item, asset));
  562. }
  563. }
  564. return true;
  565. }
  566. /// <summary>
  567. /// If the item is already attached, return it.
  568. /// </summary>
  569. /// <param name="itemID"></param>
  570. /// <returns>Returns null if this item is not attached.</returns>
  571. public AvatarAttachment GetAttachmentForItem(UUID itemID)
  572. {
  573. lock (m_attachments)
  574. {
  575. foreach (KeyValuePair<int, List<AvatarAttachment>> kvp in m_attachments)
  576. {
  577. int index = kvp.Value.FindIndex(delegate(AvatarAttachment a) { return a.ItemID == itemID; });
  578. if (index >= 0)
  579. return kvp.Value[index];
  580. }
  581. }
  582. return null;
  583. }
  584. public int GetAttachpoint(UUID itemID)
  585. {
  586. lock (m_attachments)
  587. {
  588. foreach (KeyValuePair<int, List<AvatarAttachment>> kvp in m_attachments)
  589. {
  590. int index = kvp.Value.FindIndex(delegate(AvatarAttachment a) { return a.ItemID == itemID; });
  591. if (index >= 0)
  592. return kvp.Key;
  593. }
  594. }
  595. return 0;
  596. }
  597. public bool DetachAttachment(UUID itemID)
  598. {
  599. lock (m_attachments)
  600. {
  601. foreach (KeyValuePair<int, List<AvatarAttachment>> kvp in m_attachments)
  602. {
  603. int index = kvp.Value.FindIndex(delegate(AvatarAttachment a) { return a.ItemID == itemID; });
  604. if (index >= 0)
  605. {
  606. // m_log.DebugFormat(
  607. // "[AVATAR APPEARANCE]: Detaching attachment {0}, index {1}, point {2}",
  608. // m_attachments[kvp.Key][index].ItemID, index, m_attachments[kvp.Key][index].AttachPoint);
  609. // Remove it from the list of attachments at that attach point
  610. m_attachments[kvp.Key].RemoveAt(index);
  611. // And remove the list if there are no more attachments here
  612. if (m_attachments[kvp.Key].Count == 0)
  613. m_attachments.Remove(kvp.Key);
  614. return true;
  615. }
  616. }
  617. }
  618. return false;
  619. }
  620. public void ClearAttachments()
  621. {
  622. lock (m_attachments)
  623. m_attachments.Clear();
  624. }
  625. #region Packing Functions
  626. /// <summary>
  627. /// Create an OSDMap from the appearance data
  628. /// </summary>
  629. public OSDMap Pack(EntityTransferContext ctx)
  630. {
  631. OSDMap data = new OSDMap();
  632. data["serial"] = OSD.FromInteger(m_serial);
  633. data["height"] = OSD.FromReal(m_avatarHeight);
  634. data["aphz"] = OSD.FromReal(AvatarPreferencesHoverZ);
  635. if (m_texture == null)
  636. return data;
  637. bool sendPV8 = false;
  638. // Wearables
  639. OSDArray wears;
  640. int count;
  641. if (ctx == null)
  642. count = MAXWEARABLE_LEGACY;
  643. else
  644. {
  645. if(ctx.OutboundVersion >= 0.8)
  646. {
  647. sendPV8 = true;
  648. count = m_wearables.Length;
  649. }
  650. else if (ctx.OutboundVersion >= 0.6)
  651. count = MAXWEARABLE_PV7;
  652. else
  653. count = MAXWEARABLE_LEGACY;
  654. if (sendPV8 && count > MAXWEARABLE_PV7)
  655. {
  656. wears = new OSDArray(count - MAXWEARABLE_PV7);
  657. for (int i = MAXWEARABLE_PV7; i < count; ++i)
  658. wears.Add(m_wearables[i].Pack());
  659. data["wrbls8"] = wears;
  660. count = MAXWEARABLE_PV7;
  661. }
  662. }
  663. if(count > m_wearables.Length)
  664. count = m_wearables.Length;
  665. wears = new OSDArray(count);
  666. for (int i = 0; i < count; ++i)
  667. wears.Add(m_wearables[i].Pack());
  668. data["wearables"] = wears;
  669. // Avatar Textures
  670. OSDArray textures;
  671. if (sendPV8)
  672. {
  673. byte[] te = m_texture.GetBakesBytes();
  674. data["te8"] = OSD.FromBinary(te);
  675. }
  676. else
  677. {
  678. textures = new OSDArray(TEXTURE_COUNT_PV7);
  679. for (uint i = 0; i < TEXTURE_COUNT_PV7; ++i)
  680. textures.Add(OSD.FromUUID(m_texture.GetFace(i).TextureID));
  681. data["textures"] = textures;
  682. }
  683. if (m_cacheitems != null)
  684. {
  685. OSDArray baked = WearableCacheItem.BakedToOSD(m_cacheitems, 0, BAKES_COUNT_PV7);
  686. if (baked != null && baked.Count > 0)
  687. data["bakedcache"] = baked;
  688. baked = WearableCacheItem.BakedToOSD(m_cacheitems, BAKES_COUNT_PV7, -1);
  689. if (baked != null && baked.Count > 0)
  690. data["bc8"] = baked;
  691. }
  692. // Visual Parameters
  693. OSDBinary visualparams = new OSDBinary(m_visualparams);
  694. data["visualparams"] = visualparams;
  695. lock (m_attachments)
  696. {
  697. // Attachments
  698. OSDArray attachs = new OSDArray(m_attachments.Count);
  699. foreach (AvatarAttachment attach in GetAttachments())
  700. attachs.Add(attach.Pack());
  701. data["attachments"] = attachs;
  702. }
  703. return data;
  704. }
  705. public OSDMap PackForNotecard(bool NoHuds = true)
  706. {
  707. OSDMap data = new OSDMap();
  708. data["serial"] = OSD.FromInteger(m_serial);
  709. data["height"] = OSD.FromReal(m_avatarHeight);
  710. data["aphz"] = OSD.FromReal(AvatarPreferencesHoverZ);
  711. // old regions may not like missing/empty wears
  712. OSDArray wears = new OSDArray(MAXWEARABLE_LEGACY);
  713. for (int i = 0; i< MAXWEARABLE_LEGACY; ++i)
  714. wears.Add(new OSDArray());
  715. data["wearables"] = wears;
  716. // Avatar Textures
  717. OSDArray textures;
  718. // allow old regions to still see something
  719. textures = new OSDArray(TEXTURE_COUNT_PV7);
  720. textures.Add(OSD.FromUUID(AppearanceManager.DEFAULT_AVATAR_TEXTURE));
  721. for (uint i = 1; i < TEXTURE_COUNT_PV7; ++i)
  722. textures.Add(OSD.FromUUID(m_texture.GetFace(i).TextureID));
  723. data["textures"] = textures;
  724. bool needExtra = false;
  725. for (int i = BAKES_COUNT_PV7; i < BAKE_INDICES.Length; ++i)
  726. {
  727. int idx = BAKE_INDICES[i];
  728. if (m_texture.FaceTextures[idx] == null)
  729. continue;
  730. if (m_texture.FaceTextures[idx].TextureID == AppearanceManager.DEFAULT_AVATAR_TEXTURE ||
  731. m_texture.FaceTextures[idx].TextureID == UUID.Zero)
  732. continue;
  733. needExtra = true;
  734. }
  735. if (needExtra)
  736. {
  737. byte[] te = m_texture.GetBakesBytes();
  738. data["te8"] = OSD.FromBinary(te);
  739. }
  740. // Visual Parameters
  741. OSDBinary visualparams = new OSDBinary(m_visualparams);
  742. data["visualparams"] = visualparams;
  743. lock (m_attachments)
  744. {
  745. // Attachments
  746. OSDArray attachs = new OSDArray(m_attachments.Count);
  747. foreach (AvatarAttachment attach in GetAttachments())
  748. {
  749. if (NoHuds &&
  750. attach.AttachPoint >= (uint)AttachmentPoint.HUDCenter2 &&
  751. attach.AttachPoint <= (uint)AttachmentPoint.HUDBottomRight)
  752. continue;
  753. attachs.Add(attach.Pack());
  754. }
  755. data["attachments"] = attachs;
  756. }
  757. return data;
  758. }
  759. /// <summary>
  760. /// Unpack and OSDMap and initialize the appearance
  761. /// from it
  762. /// </summary>
  763. public void Unpack(OSDMap data)
  764. {
  765. SetDefaultWearables();
  766. SetDefaultTexture();
  767. SetDefaultParams();
  768. m_attachments = new Dictionary<int, List<AvatarAttachment>>();
  769. if(data == null)
  770. {
  771. m_log.Warn("[AVATAR APPEARANCE]: data to unpack is null");
  772. return;
  773. }
  774. OSD tmpOSD;
  775. if (data.TryGetValue("serial", out tmpOSD))
  776. m_serial = tmpOSD.AsInteger();
  777. if(data.TryGetValue("aphz", out tmpOSD))
  778. AvatarPreferencesHoverZ = (float)tmpOSD.AsReal();
  779. if (data.TryGetValue("height", out tmpOSD))
  780. SetSize(new Vector3(0.45f, 0.6f, (float)tmpOSD.AsReal()));
  781. try
  782. {
  783. // Wearables
  784. OSD tmpOSD8;
  785. OSDArray wears8 = null;
  786. int wears8Count = 0;
  787. if (data.TryGetValue("wrbls8", out tmpOSD8) && (tmpOSD8 is OSDArray))
  788. {
  789. wears8 = (OSDArray)tmpOSD8;
  790. wears8Count = wears8.Count;
  791. }
  792. if (data.TryGetValue("wearables", out tmpOSD) && (tmpOSD is OSDArray))
  793. {
  794. OSDArray wears = (OSDArray)tmpOSD;
  795. if(wears.Count + wears8Count > 0)
  796. {
  797. m_wearables = new AvatarWearable[wears.Count + wears8Count];
  798. for (int i = 0; i < wears.Count; ++i)
  799. m_wearables[i] = new AvatarWearable((OSDArray)wears[i]);
  800. if (wears8Count > 0)
  801. {
  802. for (int i = 0; i < wears8Count; ++i)
  803. m_wearables[i + wears.Count] = new AvatarWearable((OSDArray)wears8[i]);
  804. }
  805. }
  806. }
  807. if (data.TryGetValue("te8", out tmpOSD))
  808. {
  809. byte[] teb = tmpOSD.AsBinary();
  810. Primitive.TextureEntry te = new Primitive.TextureEntry(teb, 0, teb.Length);
  811. m_texture = te;
  812. }
  813. else if (data.TryGetValue("textures", out tmpOSD) && (tmpOSD is OSDArray))
  814. {
  815. OSDArray textures = (OSDArray)tmpOSD;
  816. for (int i = 0; i < textures.Count && i < TEXTURE_COUNT_PV7; ++i)
  817. {
  818. tmpOSD = textures[i];
  819. if (tmpOSD != null)
  820. m_texture.CreateFace((uint)i).TextureID = tmpOSD.AsUUID();
  821. }
  822. }
  823. if (data.TryGetValue("bakedcache", out tmpOSD) && (tmpOSD is OSDArray))
  824. {
  825. OSDArray bakedOSDArray = (OSDArray)tmpOSD;
  826. m_cacheitems = WearableCacheItem.GetDefaultCacheItem();
  827. bakedOSDArray = (OSDArray)tmpOSD;
  828. foreach (OSDMap item in bakedOSDArray)
  829. {
  830. int idx = item["textureindex"].AsInteger();
  831. if (idx < 0 || idx >= m_cacheitems.Length)
  832. continue;
  833. m_cacheitems[idx].CacheId = item["cacheid"].AsUUID();
  834. m_cacheitems[idx].TextureID = item["textureid"].AsUUID();
  835. m_cacheitems[idx].TextureAsset = null;
  836. }
  837. if (data.TryGetValue("bc8", out tmpOSD) && (tmpOSD is OSDArray))
  838. {
  839. bakedOSDArray = (OSDArray)tmpOSD;
  840. foreach (OSDMap item in bakedOSDArray)
  841. {
  842. int idx = item["textureindex"].AsInteger();
  843. if (idx < 0 || idx >= m_cacheitems.Length)
  844. continue;
  845. m_cacheitems[idx].CacheId = item["cacheid"].AsUUID();
  846. m_cacheitems[idx].TextureID = item["textureid"].AsUUID();
  847. m_cacheitems[idx].TextureAsset = null;
  848. }
  849. }
  850. }
  851. // Visual Parameters
  852. if (data.TryGetValue("visualparams", out tmpOSD))
  853. {
  854. if (tmpOSD is OSDBinary || tmpOSD is OSDArray)
  855. m_visualparams = tmpOSD.AsBinary();
  856. }
  857. else
  858. {
  859. m_log.Warn("[AVATAR APPEARANCE]: failed to unpack visual parameters");
  860. }
  861. // Attachments
  862. if (data.TryGetValue("attachments", out tmpOSD) && tmpOSD is OSDArray)
  863. {
  864. OSDArray attachs = (OSDArray)tmpOSD;
  865. for (int i = 0; i < attachs.Count; i++)
  866. {
  867. AvatarAttachment att = new AvatarAttachment((OSDMap)attachs[i]);
  868. AppendAttachment(att);
  869. // m_log.DebugFormat(
  870. // "[AVATAR APPEARANCE]: Unpacked attachment itemID {0}, assetID {1}, point {2}",
  871. // att.ItemID, att.AssetID, att.AttachPoint);
  872. }
  873. }
  874. }
  875. catch (Exception e)
  876. {
  877. m_log.ErrorFormat("[AVATAR APPEARANCE]: unpack failed badly: {0}{1}", e.Message, e.StackTrace);
  878. }
  879. }
  880. #endregion
  881. public bool CanTeleport(float version)
  882. {
  883. if (version >= 0.8)
  884. return true;
  885. if (m_wearables.Length <= MAXWEARABLE_PV7)
  886. return true;
  887. for(int i = MAXWEARABLE_PV7; i < m_wearables.Length; ++i)
  888. {
  889. if(m_wearables[i].Count > 0)
  890. return false;
  891. }
  892. // also check baked
  893. for (int i = BAKES_COUNT_PV7; i < BAKE_INDICES.Length; i++)
  894. {
  895. int idx = BAKE_INDICES[i];
  896. if (m_texture.FaceTextures[idx] == null)
  897. continue;
  898. if (m_texture.FaceTextures[idx].TextureID == AppearanceManager.DEFAULT_AVATAR_TEXTURE ||
  899. m_texture.FaceTextures[idx].TextureID == UUID.Zero)
  900. continue;
  901. return false;
  902. }
  903. return true;
  904. }
  905. #region VPElement
  906. /// <summary>
  907. /// Viewer Params Array Element for AgentSetAppearance
  908. /// Generated from LibOMV's Visual Params list
  909. /// </summary>
  910. public enum VPElement : int
  911. {
  912. /// <summary>
  913. /// Brow Size - Small 0--+255 Large
  914. /// </summary>
  915. SHAPE_BIG_BROW = 0,
  916. /// <summary>
  917. /// Nose Size - Small 0--+255 Large
  918. /// </summary>
  919. SHAPE_NOSE_BIG_OUT = 1,
  920. /// <summary>
  921. /// Nostril Width - Narrow 0--+255 Broad
  922. /// </summary>
  923. SHAPE_BROAD_NOSTRILS = 2,
  924. /// <summary>
  925. /// Chin Cleft - Round 0--+255 Cleft
  926. /// </summary>
  927. SHAPE_CLEFT_CHIN = 3,
  928. /// <summary>
  929. /// Nose Tip Shape - Pointy 0--+255 Bulbous
  930. /// </summary>
  931. SHAPE_BULBOUS_NOSE_TIP = 4,
  932. /// <summary>
  933. /// Chin Angle - Chin Out 0--+255 Chin In
  934. /// </summary>
  935. SHAPE_WEAK_CHIN = 5,
  936. /// <summary>
  937. /// Chin-Neck - Tight Chin 0--+255 Double Chin
  938. /// </summary>
  939. SHAPE_DOUBLE_CHIN = 6,
  940. /// <summary>
  941. /// Lower Cheeks - Well-Fed 0--+255 Sunken
  942. /// </summary>
  943. SHAPE_SUNKEN_CHEEKS = 7,
  944. /// <summary>
  945. /// Upper Bridge - Low 0--+255 High
  946. /// </summary>
  947. SHAPE_NOBLE_NOSE_BRIDGE = 8,
  948. /// <summary>
  949. /// - Less 0--+255 More
  950. /// </summary>
  951. SHAPE_JOWLS = 9,
  952. /// <summary>
  953. /// Upper Chin Cleft - Round 0--+255 Cleft
  954. /// </summary>
  955. SHAPE_CLEFT_CHIN_UPPER = 10,
  956. /// <summary>
  957. /// Cheek Bones - Low 0--+255 High
  958. /// </summary>
  959. SHAPE_HIGH_CHEEK_BONES = 11,
  960. /// <summary>
  961. /// Ear Angle - In 0--+255 Out
  962. /// </summary>
  963. SHAPE_EARS_OUT = 12,
  964. /// <summary>
  965. /// Eyebrow Points - Smooth 0--+255 Pointy
  966. /// </summary>
  967. HAIR_POINTY_EYEBROWS = 13,
  968. /// <summary>
  969. /// Jaw Shape - Pointy 0--+255 Square
  970. /// </summary>
  971. SHAPE_SQUARE_JAW = 14,
  972. /// <summary>
  973. /// Upper Cheeks - Thin 0--+255 Puffy
  974. /// </summary>
  975. SHAPE_PUFFY_UPPER_CHEEKS = 15,
  976. /// <summary>
  977. /// Nose Tip Angle - Downturned 0--+255 Upturned
  978. /// </summary>
  979. SHAPE_UPTURNED_NOSE_TIP = 16,
  980. /// <summary>
  981. /// Nose Thickness - Thin Nose 0--+255 Bulbous Nose
  982. /// </summary>
  983. SHAPE_BULBOUS_NOSE = 17,
  984. /// <summary>
  985. /// Upper Eyelid Fold - Uncreased 0--+255 Creased
  986. /// </summary>
  987. SHAPE_UPPER_EYELID_FOLD = 18,
  988. /// <summary>
  989. /// Attached Earlobes - Unattached 0--+255 Attached
  990. /// </summary>
  991. SHAPE_ATTACHED_EARLOBES = 19,
  992. /// <summary>
  993. /// Eye Bags - Smooth 0--+255 Baggy
  994. /// </summary>
  995. SHAPE_BAGGY_EYES = 20,
  996. /// <summary>
  997. /// Eye Opening - Narrow 0--+255 Wide
  998. /// </summary>
  999. SHAPE_WIDE_EYES = 21,
  1000. /// <summary>
  1001. /// Lip Cleft - Narrow 0--+255 Wide
  1002. /// </summary>
  1003. SHAPE_WIDE_LIP_CLEFT = 22,
  1004. /// <summary>
  1005. /// Bridge Width - Narrow 0--+255 Wide
  1006. /// </summary>
  1007. SHAPE_WIDE_NOSE_BRIDGE = 23,
  1008. /// <summary>
  1009. /// Eyebrow Arc - Flat 0--+255 Arced
  1010. /// </summary>
  1011. HAIR_ARCED_EYEBROWS = 24,
  1012. /// <summary>
  1013. /// Height - Short 0--+255 Tall
  1014. /// </summary>
  1015. SHAPE_HEIGHT = 25,
  1016. /// <summary>
  1017. /// Body Thickness - Body Thin 0--+255 Body Thick
  1018. /// </summary>
  1019. SHAPE_THICKNESS = 26,
  1020. /// <summary>
  1021. /// Ear Size - Small 0--+255 Large
  1022. /// </summary>
  1023. SHAPE_BIG_EARS = 27,
  1024. /// <summary>
  1025. /// Shoulders - Narrow 0--+255 Broad
  1026. /// </summary>
  1027. SHAPE_SHOULDERS = 28,
  1028. /// <summary>
  1029. /// Hip Width - Narrow 0--+255 Wide
  1030. /// </summary>
  1031. SHAPE_HIP_WIDTH = 29,
  1032. /// <summary>
  1033. /// - Short Torso 0--+255 Long Torso
  1034. /// </summary>
  1035. SHAPE_TORSO_LENGTH = 30,
  1036. SHAPE_MALE = 31,
  1037. /// <summary>
  1038. /// - Short 0--+255 Long
  1039. /// </summary>
  1040. GLOVES_GLOVE_LENGTH = 32,
  1041. /// <summary>
  1042. /// - Darker 0--+255 Lighter
  1043. /// </summary>
  1044. EYES_EYE_LIGHTNESS = 33,
  1045. /// <summary>
  1046. /// - Natural 0--+255 Unnatural
  1047. /// </summary>
  1048. EYES_EYE_COLOR = 34,
  1049. /// <summary>
  1050. /// - Small 0--+255 Large
  1051. /// </summary>
  1052. SHAPE_BREAST_SIZE = 35,
  1053. /// <summary>
  1054. /// - None 0--+255 Wild
  1055. /// </summary>
  1056. SKIN_RAINBOW_COLOR = 36,
  1057. /// <summary>
  1058. /// Ruddiness - Pale 0--+255 Ruddy
  1059. /// </summary>
  1060. SKIN_RED_SKIN = 37,
  1061. /// <summary>
  1062. /// - Light 0--+255 Dark
  1063. /// </summary>
  1064. SKIN_PIGMENT = 38,
  1065. HAIR_RAINBOW_COLOR_39 = 39,
  1066. /// <summary>
  1067. /// - No Red 0--+255 Very Red
  1068. /// </summary>
  1069. HAIR_RED_HAIR = 40,
  1070. /// <summary>
  1071. /// - Black 0--+255 Blonde
  1072. /// </summary>
  1073. HAIR_BLONDE_HAIR = 41,
  1074. /// <summary>
  1075. /// - No White 0--+255 All White
  1076. /// </summary>
  1077. HAIR_WHITE_HAIR = 42,
  1078. /// <summary>
  1079. /// - Less Rosy 0--+255 More Rosy
  1080. /// </summary>
  1081. SKIN_ROSY_COMPLEXION = 43,
  1082. /// <summary>
  1083. /// - Darker 0--+255 Pinker
  1084. /// </summary>
  1085. SKIN_LIP_PINKNESS = 44,
  1086. /// <summary>
  1087. /// - Thin Eyebrows 0--+255 Bushy Eyebrows
  1088. /// </summary>
  1089. HAIR_EYEBROW_SIZE = 45,
  1090. /// <summary>
  1091. /// - Short 0--+255 Long
  1092. /// </summary>
  1093. HAIR_FRONT_FRINGE = 46,
  1094. /// <summary>
  1095. /// - Short 0--+255 Long
  1096. /// </summary>
  1097. HAIR_SIDE_FRINGE = 47,
  1098. /// <summary>
  1099. /// - Short 0--+255 Long
  1100. /// </summary>
  1101. HAIR_BACK_FRINGE = 48,
  1102. /// <summary>
  1103. /// - Short 0--+255 Long
  1104. /// </summary>
  1105. HAIR_HAIR_FRONT = 49,
  1106. /// <summary>
  1107. /// - Short 0--+255 Long
  1108. /// </summary>
  1109. HAIR_HAIR_SIDES = 50,
  1110. /// <summary>
  1111. /// - Short 0--+255 Long
  1112. /// </summary>
  1113. HAIR_HAIR_BACK = 51,
  1114. /// <summary>
  1115. /// - Sweep Forward 0--+255 Sweep Back
  1116. /// </summary>
  1117. HAIR_HAIR_SWEEP = 52,
  1118. /// <summary>
  1119. /// - Left 0--+255 Right
  1120. /// </summary>
  1121. HAIR_HAIR_TILT = 53,
  1122. /// <summary>
  1123. /// Middle Part - No Part 0--+255 Part
  1124. /// </summary>
  1125. HAIR_HAIR_PART_MIDDLE = 54,
  1126. /// <summary>
  1127. /// Right Part - No Part 0--+255 Part
  1128. /// </summary>
  1129. HAIR_HAIR_PART_RIGHT = 55,
  1130. /// <summary>
  1131. /// Left Part - No Part 0--+255 Part
  1132. /// </summary>
  1133. HAIR_HAIR_PART_LEFT = 56,
  1134. /// <summary>
  1135. /// Full Hair Sides - Mowhawk 0--+255 Full Sides
  1136. /// </summary>
  1137. HAIR_HAIR_SIDES_FULL = 57,
  1138. /// <summary>
  1139. /// - Less 0--+255 More
  1140. /// </summary>
  1141. SKIN_BODY_DEFINITION = 58,
  1142. /// <summary>
  1143. /// Lip Width - Narrow Lips 0--+255 Wide Lips
  1144. /// </summary>
  1145. SHAPE_LIP_WIDTH = 59,
  1146. /// <summary>
  1147. /// - Small 0--+255 Big
  1148. /// </summary>
  1149. SHAPE_BELLY_SIZE = 60,
  1150. /// <summary>
  1151. /// - Less 0--+255 More
  1152. /// </summary>
  1153. SKIN_FACIAL_DEFINITION = 61,
  1154. /// <summary>
  1155. /// - Less 0--+255 More
  1156. /// </summary>
  1157. SKIN_WRINKLES = 62,
  1158. /// <summary>
  1159. /// - Less 0--+255 More
  1160. /// </summary>
  1161. SKIN_FRECKLES = 63,
  1162. /// <summary>
  1163. /// - Short Sideburns 0--+255 Mutton Chops
  1164. /// </summary>
  1165. HAIR_SIDEBURNS = 64,
  1166. /// <summary>
  1167. /// - Chaplin 0--+255 Handlebars
  1168. /// </summary>
  1169. HAIR_MOUSTACHE = 65,
  1170. /// <summary>
  1171. /// - Less soul 0--+255 More soul
  1172. /// </summary>
  1173. HAIR_SOULPATCH = 66,
  1174. /// <summary>
  1175. /// - Less Curtains 0--+255 More Curtains
  1176. /// </summary>
  1177. HAIR_CHIN_CURTAINS = 67,
  1178. /// <summary>
  1179. /// Rumpled Hair - Smooth Hair 0--+255 Rumpled Hair
  1180. /// </summary>
  1181. HAIR_HAIR_RUMPLED = 68,
  1182. /// <summary>
  1183. /// Big Hair Front - Less 0--+255 More
  1184. /// </summary>
  1185. HAIR_HAIR_BIG_FRONT = 69,
  1186. /// <summary>
  1187. /// Big Hair Top - Less 0--+255 More
  1188. /// </summary>
  1189. HAIR_HAIR_BIG_TOP = 70,
  1190. /// <summary>
  1191. /// Big Hair Back - Less 0--+255 More
  1192. /// </summary>
  1193. HAIR_HAIR_BIG_BACK = 71,
  1194. /// <summary>
  1195. /// Spiked Hair - No Spikes 0--+255 Big Spikes
  1196. /// </summary>
  1197. HAIR_HAIR_SPIKED = 72,
  1198. /// <summary>
  1199. /// Chin Depth - Shallow 0--+255 Deep
  1200. /// </summary>
  1201. SHAPE_DEEP_CHIN = 73,
  1202. /// <summary>
  1203. /// Part Bangs - No Part 0--+255 Part Bangs
  1204. /// </summary>
  1205. HAIR_BANGS_PART_MIDDLE = 74,
  1206. /// <summary>
  1207. /// Head Shape - More Square 0--+255 More Round
  1208. /// </summary>
  1209. SHAPE_HEAD_SHAPE = 75,
  1210. /// <summary>
  1211. /// Eye Spacing - Close Set Eyes 0--+255 Far Set Eyes
  1212. /// </summary>
  1213. SHAPE_EYE_SPACING = 76,
  1214. /// <summary>
  1215. /// - Low Heels 0--+255 High Heels
  1216. /// </summary>
  1217. SHOES_HEEL_HEIGHT = 77,
  1218. /// <summary>
  1219. /// - Low Platforms 0--+255 High Platforms
  1220. /// </summary>
  1221. SHOES_PLATFORM_HEIGHT = 78,
  1222. /// <summary>
  1223. /// - Thin Lips 0--+255 Fat Lips
  1224. /// </summary>
  1225. SHAPE_LIP_THICKNESS = 79,
  1226. /// <summary>
  1227. /// Mouth Position - High 0--+255 Low
  1228. /// </summary>
  1229. SHAPE_MOUTH_HEIGHT = 80,
  1230. /// <summary>
  1231. /// Breast Buoyancy - Less Gravity 0--+255 More Gravity
  1232. /// </summary>
  1233. SHAPE_BREAST_GRAVITY = 81,
  1234. /// <summary>
  1235. /// Platform Width - Narrow 0--+255 Wide
  1236. /// </summary>
  1237. SHOES_SHOE_PLATFORM_WIDTH = 82,
  1238. /// <summary>
  1239. /// - Pointy Heels 0--+255 Thick Heels
  1240. /// </summary>
  1241. SHOES_HEEL_SHAPE = 83,
  1242. /// <summary>
  1243. /// - Pointy 0--+255 Square
  1244. /// </summary>
  1245. SHOES_TOE_SHAPE = 84,
  1246. /// <summary>
  1247. /// Foot Size - Small 0--+255 Big
  1248. /// </summary>
  1249. SHAPE_FOOT_SIZE = 85,
  1250. /// <summary>
  1251. /// Nose Width - Narrow 0--+255 Wide
  1252. /// </summary>
  1253. SHAPE_WIDE_NOSE = 86,
  1254. /// <summary>
  1255. /// Eyelash Length - Short 0--+255 Long
  1256. /// </summary>
  1257. SHAPE_EYELASHES_LONG = 87,
  1258. /// <summary>
  1259. /// - Short 0--+255 Long
  1260. /// </summary>
  1261. UNDERSHIRT_SLEEVE_LENGTH = 88,
  1262. /// <summary>
  1263. /// - Short 0--+255 Long
  1264. /// </summary>
  1265. UNDERSHIRT_BOTTOM = 89,
  1266. /// <summary>
  1267. /// - Low 0--+255 High
  1268. /// </summary>
  1269. UNDERSHIRT_COLLAR_FRONT = 90,
  1270. JACKET_SLEEVE_LENGTH_91 = 91,
  1271. JACKET_COLLAR_FRONT_92 = 92,
  1272. /// <summary>
  1273. /// Jacket Length - Short 0--+255 Long
  1274. /// </summary>
  1275. JACKET_BOTTOM_LENGTH_LOWER = 93,
  1276. /// <summary>
  1277. /// Open Front - Open 0--+255 Closed
  1278. /// </summary>
  1279. JACKET_OPEN_JACKET = 94,
  1280. /// <summary>
  1281. /// - Short 0--+255 Tall
  1282. /// </summary>
  1283. SHOES_SHOE_HEIGHT = 95,
  1284. /// <summary>
  1285. /// - Short 0--+255 Long
  1286. /// </summary>
  1287. SOCKS_SOCKS_LENGTH = 96,
  1288. /// <summary>
  1289. /// - Short 0--+255 Long
  1290. /// </summary>
  1291. UNDERPANTS_PANTS_LENGTH = 97,
  1292. /// <summary>
  1293. /// - Low 0--+255 High
  1294. /// </summary>
  1295. UNDERPANTS_PANTS_WAIST = 98,
  1296. /// <summary>
  1297. /// Cuff Flare - Tight Cuffs 0--+255 Flared Cuffs
  1298. /// </summary>
  1299. PANTS_LEG_PANTFLAIR = 99,
  1300. /// <summary>
  1301. /// - More Vertical 0--+255 More Sloped
  1302. /// </summary>
  1303. SHAPE_FOREHEAD_ANGLE = 100,
  1304. /// <summary>
  1305. /// - Less Body Fat 0--+255 More Body Fat
  1306. /// </summary>
  1307. SHAPE_BODY_FAT = 101,
  1308. /// <summary>
  1309. /// Pants Crotch - High and Tight 0--+255 Low and Loose
  1310. /// </summary>
  1311. PANTS_LOW_CROTCH = 102,
  1312. /// <summary>
  1313. /// Egg Head - Chin Heavy 0--+255 Forehead Heavy
  1314. /// </summary>
  1315. SHAPE_EGG_HEAD = 103,
  1316. /// <summary>
  1317. /// Head Stretch - Squash Head 0--+255 Stretch Head
  1318. /// </summary>
  1319. SHAPE_SQUASH_STRETCH_HEAD = 104,
  1320. /// <summary>
  1321. /// Torso Muscles - Less Muscular 0--+255 More Muscular
  1322. /// </summary>
  1323. SHAPE_TORSO_MUSCLES = 105,
  1324. /// <summary>
  1325. /// Outer Eye Corner - Corner Down 0--+255 Corner Up
  1326. /// </summary>
  1327. SHAPE_EYELID_CORNER_UP = 106,
  1328. /// <summary>
  1329. /// - Less Muscular 0--+255 More Muscular
  1330. /// </summary>
  1331. SHAPE_LEG_MUSCLES = 107,
  1332. /// <summary>
  1333. /// Lip Fullness - Less Full 0--+255 More Full
  1334. /// </summary>
  1335. SHAPE_TALL_LIPS = 108,
  1336. /// <summary>
  1337. /// Toe Thickness - Flat Toe 0--+255 Thick Toe
  1338. /// </summary>
  1339. SHOES_SHOE_TOE_THICK = 109,
  1340. /// <summary>
  1341. /// Crooked Nose - Nose Left 0--+255 Nose Right
  1342. /// </summary>
  1343. SHAPE_CROOKED_NOSE = 110,
  1344. /// <summary>
  1345. /// - Corner Down 0--+255 Corner Up
  1346. /// </summary>
  1347. SHAPE_MOUTH_CORNER = 111,
  1348. /// <summary>
  1349. /// - Shear Right Up 0--+255 Shear Left Up
  1350. /// </summary>
  1351. SHAPE_FACE_SHEAR = 112,
  1352. /// <summary>
  1353. /// Shift Mouth - Shift Left 0--+255 Shift Right
  1354. /// </summary>
  1355. SHAPE_SHIFT_MOUTH = 113,
  1356. /// <summary>
  1357. /// Eye Pop - Pop Right Eye 0--+255 Pop Left Eye
  1358. /// </summary>
  1359. SHAPE_POP_EYE = 114,
  1360. /// <summary>
  1361. /// Jaw Jut - Overbite 0--+255 Underbite
  1362. /// </summary>
  1363. SHAPE_JAW_JUT = 115,
  1364. /// <summary>
  1365. /// Shear Back - Full Back 0--+255 Sheared Back
  1366. /// </summary>
  1367. HAIR_HAIR_SHEAR_BACK = 116,
  1368. /// <summary>
  1369. /// - Small Hands 0--+255 Large Hands
  1370. /// </summary>
  1371. SHAPE_HAND_SIZE = 117,
  1372. /// <summary>
  1373. /// Love Handles - Less Love 0--+255 More Love
  1374. /// </summary>
  1375. SHAPE_LOVE_HANDLES = 118,
  1376. SHAPE_TORSO_MUSCLES_119 = 119,
  1377. /// <summary>
  1378. /// Head Size - Small Head 0--+255 Big Head
  1379. /// </summary>
  1380. SHAPE_HEAD_SIZE = 120,
  1381. /// <summary>
  1382. /// - Skinny Neck 0--+255 Thick Neck
  1383. /// </summary>
  1384. SHAPE_NECK_THICKNESS = 121,
  1385. /// <summary>
  1386. /// Breast Cleavage - Separate 0--+255 Join
  1387. /// </summary>
  1388. SHAPE_BREAST_FEMALE_CLEAVAGE = 122,
  1389. /// <summary>
  1390. /// Pectorals - Big Pectorals 0--+255 Sunken Chest
  1391. /// </summary>
  1392. SHAPE_CHEST_MALE_NO_PECS = 123,
  1393. /// <summary>
  1394. /// Eye Size - Beady Eyes 0--+255 Anime Eyes
  1395. /// </summary>
  1396. SHAPE_EYE_SIZE = 124,
  1397. /// <summary>
  1398. /// - Short Legs 0--+255 Long Legs
  1399. /// </summary>
  1400. SHAPE_LEG_LENGTH = 125,
  1401. /// <summary>
  1402. /// - Short Arms 0--+255 Long arms
  1403. /// </summary>
  1404. SHAPE_ARM_LENGTH = 126,
  1405. /// <summary>
  1406. /// - Pink 0--+255 Black
  1407. /// </summary>
  1408. SKIN_LIPSTICK_COLOR = 127,
  1409. /// <summary>
  1410. /// - No Lipstick 0--+255 More Lipstick
  1411. /// </summary>
  1412. SKIN_LIPSTICK = 128,
  1413. /// <summary>
  1414. /// - No Lipgloss 0--+255 Glossy
  1415. /// </summary>
  1416. SKIN_LIPGLOSS = 129,
  1417. /// <summary>
  1418. /// - No Eyeliner 0--+255 Full Eyeliner
  1419. /// </summary>
  1420. SKIN_EYELINER = 130,
  1421. /// <summary>
  1422. /// - No Blush 0--+255 More Blush
  1423. /// </summary>
  1424. SKIN_BLUSH = 131,
  1425. /// <summary>
  1426. /// - Pink 0--+255 Orange
  1427. /// </summary>
  1428. SKIN_BLUSH_COLOR = 132,
  1429. /// <summary>
  1430. /// - Clear 0--+255 Opaque
  1431. /// </summary>
  1432. SKIN_OUT_SHDW_OPACITY = 133,
  1433. /// <summary>
  1434. /// - No Eyeshadow 0--+255 More Eyeshadow
  1435. /// </summary>
  1436. SKIN_OUTER_SHADOW = 134,
  1437. /// <summary>
  1438. /// - Light 0--+255 Dark
  1439. /// </summary>
  1440. SKIN_OUT_SHDW_COLOR = 135,
  1441. /// <summary>
  1442. /// - No Eyeshadow 0--+255 More Eyeshadow
  1443. /// </summary>
  1444. SKIN_INNER_SHADOW = 136,
  1445. /// <summary>
  1446. /// - No Polish 0--+255 Painted Nails
  1447. /// </summary>
  1448. SKIN_NAIL_POLISH = 137,
  1449. /// <summary>
  1450. /// - Clear 0--+255 Opaque
  1451. /// </summary>
  1452. SKIN_BLUSH_OPACITY = 138,
  1453. /// <summary>
  1454. /// - Light 0--+255 Dark
  1455. /// </summary>
  1456. SKIN_IN_SHDW_COLOR = 139,
  1457. /// <summary>
  1458. /// - Clear 0--+255 Opaque
  1459. /// </summary>
  1460. SKIN_IN_SHDW_OPACITY = 140,
  1461. /// <summary>
  1462. /// - Dark Green 0--+255 Black
  1463. /// </summary>
  1464. SKIN_EYELINER_COLOR = 141,
  1465. /// <summary>
  1466. /// - Pink 0--+255 Black
  1467. /// </summary>
  1468. SKIN_NAIL_POLISH_COLOR = 142,
  1469. /// <summary>
  1470. /// - Sparse 0--+255 Dense
  1471. /// </summary>
  1472. HAIR_EYEBROW_DENSITY = 143,
  1473. /// <summary>
  1474. /// - 5 O'Clock Shadow 0--+255 Bushy Hair
  1475. /// </summary>
  1476. HAIR_HAIR_THICKNESS = 144,
  1477. /// <summary>
  1478. /// Saddle Bags - Less Saddle 0--+255 More Saddle
  1479. /// </summary>
  1480. SHAPE_SADDLEBAGS = 145,
  1481. /// <summary>
  1482. /// Taper Back - Wide Back 0--+255 Narrow Back
  1483. /// </summary>
  1484. HAIR_HAIR_TAPER_BACK = 146,
  1485. /// <summary>
  1486. /// Taper Front - Wide Front 0--+255 Narrow Front
  1487. /// </summary>
  1488. HAIR_HAIR_TAPER_FRONT = 147,
  1489. /// <summary>
  1490. /// - Short Neck 0--+255 Long Neck
  1491. /// </summary>
  1492. SHAPE_NECK_LENGTH = 148,
  1493. /// <summary>
  1494. /// Eyebrow Height - Higher 0--+255 Lower
  1495. /// </summary>
  1496. HAIR_LOWER_EYEBROWS = 149,
  1497. /// <summary>
  1498. /// Lower Bridge - Low 0--+255 High
  1499. /// </summary>
  1500. SHAPE_LOWER_BRIDGE_NOSE = 150,
  1501. /// <summary>
  1502. /// Nostril Division - High 0--+255 Low
  1503. /// </summary>
  1504. SHAPE_LOW_SEPTUM_NOSE = 151,
  1505. /// <summary>
  1506. /// Jaw Angle - Low Jaw 0--+255 High Jaw
  1507. /// </summary>
  1508. SHAPE_JAW_ANGLE = 152,
  1509. /// <summary>
  1510. /// Shear Front - Full Front 0--+255 Sheared Front
  1511. /// </summary>
  1512. HAIR_HAIR_SHEAR_FRONT = 153,
  1513. /// <summary>
  1514. /// - Less Volume 0--+255 More Volume
  1515. /// </summary>
  1516. HAIR_HAIR_VOLUME = 154,
  1517. /// <summary>
  1518. /// Lip Cleft Depth - Shallow 0--+255 Deep
  1519. /// </summary>
  1520. SHAPE_LIP_CLEFT_DEEP = 155,
  1521. /// <summary>
  1522. /// Puffy Eyelids - Flat 0--+255 Puffy
  1523. /// </summary>
  1524. SHAPE_PUFFY_LOWER_LIDS = 156,
  1525. /// <summary>
  1526. /// - Sunken Eyes 0--+255 Bugged Eyes
  1527. /// </summary>
  1528. SHAPE_EYE_DEPTH = 157,
  1529. /// <summary>
  1530. /// - Flat Head 0--+255 Long Head
  1531. /// </summary>
  1532. SHAPE_HEAD_LENGTH = 158,
  1533. /// <summary>
  1534. /// - Less Freckles 0--+255 More Freckles
  1535. /// </summary>
  1536. SKIN_BODY_FRECKLES = 159,
  1537. /// <summary>
  1538. /// - Low 0--+255 High
  1539. /// </summary>
  1540. UNDERSHIRT_COLLAR_BACK = 160,
  1541. JACKET_COLLAR_BACK_161 = 161,
  1542. SHIRT_COLLAR_BACK_162 = 162,
  1543. /// <summary>
  1544. /// - Short Pigtails 0--+255 Long Pigtails
  1545. /// </summary>
  1546. HAIR_PIGTAILS = 163,
  1547. /// <summary>
  1548. /// - Short Ponytail 0--+255 Long Ponytail
  1549. /// </summary>
  1550. HAIR_PONYTAIL = 164,
  1551. /// <summary>
  1552. /// Butt Size - Flat Butt 0--+255 Big Butt
  1553. /// </summary>
  1554. SHAPE_BUTT_SIZE = 165,
  1555. /// <summary>
  1556. /// Ear Tips - Flat 0--+255 Pointy
  1557. /// </summary>
  1558. SHAPE_POINTY_EARS = 166,
  1559. /// <summary>
  1560. /// Lip Ratio - More Upper Lip 0--+255 More Lower Lip
  1561. /// </summary>
  1562. SHAPE_LIP_RATIO = 167,
  1563. SHIRT_SLEEVE_LENGTH_168 = 168,
  1564. /// <summary>
  1565. /// - Short 0--+255 Long
  1566. /// </summary>
  1567. SHIRT_SHIRT_BOTTOM = 169,
  1568. SHIRT_COLLAR_FRONT_170 = 170,
  1569. SHIRT_SHIRT_RED = 171,
  1570. SHIRT_SHIRT_GREEN = 172,
  1571. SHIRT_SHIRT_BLUE = 173,
  1572. PANTS_PANTS_RED = 174,
  1573. PANTS_PANTS_GREEN = 175,
  1574. PANTS_PANTS_BLUE = 176,
  1575. SHOES_SHOES_RED = 177,
  1576. SHOES_SHOES_GREEN = 178,
  1577. /// <summary>
  1578. /// - Low 0--+255 High
  1579. /// </summary>
  1580. PANTS_WAIST_HEIGHT = 179,
  1581. PANTS_PANTS_LENGTH_180 = 180,
  1582. /// <summary>
  1583. /// Pants Fit - Tight Pants 0--+255 Loose Pants
  1584. /// </summary>
  1585. PANTS_LOOSE_LOWER_CLOTHING = 181,
  1586. SHOES_SHOES_BLUE = 182,
  1587. SOCKS_SOCKS_RED = 183,
  1588. SOCKS_SOCKS_GREEN = 184,
  1589. SOCKS_SOCKS_BLUE = 185,
  1590. UNDERSHIRT_UNDERSHIRT_RED = 186,
  1591. UNDERSHIRT_UNDERSHIRT_GREEN = 187,
  1592. UNDERSHIRT_UNDERSHIRT_BLUE = 188,
  1593. UNDERPANTS_UNDERPANTS_RED = 189,
  1594. UNDERPANTS_UNDERPANTS_GREEN = 190,
  1595. UNDERPANTS_UNDERPANTS_BLUE = 191,
  1596. GLOVES_GLOVES_RED = 192,
  1597. /// <summary>
  1598. /// Shirt Fit - Tight Shirt 0--+255 Loose Shirt
  1599. /// </summary>
  1600. SHIRT_LOOSE_UPPER_CLOTHING = 193,
  1601. GLOVES_GLOVES_GREEN = 194,
  1602. GLOVES_GLOVES_BLUE = 195,
  1603. JACKET_JACKET_RED = 196,
  1604. JACKET_JACKET_GREEN = 197,
  1605. JACKET_JACKET_BLUE = 198,
  1606. /// <summary>
  1607. /// Sleeve Looseness - Tight Sleeves 0--+255 Loose Sleeves
  1608. /// </summary>
  1609. SHIRT_SHIRTSLEEVE_FLAIR = 199,
  1610. /// <summary>
  1611. /// Knee Angle - Knock Kneed 0--+255 Bow Legged
  1612. /// </summary>
  1613. SHAPE_BOWED_LEGS = 200,
  1614. /// <summary>
  1615. /// - Short hips 0--+255 Long Hips
  1616. /// </summary>
  1617. SHAPE_HIP_LENGTH = 201,
  1618. /// <summary>
  1619. /// - Fingerless 0--+255 Fingers
  1620. /// </summary>
  1621. GLOVES_GLOVE_FINGERS = 202,
  1622. /// <summary>
  1623. /// bustle skirt - no bustle 0--+255 more bustle
  1624. /// </summary>
  1625. SKIRT_SKIRT_BUSTLE = 203,
  1626. /// <summary>
  1627. /// - Short 0--+255 Long
  1628. /// </summary>
  1629. SKIRT_SKIRT_LENGTH = 204,
  1630. /// <summary>
  1631. /// - Open Front 0--+255 Closed Front
  1632. /// </summary>
  1633. SKIRT_SLIT_FRONT = 205,
  1634. /// <summary>
  1635. /// - Open Back 0--+255 Closed Back
  1636. /// </summary>
  1637. SKIRT_SLIT_BACK = 206,
  1638. /// <summary>
  1639. /// - Open Left 0--+255 Closed Left
  1640. /// </summary>
  1641. SKIRT_SLIT_LEFT = 207,
  1642. /// <summary>
  1643. /// - Open Right 0--+255 Closed Right
  1644. /// </summary>
  1645. SKIRT_SLIT_RIGHT = 208,
  1646. /// <summary>
  1647. /// Skirt Fit - Tight Skirt 0--+255 Poofy Skirt
  1648. /// </summary>
  1649. SKIRT_SKIRT_LOOSENESS = 209,
  1650. SHIRT_SHIRT_WRINKLES = 210,
  1651. PANTS_PANTS_WRINKLES = 211,
  1652. /// <summary>
  1653. /// Jacket Wrinkles - No Wrinkles 0--+255 Wrinkles
  1654. /// </summary>
  1655. JACKET_JACKET_WRINKLES = 212,
  1656. /// <summary>
  1657. /// Package - Coin Purse 0--+255 Duffle Bag
  1658. /// </summary>
  1659. SHAPE_MALE_PACKAGE = 213,
  1660. /// <summary>
  1661. /// Inner Eye Corner - Corner Down 0--+255 Corner Up
  1662. /// </summary>
  1663. SHAPE_EYELID_INNER_CORNER_UP = 214,
  1664. SKIRT_SKIRT_RED = 215,
  1665. SKIRT_SKIRT_GREEN = 216,
  1666. SKIRT_SKIRT_BLUE = 217,
  1667. /// <summary>
  1668. /// Avatar Physics section. These are 0 type visual params which get transmitted.
  1669. /// </summary>
  1670. /// <summary>
  1671. /// Breast Part 1
  1672. /// </summary>
  1673. BREAST_PHYSICS_MASS = 218,
  1674. BREAST_PHYSICS_GRAVITY = 219,
  1675. BREAST_PHYSICS_DRAG = 220,
  1676. BREAST_PHYSICS_UPDOWN_MAX_EFFECT = 221,
  1677. BREAST_PHYSICS_UPDOWN_SPRING = 222,
  1678. BREAST_PHYSICS_UPDOWN_GAIN = 223,
  1679. BREAST_PHYSICS_UPDOWN_DAMPING = 224,
  1680. BREAST_PHYSICS_INOUT_MAX_EFFECT = 225,
  1681. BREAST_PHYSICS_INOUT_SPRING = 226,
  1682. BREAST_PHYSICS_INOUT_GAIN = 227,
  1683. BREAST_PHYSICS_INOUT_DAMPING = 228,
  1684. /// <summary>
  1685. /// Belly
  1686. /// </summary>
  1687. BELLY_PHYISCS_MASS = 229,
  1688. BELLY_PHYSICS_GRAVITY = 230,
  1689. BELLY_PHYSICS_DRAG = 231,
  1690. BELLY_PHYISCS_UPDOWN_MAX_EFFECT = 232,
  1691. BELLY_PHYSICS_UPDOWN_SPRING = 233,
  1692. BELLY_PHYSICS_UPDOWN_GAIN = 234,
  1693. BELLY_PHYSICS_UPDOWN_DAMPING = 235,
  1694. /// <summary>
  1695. /// Butt
  1696. /// </summary>
  1697. BUTT_PHYSICS_MASS = 236,
  1698. BUTT_PHYSICS_GRAVITY = 237,
  1699. BUTT_PHYSICS_DRAG = 238,
  1700. BUTT_PHYSICS_UPDOWN_MAX_EFFECT = 239,
  1701. BUTT_PHYSICS_UPDOWN_SPRING = 240,
  1702. BUTT_PHYSICS_UPDOWN_GAIN = 241,
  1703. BUTT_PHYSICS_UPDOWN_DAMPING = 242,
  1704. BUTT_PHYSICS_LEFTRIGHT_MAX_EFFECT = 243,
  1705. BUTT_PHYSICS_LEFTRIGHT_SPRING = 244,
  1706. BUTT_PHYSICS_LEFTRIGHT_GAIN = 245,
  1707. BUTT_PHYSICS_LEFTRIGHT_DAMPING = 246,
  1708. /// <summary>
  1709. /// Breast Part 2
  1710. /// </summary>
  1711. BREAST_PHYSICS_LEFTRIGHT_MAX_EFFECT = 247,
  1712. BREAST_PHYSICS_LEFTRIGHT_SPRING= 248,
  1713. BREAST_PHYSICS_LEFTRIGHT_GAIN = 249,
  1714. BREAST_PHYSICS_LEFTRIGHT_DAMPING = 250,
  1715. // Ubit: 07/96/2013 new parameters
  1716. _APPEARANCEMESSAGE_VERSION = 251, //ID 11000
  1717. SHAPE_HOVER = 252, //ID 11001
  1718. }
  1719. #endregion
  1720. }
  1721. }