mirror of
https://github.com/minetest-mods/i3.git
synced 2024-12-27 03:10:39 +01:00
Support flat player
This commit is contained in:
parent
ea4ae437d3
commit
efcd3277e6
15
init.lua
15
init.lua
@ -1747,13 +1747,18 @@ local function get_inventory_mode(player, fs, data, full_height)
|
|||||||
|
|
||||||
local props = player:get_properties()
|
local props = player:get_properties()
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
local anim = player:get_local_animation()
|
|
||||||
|
|
||||||
--fs("style[player_model;bgcolor=black]")
|
if props.mesh ~= "" then
|
||||||
|
local anim = player:get_local_animation()
|
||||||
|
--fs("style[player_model;bgcolor=black]")
|
||||||
|
|
||||||
fs(fmt("model", 0.2, 0.2, 4, 5.5, "player_model",
|
fs(fmt("model", 0.2, 0.2, 4, 5.5, "player_model",
|
||||||
props.mesh, concat(props.textures, ","), "0,-150", "false", "false",
|
props.mesh, concat(props.textures, ","), "0,-150", "false", "false",
|
||||||
sprintf("%u,%u", anim.x, anim.y)))
|
sprintf("%u,%u", anim.x, anim.y)))
|
||||||
|
else
|
||||||
|
local size = 2.6
|
||||||
|
fs(fmt("image", 0.7, 0.2, size, size * props.visual_size.y, props.textures[1]))
|
||||||
|
end
|
||||||
|
|
||||||
local extras = __3darmor or __skinsdb
|
local extras = __3darmor or __skinsdb
|
||||||
local xoffset = extras and 0 or 4.5
|
local xoffset = extras and 0 or 4.5
|
||||||
|
Loading…
Reference in New Issue
Block a user