fixed lua crash on wrong command
This commit is contained in:
parent
64247c75e0
commit
dbbe726859
@ -24,6 +24,6 @@ void ScriptNode::execute(std::string to_execute){
|
|||||||
try{
|
try{
|
||||||
s.script(to_execute);
|
s.script(to_execute);
|
||||||
}catch(sol::error error_lua){
|
}catch(sol::error error_lua){
|
||||||
std::cerr << error_lua.what() << std::endl;
|
this->getEngine().getShell()->out(error_lua.what(),glm::vec3(1,0,0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@ SparrowShell::SparrowShell(sf::Window* window):
|
|||||||
RESOURCE_ADD(fonte_des_neiges,Font,"shellfont");
|
RESOURCE_ADD(fonte_des_neiges,Font,"shellfont");
|
||||||
|
|
||||||
//Create mesh for background
|
//Create mesh for background
|
||||||
m_background = new BackGroundNode(glm::vec2(0),m_dimension,glm::vec3(0.1,0.1,0.1),0.5,SHELL_DEPTH,false);
|
m_background = new BackGroundNode(glm::vec2(0),m_dimension,glm::vec3(0.1,0.1,0.1),0.75,SHELL_DEPTH,false);
|
||||||
//Create mesh for scrollbar
|
//Create mesh for scrollbar
|
||||||
m_scrollbar = new ShellScrollBar(this);
|
m_scrollbar = new ShellScrollBar(this);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user