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

Method SetFontState

LuaSTGPlus/LuaWrapper.cpp:1128–1141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1126 return 0;
1127 }
1128 static int SetFontState(lua_State* L)LNOEXCEPT
1129 {
1130 ResFont* p = LRES.FindSpriteFont(luaL_checkstring(L, 1));
1131 if (!p)
1132 return luaL_error(L, "sprite font '%s' not found.", luaL_checkstring(L, 1));
1133
1134 p->SetBlendMode(TranslateBlendMode(L, 2));
1135 if (lua_gettop(L) == 3)
1136 {
1137 fcyColor c = *static_cast<fcyColor*>(luaL_checkudata(L, 3, TYPENAME_COLOR));
1138 p->SetBlendColor(c);
1139 }
1140 return 0;
1141 }
1142 static int SetAnimationState(lua_State* L)LNOEXCEPT
1143 {
1144 ResAnimation* p = LRES.FindAnimation(luaL_checkstring(L, 1));

Callers

nothing calls this directly

Calls 4

TranslateBlendModeFunction · 0.85
FindSpriteFontMethod · 0.80
SetBlendColorMethod · 0.80
SetBlendModeMethod · 0.45

Tested by

no test coverage detected