UI update

This commit is contained in:
RealBadAngel 2013-03-02 04:08:42 +01:00
parent 310cdb06ad
commit cc06004381
3 changed files with 3 additions and 0 deletions

View File

@ -94,6 +94,8 @@ unified_inventory.trash = minetest.create_detached_inventory("trash", {
end,
on_put = function(inv, listname, index, stack, player)
inv:set_stack(listname, index, nil)
local player_name=player:get_player_name()
minetest.sound_play("trash", {to_player=player_name, gain = 1.0})
end,
})
unified_inventory.trash:set_size("main", 1)
@ -344,6 +346,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
local inventory = {}
player:get_inventory():set_list("main", inventory)
minetest.chat_send_player(player_name, 'Inventory Cleared!')
minetest.sound_play("trash_all", {to_player=player_name, gain = 1.0})
end
-- Inventory page controls

Binary file not shown.

Binary file not shown.