Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int XT_print(lua_State *L)
- {
- int argc = lua_gettop(L);
- if (argc != 3 && argc != 4) return luaL_error(L, "Xtream.print(x,y,text [,color]): wrong number of arguments");
- int posx = luaL_checkint(L, 1);
- int posy = luaL_checkint(L, 2) + 10;
- intraFontSetStyle(luaFont, 0.9f, argc == 3 ? 0xFFFFFFFF : luaL_checknumber(L, 4), 0, 0, INTRAFONT_ALIGN_LEFT);
- lua_pushnumber(L, intraFontPrint(luaFont, posx, posy, luaL_checkstring(L, 3)));
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement