Show Move to stand up notice as title in HUD
This commit is contained in:
parent
118b2a644c
commit
dfd072586d
2
init.lua
2
init.lua
|
@ -32,6 +32,7 @@ minetest.register_chatcommand("sit", {
|
||||||
player:set_physics_override(0, 0, 0)
|
player:set_physics_override(0, 0, 0)
|
||||||
mcl_player.player_attached[name] = true
|
mcl_player.player_attached[name] = true
|
||||||
mcl_player.player_set_animation(player, "sit", 30)
|
mcl_player.player_set_animation(player, "sit", 30)
|
||||||
|
mcl_title.set(player, "actionbar", {text=S("Move to stand up"), color="white", stay=60})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
@ -50,6 +51,7 @@ minetest.register_chatcommand("lay", {
|
||||||
player:set_physics_override(0, 0, 0)
|
player:set_physics_override(0, 0, 0)
|
||||||
mcl_player.player_attached[name] = true
|
mcl_player.player_attached[name] = true
|
||||||
mcl_player.player_set_animation(player, "lay", 0)
|
mcl_player.player_set_animation(player, "lay", 0)
|
||||||
|
mcl_title.set(player, "actionbar", {text=S("Move to stand up"), color="white", stay=60})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
# textdomain: mcl_cozy
|
# textdomain: mcl_cozy
|
||||||
Sit down=Сесть
|
Sit down=Сесть
|
||||||
Lay down=Лечь
|
Lay down=Лечь
|
||||||
|
Move to stand up=Двиньтесь чтобы встать
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
# textdomain: mcl_cozy
|
# textdomain: mcl_cozy
|
||||||
Sit down=
|
Sit down=
|
||||||
Lay down=
|
Lay down=
|
||||||
|
Move to stand up=
|
||||||
|
|
Reference in New Issue