MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / SetImgState

Method SetImgState

LuaSTGPlus/LuaWrapper.cpp:708–721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706 return 0;
707 }
708 static int SetImgState(lua_State* L)LNOEXCEPT
709 {
710 if (!lua_istable(L, 1))
711 return luaL_error(L, "invalid lstg object for 'SetImgState'.");
712 lua_rawgeti(L, 1, 2); // t(object) ??? id
713 size_t id = (size_t)luaL_checkinteger(L, -1);
714 lua_pop(L, 1);
715
716 BlendMode m = TranslateBlendMode(L, 2);
717 fcyColor c(luaL_checkinteger(L, 3), luaL_checkinteger(L, 4), luaL_checkinteger(L, 5), luaL_checkinteger(L, 6));
718 if (!LPOOL.SetImgState(id, m, c))
719 return luaL_error(L, "invalid lstg object for 'SetImgState'.");
720 return 0;
721 }
722 static int BoxCheck(lua_State* L)LNOEXCEPT
723 {
724 if (!lua_istable(L, 1))

Callers

nothing calls this directly

Calls 1

TranslateBlendModeFunction · 0.85

Tested by

no test coverage detected