Ticket #9004: optionsCPP.diff

File optionsCPP.diff, 1.5 KB (added by SF/kaustubht, 16 years ago)

patch for gui/options.cpp

Line 
139a40
2> #include "graphics/font.h"
358a60,62
4> #if defined(__PSP__)
5> kJoySensitivityChanged = 'jsch',
6> #endif
759a64
8>
9124a130,134
10> #if defined(__PSP__)
11> _joySensitivityDesc = 0;
12> _joySensitivitySlider = 0;
13> _joySensitivityLabel = 0;
14> #endif
15448a459,465
16> #if defined(__PSP__)
17> case kJoySensitivityChanged:
18> sprintf(buf, "%.2f", (double)_joySensitivitySlider->getValue() / 100.0);
19> _joySensitivityLabel->setLabel(buf);
20> _joySensitivityLabel->draw();
21> break;
22> #endif
23635a653,670
24> #if defined(__PSP__)
25> void OptionsDialog::addJoySensitivityControls(GuiObject *boss) {
26>
27> _joySensitivityDesc = new StaticTextWidget(boss, 10, 10, 150, 10, "Analog Nub Senstivity:",Graphics::kTextAlignLeft);
28> _joySensitivitySlider = new SliderWidget(boss, 160, 10, 100, 10, kJoySensitivityChanged);
29> _joySensitivityLabel = new StaticTextWidget(boss, 270, 10, 100, 10, "1.00",Graphics::kTextAlignLeft);
30> _joySensitivitySlider->setMinValue(10);
31> _joySensitivitySlider->setMaxValue(200);
32> _joySensitivitySlider->setValue(100);
33> _joySensitivityLabel->setFlags(WIDGET_CLEARBG);
34>
35> _joySensitivityDesc->setEnabled(true);
36> _joySensitivitySlider->setEnabled(true);
37> _joySensitivityLabel->setEnabled(true);
38>
39> }
40> #endif
41>
42651a687,689
43> #if defined (__PSP__)
44> _tabWidget->setTabTitle(_graphicsTabId, "GFX");
45> #else
46652a691
47> #endif
48666a706,708
49> #if defined(__PSP__)
50> _graphicsTabId = tab->addTab("GFX");
51> #else
52667a710
53> #endif
54736c779,782
55<
56---
57> #if defined(__PSP__)
58> tab->addTab("JoyStk");
59> addJoySensitivityControls(tab);
60> #endif