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
+10 -2
View File
@@ -184,7 +184,7 @@ bool __ParseString<EVAlign>(const CStr &Value, EVAlign &Output)
template <>
bool __ParseString<CGUIString>(const CStr& Value, CGUIString &Output)
{
// Translate the Value and retrieve the locilised string in
// Translate the Value and retrieve the localised string in
// Unicode.
Output.SetValue(translate((CStrW)Value));
@@ -194,13 +194,20 @@ bool __ParseString<CGUIString>(const CStr& Value, CGUIString &Output)
template <>
bool __ParseString<CStrW>(const CStr& Value, CStrW &Output)
{
// Translate the Value and retrieve the locilised string in
// Translate the Value and retrieve the localised string in
// Unicode.
Output = translate((CStrW)Value);
return true;
}
template <>
bool __ParseString<CGUISpriteInstance>(const CStr& Value, CGUISpriteInstance &Output)
{
Output = Value;
return true;
}
//--------------------------------------------------------
// Help Classes/Structs for the GUI implementation
//--------------------------------------------------------
@@ -397,6 +404,7 @@ void CInternalCGUIAccessorBase::HandleMessage(IGUIObject *pObject, const SGUIMes
TYPE(CStrW)
TYPE(CColor)
TYPE(CGUIString)
TYPE(CGUISpriteInstance)
TYPE(EAlign)
TYPE(EVAlign)
#undef TYPE