| 93 | } |
| 94 | |
| 95 | int Lua::Gui::window(lua_State *L) |
| 96 | { |
| 97 | float x = lua_tonumber(L, 1); |
| 98 | float y = lua_tonumber(L, 2); |
| 99 | std::string id = luaL_checklstring(L, 3, nullptr); |
| 100 | std::string text = luaL_checklstring(L, 4, nullptr); |
| 101 | |
| 102 | sendMessage(MSGN_LUA_WINDOW); |
| 103 | sendData(&x, sizeof(float)); |
| 104 | sendData(&y, sizeof(float)); |
| 105 | sendString(id); |
| 106 | sendString(text); |
| 107 | |
| 108 | return 0; |
| 109 | } |
| 110 | |
| 111 | int Lua::Gui::pixel(lua_State *L) |
| 112 | { |
no test coverage detected