KingTitan scrie: ↑28 Iul 2020, 14:38
Refa partea de aniImage
[ Postat de pe iPhone ]
Du-te in:
PythonWindow.cpp si modifca asa
Cod: Selectaţi tot
#ifdef ENABLE_SASH_SYSTEM
void CAniImageBox::AppendImage(const char * c_szFileName);
#endif
{
CResource * pResource = CResourceManager::Instance().GetResourcePointer(c_szFileName);
if (!pResource->IsType(CGraphicImage::Type()))
return;
CGraphicExpandedImageInstance * pImageInstance = CGraphicExpandedImageInstance::New();
pImageInstance->SetImagePointer(static_cast<CGraphicImage*>(pResource));
#ifdef ENABLE_SASH_SYSTEM
pImageInstance->SetDiffuseColor(r, g, b, a);
#endif
if (pImageInstance->IsEmpty())
{
CGraphicExpandedImageInstance::Delete(pImageInstance);
return;
}
m_ImageVector.push_back(pImageInstance);
m_bycurIndex = rand() % m_ImageVector.size();
}
si in PythonWindow.h asa
Cod: Selectaţi tot
#ifdef ENABLE_SASH_SYSTEM
void AppendImage(const char * c_szFileName);
#endif
+ pt eroarea cu R,G,B,A modifica in pythonwindow.cpp:
Cod: Selectaţi tot
#ifdef ENABLE_SASH_SYSTEM
pImageInstance->SetDiffuseColor(1.0f, 1.0f, 1.0f, 1.0f);
#endif
Ultima oară modificat 28 Iul 2020, 17:21 de către
Mr. Essex, modificat 1 dată în total.