MCPcopy Create free account
hub / github.com/clementgallet/libTAS / window

Method window

src/program/lua/Gui.cpp:95–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95int 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
111int Lua::Gui::pixel(lua_State *L)
112{

Callers 4

dataMethod · 0.80
headerDataMethod · 0.80
dataMethod · 0.80
dataMethod · 0.80

Calls 3

sendMessageFunction · 0.85
sendDataFunction · 0.85
sendStringFunction · 0.85

Tested by

no test coverage detected