| 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)); |
nothing calls this directly
no test coverage detected