1
0
Fork 0
minetest-mod-notify_hud_pro.../README.md

17 lines
671 B
Markdown
Raw Permalink Normal View History

2019-09-01 22:52:20 +00:00
Api:
notify.hud.sendtext(mt_player player, string text, optional int timeout)
2019-09-03 15:28:39 +00:00
usage:
add notify_hud_provider as an optional dependency to your mod,
2019-09-03 15:46:59 +00:00
and then check for the existance of the above api call before using it
You may call it like so for example
notify.hud.sendtext(minetest.get_player_by_name("bentaphile", "Hey there", 10)
or, for example if you are in a hook that already is in possesion of a player object
notify.hud.sendtext(player, "Your " .. tool .. " Has been repaired!", 5)
2019-09-03 15:28:39 +00:00
(This, so that subgames may provide their own implementation, without having to use the same modname, this also allows another mod to take this name to overide the subgame)