mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add push_ARGB8 to script/common/c_converter
This commit is contained in:
parent
18c2f16c13
commit
19cbb6b37b
3 changed files with 15 additions and 9 deletions
|
@ -1305,15 +1305,7 @@ int ObjectRef::l_get_nametag_attributes(lua_State *L)
|
|||
video::SColor color = playersao->getNametagColor();
|
||||
|
||||
lua_newtable(L);
|
||||
lua_newtable(L);
|
||||
lua_pushnumber(L, color.getAlpha());
|
||||
lua_setfield(L, -2, "a");
|
||||
lua_pushnumber(L, color.getRed());
|
||||
lua_setfield(L, -2, "r");
|
||||
lua_pushnumber(L, color.getGreen());
|
||||
lua_setfield(L, -2, "g");
|
||||
lua_pushnumber(L, color.getBlue());
|
||||
lua_setfield(L, -2, "b");
|
||||
push_ARGB8(L, color);
|
||||
lua_setfield(L, -2, "color");
|
||||
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue