4 'Ext.window.MessageBox'
7 Ext.onReady(function(){
8 Ext.create('Ext.form.Panel', {
11 title: 'Sound Settings',
13 renderTo: 'container',
14 defaultType: 'sliderfield',
17 tipText: function(thumb){
18 return String(thumb.value) + '%';
22 fieldLabel: 'Sound Effects',
26 fieldLabel: 'Ambient Sounds',
30 fieldLabel: 'Interface Sounds',
41 this.up('form').items.each(function(c){
48 var values = this.up('form').getForm().getValues(),
49 s = ['Sounds Effects: <b>{0}%</b>',
50 'Ambient Sounds: <b>{1}%</b>',
51 'Interface Sounds: <b>{2}%</b>'];
54 title: 'Settings Saved',
55 msg: Ext.String.format(s.join('<br />'), values.fx, values.ambient, values.iface),
63 this.up('form').getForm().reset();