From: RealBadAngel Date: Sat, 2 Mar 2013 04:14:34 +0000 (+0100) Subject: ui update X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=4a15b8504e6b224ad6a4158099f91b43b6d6146f;p=zefram%2Fminetest%2Ftechnic.git ui update --- diff --git a/unified_inventory/api.lua b/unified_inventory/api.lua index faa944f..824cdfa 100644 --- a/unified_inventory/api.lua +++ b/unified_inventory/api.lua @@ -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" diff --git a/unified_inventory/sounds/click.ogg b/unified_inventory/sounds/click.ogg index 061d837..3db63a0 100644 Binary files a/unified_inventory/sounds/click.ogg and b/unified_inventory/sounds/click.ogg differ diff --git a/unified_inventory/sounds/trash.ogg b/unified_inventory/sounds/trash.ogg index 3f05e38..51e4f24 100644 Binary files a/unified_inventory/sounds/trash.ogg and b/unified_inventory/sounds/trash.ogg differ diff --git a/unified_inventory/sounds/trash_all.ogg b/unified_inventory/sounds/trash_all.ogg index 0ba67bf..85c3f66 100644 Binary files a/unified_inventory/sounds/trash_all.ogg and b/unified_inventory/sounds/trash_all.ogg differ