|
|
@ -1127,11 +1127,21 @@ void CDBCtrlSheet::infoReceived()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!brick->isRoot() && !brick->isCredit() && !brick->isParameter())
|
|
|
|
else if (!brick->isRoot() && !brick->isCredit() && !brick->isParameter())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (!haveRoot && !brick->getIconBack().empty())
|
|
|
|
if (!haveRoot)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
haveRoot = true;
|
|
|
|
|
|
|
|
if (brick->getIconBack().empty())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
// use blank texture with size from main icon
|
|
|
|
|
|
|
|
_EnchantIcons.push_back(SBuffIcon(rVR.getTextureIdFromName("blank.tga"), NLMISC::CRGBA::White));
|
|
|
|
|
|
|
|
rVR.getTextureSizeFromId(rVR.getTextureIdFromName(brick->getIcon()), _EnchantIcons.back().IconW, _EnchantIcons.back().IconH);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_EnchantIcons.push_back(SBuffIcon(rVR.getTextureIdFromName(brick->getIconBack()), brick->IconBackColor));
|
|
|
|
_EnchantIcons.push_back(SBuffIcon(rVR.getTextureIdFromName(brick->getIconBack()), brick->IconBackColor));
|
|
|
|
rVR.getTextureSizeFromId(_EnchantIcons.back().TextureId, _EnchantIcons.back().IconW, _EnchantIcons.back().IconH);
|
|
|
|
rVR.getTextureSizeFromId(_EnchantIcons.back().TextureId, _EnchantIcons.back().IconW, _EnchantIcons.back().IconH);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
_EnchantIcons.push_back(SBuffIcon(rVR.getTextureIdFromName(brick->getIcon()), brick->IconColor));
|
|
|
|
_EnchantIcons.push_back(SBuffIcon(rVR.getTextureIdFromName(brick->getIcon()), brick->IconColor));
|
|
|
|
rVR.getTextureSizeFromId(_EnchantIcons.back().TextureId, _EnchantIcons.back().IconW, _EnchantIcons.back().IconH);
|
|
|
|
rVR.getTextureSizeFromId(_EnchantIcons.back().TextureId, _EnchantIcons.back().IconW, _EnchantIcons.back().IconH);
|
|
|
|
}
|
|
|
|
}
|
|
|
|