Add prefoppositecolor to Lua.

This commit is contained in:
toasterbabe 2016-07-20 15:53:08 +01:00
parent 4435815c35
commit d0cd1d951f

View file

@ -50,6 +50,7 @@ enum skin {
skin_shieldscale, skin_shieldscale,
skin_starttranscolor, skin_starttranscolor,
skin_prefcolor, skin_prefcolor,
skin_prefoppositecolor,
skin_highresscale, skin_highresscale,
skin_soundsid, skin_soundsid,
skin_availability skin_availability
@ -85,6 +86,7 @@ static const char *const skin_opt[] = {
"shieldscale", "shieldscale",
"starttranscolor", "starttranscolor",
"prefcolor", "prefcolor",
"prefoppositecolor",
"highresscale", "highresscale",
"soundsid", "soundsid",
"availability", "availability",
@ -201,6 +203,9 @@ static int skin_get(lua_State *L)
case skin_prefcolor: case skin_prefcolor:
lua_pushinteger(L, skin->prefcolor); lua_pushinteger(L, skin->prefcolor);
break; break;
case skin_prefoppositecolor:
lua_pushinteger(L, skin->prefoppositecolor);
break;
case skin_highresscale: case skin_highresscale:
lua_pushinteger(L, skin->highresscale); lua_pushinteger(L, skin->highresscale);
break; break;