adjust size of volume sliders, add warning
parent
317c8cb213
commit
2ef7252e74
13
init.lua
13
init.lua
|
@ -609,12 +609,13 @@ minetest.register_chatcommand("volume", {
|
||||||
description = "View sliders to set sound a music volume",
|
description = "View sliders to set sound a music volume",
|
||||||
func = function(name,param)
|
func = function(name,param)
|
||||||
minetest.show_formspec(name, "ambience:volume",
|
minetest.show_formspec(name, "ambience:volume",
|
||||||
"size[6,5]" ..
|
"size[6,6]" ..
|
||||||
"label[0,0;Music]" ..
|
"label[0,0;Warning: Changes affects only the next played sound/music!]" ..
|
||||||
"scrollbar[0,1;6,1;horizontal;music;" .. volume[name].music * 1000 .. "]" ..
|
"label[0,1;Music]" ..
|
||||||
"label[0,2;Sound]" ..
|
"scrollbar[0,2;6,0.4;horizontal;music;" .. volume[name].music * 1000 .. "]" ..
|
||||||
"scrollbar[0,3;6,1;horizontal;sound;" .. volume[name].sound * 1000 .. "]" ..
|
"label[0,3;Sound]" ..
|
||||||
"button_exit[2,4;2,1;quit;Done]")
|
"scrollbar[0,4;6,0.4;horizontal;sound;" .. volume[name].sound * 1000 .. "]" ..
|
||||||
|
"button_exit[2,5;2,1;quit;Done]")
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
minetest.register_on_player_receive_fields(function(player, formname, fields)
|
minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
|
|
Loading…
Reference in New Issue