adjust positions, sizes and note in volume controlbox

master
tchncs 2016-07-23 09:10:23 +02:00
parent 2ef7252e74
commit 6049efdf76
1 changed files with 7 additions and 7 deletions

View File

@ -609,13 +609,13 @@ minetest.register_chatcommand("volume", {
description = "View sliders to set sound a music volume",
func = function(name,param)
minetest.show_formspec(name, "ambience:volume",
"size[6,6]" ..
"label[0,0;Warning: Changes affects only the next played sound/music!]" ..
"label[0,1;Music]" ..
"scrollbar[0,2;6,0.4;horizontal;music;" .. volume[name].music * 1000 .. "]" ..
"label[0,3;Sound]" ..
"scrollbar[0,4;6,0.4;horizontal;sound;" .. volume[name].sound * 1000 .. "]" ..
"button_exit[2,5;2,1;quit;Done]")
"size[6,3.5]" ..
"label[1.2,0;Hint: Your change will affect the *next* played title!]" ..
"label[0,0.5;Music]" ..
"scrollbar[0,1;5.8,0.4;horizontal;music;" .. volume[name].music * 1000 .. "]" ..
"label[0,1.5;Sound]" ..
"scrollbar[0,2;5.8,0.4;horizontal;sound;" .. volume[name].sound * 1000 .. "]" ..
"button_exit[2,2.8;2,0.8;quit;Done]")
end,
})
minetest.register_on_player_receive_fields(function(player, formname, fields)