コード例 #1
0
ファイル: MyGUI_Gui.cpp プロジェクト: twktheainur/vortex-ee
	void Gui::_load(xml::xmlNodePtr _node, const std::string & _file)
	{
		// берем детей и крутимс¤, основной цикл
		xml::xmlNodeIterator node = _node->getNodeIterator();
		while (node.nextNode(XML_TYPE)) {
			std::string source;
			if (false == node->findAttribute("file", source)) continue;
			std::string group = node->findAttribute("group");
			MYGUI_LOG(Info, "Load ini file '" << source << "' from " << (group.empty() ? "current path" : "resource group : ") << group);
			_loadImplement(source, group, false, "", INSTANCE_TYPE_NAME);
		};
	}
コード例 #2
0
	void ResourceManager::_loadList(xml::ElementPtr _node, const std::string& _file, Version _version)
	{
		// берем детей и крутимся, основной цикл
		xml::ElementEnumerator node = _node->getElementEnumerator();
		while (node.next(XML_TYPE_LIST))
		{
			std::string source;
			if (!node->findAttribute("file", source)) continue;
			MYGUI_LOG(Info, "Load ini file '" << source << "'");
			_loadImplement(source, false, "", INSTANCE_TYPE_NAME);
		}
	}
コード例 #3
0
ファイル: MyGUI_Gui.cpp プロジェクト: twktheainur/vortex-ee
	bool Gui::load(const std::string & _file, const std::string & _group)
	{
		return _loadImplement(_file, _group, false, "", INSTANCE_TYPE_NAME);
	}
コード例 #4
0
	bool ResourceManager::load(const std::string& _file)
	{
		return _loadImplement(_file, false, "", INSTANCE_TYPE_NAME);
	}
コード例 #5
0
ファイル: MyGUI_ResourceManager.cpp プロジェクト: alexis-/iwe
	bool ResourceManager::load(const std::string& _file)
	{
		return _loadImplement(_file, false, "", getClassTypeName());
	}