mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-15 22:08:43 +00:00
Changed: Replaced NLMISC::strlwr by NLMISC::toLower
This commit is contained in:
parent
36bb5a7202
commit
5517445297
1 changed files with 3 additions and 6 deletions
|
@ -86,8 +86,7 @@ bool CCtrlTextButton::parse(xmlNodePtr cur, CInterfaceGroup * parentGroup)
|
||||||
prop = (char*) xmlGetProp( cur, (xmlChar*)"tx_normal" );
|
prop = (char*) xmlGetProp( cur, (xmlChar*)"tx_normal" );
|
||||||
if (prop)
|
if (prop)
|
||||||
{
|
{
|
||||||
string TxName = (const char *) prop;
|
string TxName = toLower(std::string((const char *) prop));
|
||||||
TxName = strlwr(TxName);
|
|
||||||
_TextureIdNormal[0].setTexture((TxName+"_l.tga").c_str());
|
_TextureIdNormal[0].setTexture((TxName+"_l.tga").c_str());
|
||||||
_TextureIdNormal[1].setTexture((TxName+"_m.tga").c_str());
|
_TextureIdNormal[1].setTexture((TxName+"_m.tga").c_str());
|
||||||
_TextureIdNormal[2].setTexture((TxName+"_r.tga").c_str());
|
_TextureIdNormal[2].setTexture((TxName+"_r.tga").c_str());
|
||||||
|
@ -96,8 +95,7 @@ bool CCtrlTextButton::parse(xmlNodePtr cur, CInterfaceGroup * parentGroup)
|
||||||
prop = (char*) xmlGetProp( cur, (xmlChar*)"tx_pushed" );
|
prop = (char*) xmlGetProp( cur, (xmlChar*)"tx_pushed" );
|
||||||
if (prop)
|
if (prop)
|
||||||
{
|
{
|
||||||
string TxName = (const char *) prop;
|
string TxName = toLower(std::string((const char *) prop));
|
||||||
TxName = strlwr(TxName);
|
|
||||||
_TextureIdPushed[0].setTexture((TxName+"_l.tga").c_str());
|
_TextureIdPushed[0].setTexture((TxName+"_l.tga").c_str());
|
||||||
_TextureIdPushed[1].setTexture((TxName+"_m.tga").c_str());
|
_TextureIdPushed[1].setTexture((TxName+"_m.tga").c_str());
|
||||||
_TextureIdPushed[2].setTexture((TxName+"_r.tga").c_str());
|
_TextureIdPushed[2].setTexture((TxName+"_r.tga").c_str());
|
||||||
|
@ -106,8 +104,7 @@ bool CCtrlTextButton::parse(xmlNodePtr cur, CInterfaceGroup * parentGroup)
|
||||||
prop = (char*) xmlGetProp( cur, (xmlChar*)"tx_over" );
|
prop = (char*) xmlGetProp( cur, (xmlChar*)"tx_over" );
|
||||||
if (prop)
|
if (prop)
|
||||||
{
|
{
|
||||||
string TxName = (const char *) prop;
|
string TxName = toLower(std::string((const char *) prop));
|
||||||
TxName = strlwr(TxName);
|
|
||||||
_TextureIdOver[0].setTexture((TxName+"_l.tga").c_str());
|
_TextureIdOver[0].setTexture((TxName+"_l.tga").c_str());
|
||||||
_TextureIdOver[1].setTexture((TxName+"_m.tga").c_str());
|
_TextureIdOver[1].setTexture((TxName+"_m.tga").c_str());
|
||||||
_TextureIdOver[2].setTexture((TxName+"_r.tga").c_str());
|
_TextureIdOver[2].setTexture((TxName+"_r.tga").c_str());
|
||||||
|
|
Loading…
Reference in a new issue