5 #include "textscroller.hpp"
6 #include "functions.hpp"
7 #include "script_interpreter.hpp"
8 #include "tinygettext/tinygettext.hpp"
9 #include "resources.hpp"
10 #include "gettext.hpp"
15 void wait(float seconds)
17 ScriptInterpreter::current()->set_wakeup_time(seconds);
20 std::string translate(const std::string& text)
22 return dictionary_manager.get_dictionary().translate(text);
25 void display_text_file(const std::string& filename)
28 = ScriptInterpreter::current()->get_working_directory() + filename;
29 ::display_text_file(file);
32 void import(HSQUIRRELVM v, const std::string& filename)
35 = ScriptInterpreter::current()->get_working_directory() + filename;
36 if(sqstd_loadfile(v, file.c_str(), true) < 0) {
37 std::cerr << "Warning couldn't load script '" << filename << "' ("
43 if(sq_call(v, 1, false) < 0) {
44 std::cerr << "Couldn't execute script '" << filename << "' ("