From 1f7e8b41d70ff2b97af119ac49180e05eb85ef87 Mon Sep 17 00:00:00 2001 From: "M. Liebmann" Date: Tue, 21 Jan 2014 17:20:40 +0100 Subject: [PATCH] CLuaInstance: Add parameter 'vertical' to CLuaSignalBox --- src/gui/luainstance.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/luainstance.cpp b/src/gui/luainstance.cpp index 73ad1b0e4..d326cf31f 100644 --- a/src/gui/luainstance.cpp +++ b/src/gui/luainstance.cpp @@ -1400,14 +1400,16 @@ int CLuaInstance::SignalBoxNew(lua_State *L) std::string name, icon = std::string(NEUTRINO_ICON_INFO); int x = 110, y = 150, dx = 430, dy = 150; + int vertical = true; tableLookup(L, "x", x); tableLookup(L, "y", y); tableLookup(L, "dx", dx); tableLookup(L, "dy", dy); + tableLookup(L, "vertical", vertical); CLuaSignalBox **udata = (CLuaSignalBox **) lua_newuserdata(L, sizeof(CLuaSignalBox *)); *udata = new CLuaSignalBox(); - (*udata)->s = new CSignalBox(x, y, dx, dy); + (*udata)->s = new CSignalBox(x, y, dx, dy, NULL, (vertical!=0)?true:false); luaL_getmetatable(L, "signalbox"); lua_setmetatable(L, -2); return 1;