1
0
Fork 0

Show Move to stand up notice as title in HUD

This commit is contained in:
Mikita Wiśniewski 2022-04-29 16:23:05 +07:00
parent 118b2a644c
commit dfd072586d
4 changed files with 5 additions and 1 deletions

View File

@ -32,6 +32,7 @@ minetest.register_chatcommand("sit", {
player:set_physics_override(0, 0, 0)
mcl_player.player_attached[name] = true
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
})
@ -50,6 +51,7 @@ minetest.register_chatcommand("lay", {
player:set_physics_override(0, 0, 0)
mcl_player.player_attached[name] = true
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
})

View File

@ -1,3 +1,4 @@
# textdomain: mcl_cozy
Sit down=Сесть
Lay down=Лечь
Move to stand up=Двиньтесь чтобы встать

View File

@ -1,3 +1,4 @@
# textdomain: mcl_cozy
Sit down=
Lay down=
Move to stand up=

View File

@ -1,3 +1,3 @@
name = mcl_cozy
description = Sit and lay using chat commands
depends = mcl_player
depends = mcl_player, mcl_title