mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Avatar Clothing data => plString
This commit is contained in:
@ -565,12 +565,12 @@ Interval plClothingMtl::DisplacementValidity(TimeValue t)
|
||||
return iv;
|
||||
}
|
||||
|
||||
plClothingElement *plClothingMtl::FindElementByName(char *name)
|
||||
plClothingElement *plClothingMtl::FindElementByName(const plString &name) const
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < fElements.GetCount(); i++)
|
||||
{
|
||||
if (!strcmp(fElements.Get(i)->fName, name))
|
||||
if (fElements.Get(i)->fName == name)
|
||||
return fElements.Get(i);
|
||||
}
|
||||
return nil;
|
||||
|
@ -48,6 +48,7 @@ class Bitmap;
|
||||
class plClothingItem;
|
||||
class plMaxNode;
|
||||
class plClothingElement;
|
||||
class plString;
|
||||
class Texmap;
|
||||
|
||||
#define CLOTHING_MTL_CLASS_ID Class_ID(0x792c6de4, 0x1f952b65)
|
||||
@ -130,7 +131,7 @@ public:
|
||||
hsTArray<plClothingElement *> fElements;
|
||||
virtual void InitTilesets();
|
||||
virtual void ReleaseTilesets();
|
||||
plClothingElement *FindElementByName(char *name);
|
||||
plClothingElement *FindElementByName(const plString &name) const;
|
||||
|
||||
int GetTilesetIndex() { return fBasicPB->GetInt(ParamID(kTileset)); }
|
||||
Texmap *GetTexmap(int index, int layer);
|
||||
|
@ -195,7 +195,7 @@ public:
|
||||
{
|
||||
plClothingElement *element = tileset->fElements.Get(i);
|
||||
SendMessage(GetDlgItem(hWnd, plClothingMtl::TextConstants[2 * i]),
|
||||
WM_SETTEXT, NULL, (LPARAM)element->fName);
|
||||
WM_SETTEXT, NULL, (LPARAM)element->fName.c_str());
|
||||
sprintf(buff, "(%d, %d)", element->fWidth, element->fHeight);
|
||||
SendMessage(GetDlgItem(hWnd, plClothingMtl::TextConstants[2 * i + 1]),
|
||||
WM_SETTEXT, NULL, (LPARAM)buff);
|
||||
|
Reference in New Issue
Block a user