diff options
author | krzys-h <krzys_h@interia.pl> | 2014-09-26 20:53:11 +0200 |
---|---|---|
committer | krzys-h <krzys_h@interia.pl> | 2014-09-26 20:53:11 +0200 |
commit | de375548ade0015f6466fae74dc1fe9bba7c8357 (patch) | |
tree | 2d2f0dc31cd5e73a4b01ab50d98bf00bccd3d8d1 /src/ui/edit.cpp | |
parent | 3b1cfdbfb4e57aff7c4d651ea2a14aceab36be14 (diff) | |
download | colobot-de375548ade0015f6466fae74dc1fe9bba7c8357.tar.gz colobot-de375548ade0015f6466fae74dc1fe9bba7c8357.tar.bz2 colobot-de375548ade0015f6466fae74dc1fe9bba7c8357.zip |
Userlevel listing
Diffstat (limited to 'src/ui/edit.cpp')
-rw-r--r-- | src/ui/edit.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ui/edit.cpp b/src/ui/edit.cpp index 8f46e42..68c503b 100644 --- a/src/ui/edit.cpp +++ b/src/ui/edit.cpp @@ -24,6 +24,8 @@ #include "object/robotmain.h" +#include "object/level/parserparam.h" + #include "common/resources/inputstream.h" #include "common/resources/outputstream.h" @@ -788,7 +790,7 @@ void CEdit::HyperJump(std::string name, std::string marker) sMarker = marker; filename = name + std::string(".txt"); - CRobotMain::InjectLevelDir(filename, "help/%lng%"); + filename = CLevelParserParam::InjectLevelDir(filename, "help/%lng%"); boost::replace_all(filename, "\\", "/"); //TODO: Fix this in files if ( ReadText(filename) ) @@ -1144,7 +1146,7 @@ void CEdit::DrawImage(Math::Point pos, std::string name, float width, std::string filename; filename = name + ".png"; - CRobotMain::InjectLevelDir(filename, "icons"); + filename = CLevelParserParam::InjectLevelDir(filename, "icons"); boost::replace_all(filename, "\\", "/"); //TODO: Fix this in files m_engine->SetTexture(filename); @@ -1434,7 +1436,7 @@ void CEdit::LoadImage(std::string name) { std::string filename; filename = name + ".png"; - CRobotMain::InjectLevelDir(filename, "icons"); + filename = CLevelParserParam::InjectLevelDir(filename, "icons"); boost::replace_all(filename, "\\", "/"); //TODO: Fix this in files m_engine->LoadTexture(filename); } |