mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-22 07:46:53 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user