mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 21:01:04 +00:00
Merge branch 'kart-luatextures-backport' into 'next'
Lua: Kart textures backport (non-foolish vers) See merge request STJr/SRB2!391
This commit is contained in:
commit
4c69fe23f6
2 changed files with 27 additions and 4 deletions
|
@ -1682,6 +1682,25 @@ static int lib_rSetPlayerSkin(lua_State *L)
|
|||
return 0;
|
||||
}
|
||||
|
||||
// R_DATA
|
||||
////////////
|
||||
|
||||
static int lib_rCheckTextureNumForName(lua_State *L)
|
||||
{
|
||||
const char *name = luaL_checkstring(L, 1);
|
||||
//HUDSAFE
|
||||
lua_pushinteger(L, R_CheckTextureNumForName(name));
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int lib_rTextureNumForName(lua_State *L)
|
||||
{
|
||||
const char *name = luaL_checkstring(L, 1);
|
||||
//HUDSAFE
|
||||
lua_pushinteger(L, R_TextureNumForName(name));
|
||||
return 1;
|
||||
}
|
||||
|
||||
// S_SOUND
|
||||
////////////
|
||||
|
||||
|
@ -2165,6 +2184,10 @@ static luaL_Reg lib[] = {
|
|||
{"R_Frame2Char",lib_rFrame2Char},
|
||||
{"R_SetPlayerSkin",lib_rSetPlayerSkin},
|
||||
|
||||
// r_data
|
||||
{"R_CheckTextureNumForName",lib_rCheckTextureNumForName},
|
||||
{"R_TextureNumForName",lib_rTextureNumForName},
|
||||
|
||||
// s_sound
|
||||
{"S_StartSound",lib_sStartSound},
|
||||
{"S_StartSoundAtVolume",lib_sStartSoundAtVolume},
|
||||
|
|
Loading…
Reference in a new issue