RealBadAngel
2013-03-02 cc06004381d026e9fb72caafc5bea72dfe14ca9b
UI update
1 files modified
2 files added
3 ■■■■■ changed files
unified_inventory/api.lua 3 ●●●●● patch | view | raw | blame | history
unified_inventory/sounds/trash.ogg patch | view | raw | blame | history
unified_inventory/sounds/trash_all.ogg patch | view | raw | blame | history
unified_inventory/api.lua
@@ -94,6 +94,8 @@
    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 @@
        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
unified_inventory/sounds/trash.ogg
Binary files differ
unified_inventory/sounds/trash_all.ogg
Binary files differ