dreambuilder_game/notify_hud_provider
Vanessa Dannenberg 94fa40c6f7 update castles, areas, areas_protector, bakedclay, signs_lib,
bees, blox, bobblocks, coloredwood, homedecor, technic,
currency, digilines, digistguff, facade, farming_redo,
framedglass, gloopblocks, ilights, led_marquee, maptools,
mesecons, moreblocks, moreores, mymillwork, plasticbox,
replacer, ropes, street_signs, solidcolor, stained_glass,
teleport_request, unified_inventory, unifieddyes, worldedit,

add basic_signs, notify_hud_provider
2019-09-11 13:58:21 -04:00
..
LICENSE update castles, areas, areas_protector, bakedclay, signs_lib, 2019-09-11 13:58:21 -04:00
README.md update castles, areas, areas_protector, bakedclay, signs_lib, 2019-09-11 13:58:21 -04:00
init.lua update castles, areas, areas_protector, bakedclay, signs_lib, 2019-09-11 13:58:21 -04:00
mod.conf update castles, areas, areas_protector, bakedclay, signs_lib, 2019-09-11 13:58:21 -04:00

README.md

Api: notify.hud.sendtext(mt_player player, string text, optional int timeout)

usage: add notify_hud_provider as an optional dependency to your mod, 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)

(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)