mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-23 23:48:35 +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:
+10
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user