3 * Copyright(c) 2006-2010 Ext JS, Inc.
5 * http://www.extjs.com/license
7 Ext.onReady(function(){
8 var form = new Ext.form.FormPanel({
11 title : 'Sound Settings',
13 bodyStyle : 'padding: 10px;',
14 renderTo : 'container',
15 defaultType: 'sliderfield',
20 tipText: function(thumb){
21 return String(thumb.value) + '%';
25 fieldLabel: 'Sound Effects',
29 fieldLabel: 'Ambient Sounds',
33 fieldLabel: 'Interface Sounds',
42 form.items.each(function(c){
49 var values = form.getForm().getValues(),
50 s = ['Sounds Effects: <b>{0}%</b>',
51 'Ambient Sounds: <b>{1}%</b>',
52 'Interface Sounds: <b>{2}%</b>'];
54 Ext.example.msg('Settings Saved', s.join('<br />'), values.fx, values.ambient, values.iface);
59 form.getForm().reset();