~ubuntu-branches/ubuntu/trusty/manaplus/trusty-proposed

« back to all changes in this revision

Viewing changes to src/gui/setup_visual.cpp

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi, Andrei Karas, Patrick Matthäi
  • Date: 2013-05-18 21:06:29 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130518210629-3trtowluum0tekob
Tags: 1.3.5.12-1
[ Andrei Karas ]
* Add new files to copyright file.

[ Patrick Matthäi ]
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
static const char *const speachList[] =
37
37
{
 
38
    // TRANSLATORS: speach type
38
39
    N_("No text"),
 
40
    // TRANSLATORS: speach type
39
41
    N_("Text"),
 
42
    // TRANSLATORS: speach type
40
43
    N_("Bubbles, no names"),
 
44
    // TRANSLATORS: speach type
41
45
    N_("Bubbles with names")
42
46
};
43
47
 
45
49
 
46
50
static const char *const ambientFxList[] =
47
51
{
 
52
    // TRANSLATORS: ambient effect type
48
53
    N_("off"),
 
54
    // TRANSLATORS: ambient effect type
49
55
    N_("low"),
 
56
    // TRANSLATORS: ambient effect type
50
57
    N_("high")
51
58
};
52
59
 
54
61
 
55
62
static const char *const particleTypeList[] =
56
63
{
 
64
    // TRANSLATORS: patricle effects type
57
65
    N_("best quality"),
 
66
    // TRANSLATORS: patricle effects type
58
67
    N_("normal"),
 
68
    // TRANSLATORS: patricle effects type
59
69
    N_("best perfomance")
60
70
};
61
71
 
63
73
 
64
74
static const char *const vSyncList[] =
65
75
{
 
76
    // TRANSLATORS: vsync type
66
77
    N_("default"),
 
78
    // TRANSLATORS: vsync type
67
79
    N_("off"),
 
80
    // TRANSLATORS: vsync type
68
81
    N_("on")
69
82
};
70
83
 
76
89
    mParticleTypeList(new NamesModel),
77
90
    mVSyncList(new NamesModel)
78
91
{
 
92
    // TRANSLATORS: settings tab name
79
93
    setName(_("Visual"));
80
94
    // Do the layout
81
95
    LayoutHelper h(this);
84
98
 
85
99
    mPreferredFirstItemSize = 150;
86
100
 
 
101
    // TRANSLATORS: settings option
87
102
    new SetupItemLabel(_("Notifications"), "", this);
88
103
 
 
104
    // TRANSLATORS: settings option
89
105
    new SetupItemCheckBox(_("Show pickup notifications in chat"), "",
90
106
        "showpickupchat", this, "showpickupchatEvent");
91
107
 
 
108
    // TRANSLATORS: settings option
92
109
    new SetupItemCheckBox(_("Show pickup notifications as particle effects"),
93
110
        "", "showpickupparticle", this, "showpickupparticleEvent");
94
111
 
 
112
    // TRANSLATORS: settings option
95
113
    new SetupItemLabel(_("Effects"), "", this);
96
114
 
97
115
#ifndef ANDROID
 
116
    // TRANSLATORS: settings option
98
117
    new SetupItemCheckBox(_("Grab mouse and keyboard input"),
99
118
        "", "grabinput", this, "grabinputEvent");
100
119
#endif
101
120
 
 
121
    // TRANSLATORS: settings option
102
122
    new SetupItemCheckBox(_("Blurring textures (OpenGL)"),
103
123
        "", "blur", this, "blurEvent");
104
124
 
 
125
    // TRANSLATORS: settings option
105
126
    new SetupItemSlider(_("Gui opacity"), "", "guialpha",
106
127
        this, "guialphaEvent", 0.1, 1.0, 150, true);
107
128
 
108
129
    mSpeachList->fillFromArray(&speachList[0], speachListSize);
 
130
    // TRANSLATORS: settings option
109
131
    new SetupItemDropDown(_("Overhead text"), "", "speech", this,
110
132
        "speechEvent", mSpeachList, 200);
111
133
 
112
134
    mAmbientFxList->fillFromArray(&ambientFxList[0], ambientFxListSize);
 
135
    // TRANSLATORS: settings option
113
136
    new SetupItemDropDown(_("Ambient FX"), "", "OverlayDetail", this,
114
137
        "OverlayDetailEvent", mAmbientFxList, 100);
115
138
 
 
139
    // TRANSLATORS: settings option
116
140
    new SetupItemCheckBox(_("Particle effects"), "",
117
141
        "particleeffects", this, "particleeffectsEvent");
118
142
 
 
143
    // TRANSLATORS: particle details
119
144
    mParticleList->push_back(_("low"));
 
145
    // TRANSLATORS: particle details
120
146
    mParticleList->push_back(_("medium"));
 
147
    // TRANSLATORS: particle details
121
148
    mParticleList->push_back(_("high"));
 
149
    // TRANSLATORS: particle details
122
150
    mParticleList->push_back(_("max"));
123
151
    (new SetupItemSlider2(_("Particle detail"), "", "particleEmitterSkip",
124
152
        this, "particleEmitterSkipEvent", 0, 3,
126
154
 
127
155
    mParticleTypeList->fillFromArray(&particleTypeList[0],
128
156
        particleTypeListSize);
 
157
    // TRANSLATORS: settings option
129
158
    new SetupItemDropDown(_("Particle physics"), "", "particleFastPhysics",
130
159
        this, "particleFastPhysicsEvent", mParticleTypeList, 200);
131
160
 
132
161
 
 
162
    // TRANSLATORS: settings group
133
163
    new SetupItemLabel(_("Gamma"), "", this);
134
164
 
 
165
    // TRANSLATORS: settings option
135
166
    new SetupItemCheckBox(_("Enable gamma control"),
136
167
        "", "enableGamma", this, "enableGammaEvent");
137
168
 
 
169
    // TRANSLATORS: settings option
138
170
    new SetupItemSlider(_("Gamma"), "", "gamma",
139
171
        this, "gammeEvent", 1, 20, 350, true);
140
172
 
141
173
 
 
174
    // TRANSLATORS: settings group
142
175
    new SetupItemLabel(_("Other"), "", this);
143
176
 
144
177
    mVSyncList->fillFromArray(&vSyncList[0], vSyncListSize);
 
178
    // TRANSLATORS: settings option
145
179
    new SetupItemDropDown(_("Vsync"), "", "vsync", this,
146
180
        "vsyncEvent", mVSyncList, 100);
147
181
 
148
182
#if defined(WIN32) || defined(__APPLE__)
 
183
    // TRANSLATORS: settings option
149
184
    new SetupItemCheckBox(_("Center game window"),
150
185
        "", "centerwindow", this, "centerwindowEvent");
151
186
#endif
152
187
 
 
188
    // TRANSLATORS: settings option
153
189
    new SetupItemCheckBox(_("Allow screensaver to run"),
154
190
        "", "allowscreensaver", this, "allowscreensaverEvent");
155
191