mirror of
https://github.com/edubart/otclient.git
synced 2026-01-09 07:41:29 +01:00
ui and graphics changes
* implement draw clipping using opengl stencil buffers * allow to create Widgets by style name with g_ui.createWidgetByStyle * styles can now have children widgets * make proper use of the isNotPathable in pathfinding * add scrollbar skin
This commit is contained in:
@@ -36,8 +36,9 @@ OTMLDocumentPtr OTMLDocument::create()
|
||||
OTMLDocumentPtr OTMLDocument::parse(const std::string& fileName)
|
||||
{
|
||||
std::stringstream fin;
|
||||
g_resources.loadFile(fileName, fin);
|
||||
return parse(fin, fileName);
|
||||
std::string source = g_resources.checkPath(fileName);
|
||||
g_resources.loadFile(source, fin);
|
||||
return parse(fin, source);
|
||||
}
|
||||
|
||||
OTMLDocumentPtr OTMLDocument::parse(std::istream& in, const std::string& source)
|
||||
|
||||
Reference in New Issue
Block a user