forked from VoxeLibre/mcl_cozy
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)
|
||||
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
|
||||
})
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# textdomain: mcl_cozy
|
||||
Sit down=Сесть
|
||||
Lay down=Лечь
|
||||
Move to stand up=Двиньтесь чтобы встать
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# textdomain: mcl_cozy
|
||||
Sit down=
|
||||
Lay down=
|
||||
Move to stand up=
|
||||
|
|
Loading…
Reference in New Issue