ui update
authorRealBadAngel <mk@realbadangel.pl>
Sat, 2 Mar 2013 04:14:34 +0000 (05:14 +0100)
committerRealBadAngel <mk@realbadangel.pl>
Sat, 2 Mar 2013 04:14:34 +0000 (05:14 +0100)
unified_inventory/api.lua
unified_inventory/sounds/click.ogg
unified_inventory/sounds/trash.ogg
unified_inventory/sounds/trash_all.ogg

index faa944fb2c4300e0ced9b700e03505e0dd497371..824cdfa097ccadd3acd7f598cb7e846d8a1b989c 100644 (file)
@@ -357,27 +357,27 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
        local pagemax = math.floor((unified_inventory.filtered_items_list_size[player_name]-1) / (80) + 1)
        
        if fields.start_list then
-               minetest.sound_play("click", {to_player=player_name, gain = 1.0})
+               minetest.sound_play("click", {to_player=player_name, gain = 0.3})
                start_i = 1
        end
        if fields.rewind1 then
-               minetest.sound_play("click", {to_player=player_name, gain = 1.0})
+               minetest.sound_play("click", {to_player=player_name, gain = 0.3})
                start_i = start_i - 1
        end
        if fields.forward1 then
-               minetest.sound_play("click", {to_player=player_name, gain = 1.0})
+               minetest.sound_play("click", {to_player=player_name, gain = 0.3})
                start_i = start_i + 1
        end
        if fields.rewind3 then
-               minetest.sound_play("click", {to_player=player_name, gain = 1.0})
+               minetest.sound_play("click", {to_player=player_name, gain = 0.3})
                start_i = start_i - 3
        end
        if fields.forward3 then
-               minetest.sound_play("click", {to_player=player_name, gain = 1.0})
+               minetest.sound_play("click", {to_player=player_name, gain = 0.3})
                start_i = start_i + 3
        end
        if fields.end_list then
-               minetest.sound_play("click", {to_player=player_name, gain = 1.0})
+               minetest.sound_play("click", {to_player=player_name, gain = 0.3})
                start_i = pagemax
        end
        if start_i < 1 then
@@ -397,7 +397,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
        for i=0,80,1 do
                local button="item_button"..list_index
                if fields[button] then 
-                       minetest.sound_play("click", {to_player=player_name, gain = 1.0})
+                       minetest.sound_play("click", {to_player=player_name, gain = 0.3})
                        if minetest.setting_getbool("creative_mode")==false then
                                unified_inventory.set_inventory_formspec(player, unified_inventory.get_formspec(player,"craftguide"))
                                page="craftguide"
index 061d8377be793c8bd3067f4e9334933408747f7f..3db63a0796e6e95dcf6046565c4f310dcdc8313f 100644 (file)
Binary files a/unified_inventory/sounds/click.ogg and b/unified_inventory/sounds/click.ogg differ
index 3f05e384743f82432faff6322d3d9a67c2f3abf7..51e4f24ab26902c600866dbb51108c9c4d15b4b2 100644 (file)
Binary files a/unified_inventory/sounds/trash.ogg and b/unified_inventory/sounds/trash.ogg differ
index 0ba67bfd8d9854676ce6a38048a57899163d0baf..85c3f66cdf2fafcca72b69e9bb37ed3a884de052 100644 (file)
Binary files a/unified_inventory/sounds/trash_all.ogg and b/unified_inventory/sounds/trash_all.ogg differ