Ejemplo n.º 1
0
	UString Message::getButtonName(MessageBoxStyle _style)
	{
		size_t index = _style.getButtonIndex();
		const char* tag = getButtonTag(index);
		UString result = LanguageManager::getInstance().replaceTags(utility::toString("#{", tag, "}"));
		if (result == tag) return getButtonName(index);
		return result;
	}
		Ogre::UTFString MessageFactory::getButtonName(MessageBoxStyle _style)
		{
			size_t index = _style.getButtonIndex();
			if (mVectorButtonName.size() <= index) return "";
			return mVectorButtonName[index];
		}