libhsplasma icon indicating copy to clipboard operation
libhsplasma copied to clipboard

pyClothingItem index safety and extra properties

Open Jrius opened this issue 3 years ago • 0 comments

pyClothingItem was missing a few things to be properly usable, so I made the following modifications:

  • Added constants pyClothingItem.kNumLODLevels and pyClothingItem.kLayerMax.
  • Added pyClothingItem.numElements getter (as well as matching plClothingItem::getNumElements()).
  • The following will throw an IndexError when appropriate instead of crashing:
    • getElementTexture
    • setElementTexture
    • getElementName
    • setElementName
    • delElement

Jrius avatar Jul 23 '22 18:07 Jrius