Initial changes to GUI sprite code. (There shouldn't be any visible effects - if there are, they're bugs)

This was SVN commit r1507.
This commit is contained in:
Ykkrosh
2004-12-15 21:24:46 +00:00
parent cb5759c737
commit c19f3608a5
27 changed files with 499 additions and 376 deletions
+3 -3
View File
@@ -17,7 +17,7 @@ using namespace std;
//-------------------------------------------------------------------
CImage::CImage()
{
AddSetting(GUIST_CStr, "sprite");
AddSetting(GUIST_CGUISpriteInstance, "sprite");
}
CImage::~CImage()
@@ -30,8 +30,8 @@ void CImage::Draw()
{
float bz = GetBufferedZ();
CStr sprite;
GUI<CStr>::GetSetting(this, "sprite", sprite);
CGUISpriteInstance sprite;
GUI<CGUISpriteInstance>::GetSetting(this, "sprite", sprite);
GetGUI()->DrawSprite(sprite, bz, m_CachedActualSize);
}