Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/gui/GUItext.cpp
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | if (_to == _from && textChunk.m_From == textChunk.m_To) | ||||
} | } | ||||
const TextChunk::Tag& tag = textChunk.m_Tags[0]; | const TextChunk::Tag& tag = textChunk.m_Tags[0]; | ||||
ENSURE(tag.m_TagType == TextChunk::Tag::TAG_IMGLEFT || | ENSURE(tag.m_TagType == TextChunk::Tag::TAG_IMGLEFT || | ||||
tag.m_TagType == TextChunk::Tag::TAG_IMGRIGHT || | tag.m_TagType == TextChunk::Tag::TAG_IMGRIGHT || | ||||
tag.m_TagType == TextChunk::Tag::TAG_ICON); | tag.m_TagType == TextChunk::Tag::TAG_ICON); | ||||
const std::string& path = utf8_from_wstring(tag.m_TagValue); | const std::string& path = utf8_from_wstring(tag.m_TagValue); | ||||
if (!pGUI->IconExists(path)) | if (!pGUI->HasIcon(path)) | ||||
{ | { | ||||
if (pObject) | if (pObject) | ||||
LOGERROR("Trying to use an icon, imgleft or imgright-tag with an undefined icon (\"%s\").", path.c_str()); | LOGERROR("Trying to use an icon, imgleft or imgright-tag with an undefined icon (\"%s\").", path.c_str()); | ||||
continue; | continue; | ||||
} | } | ||||
switch (tag.m_TagType) | switch (tag.m_TagType) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 364 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator