summaryrefslogtreecommitdiff
path: root/src/intro_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-12-05 19:36:41 +0000
committerfrosch <frosch@openttd.org>2012-12-05 19:36:41 +0000
commitd1ab0f03bcfc01be933d70edda9b95fb0ffeb8b4 (patch)
treee0ea4cdde0c4d20de3c397ba2453ee6b2e312246 /src/intro_gui.cpp
parent812ae4140a8566c2b4b43c6aa5bab5eecf82f18a (diff)
downloadopenttd-d1ab0f03bcfc01be933d70edda9b95fb0ffeb8b4.tar.xz
(svn r24790) -Remove: Classic difficulty profiles.
Diffstat (limited to 'src/intro_gui.cpp')
-rw-r--r--src/intro_gui.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/intro_gui.cpp b/src/intro_gui.cpp
index ee9782908..8878e86c8 100644
--- a/src/intro_gui.cpp
+++ b/src/intro_gui.cpp
@@ -55,11 +55,6 @@ struct SelectGameWindow : public Window {
this->SetWidgetLoweredState(WID_SGI_TOYLAND_LANDSCAPE, _settings_newgame.game_creation.landscape == LT_TOYLAND);
}
- virtual void SetStringParameters(int widget) const
- {
- if (widget == WID_SGI_DIFFICULTIES) SetDParam(0, STR_DIFFICULTY_LEVEL_EASY + _settings_newgame.difficulty.diff_level);
- }
-
virtual void OnInit()
{
bool missing = _current_language->missing >= _settings_client.gui.missing_strings_threshold && !IsReleasedVersion();
@@ -79,18 +74,6 @@ struct SelectGameWindow : public Window {
virtual void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *fill, Dimension *resize)
{
switch (widget) {
- case WID_SGI_DIFFICULTIES: {
- Dimension textdim = {0, 0};
- for (uint i = STR_DIFFICULTY_LEVEL_EASY; i <= STR_DIFFICULTY_LEVEL_CUSTOM; i++) {
- SetDParam(0, i);
- textdim = maxdim(textdim, GetStringBoundingBox(STR_INTRO_DIFFICULTY));
- }
- textdim.width += padding.width;
- textdim.height += padding.height;
- *size = maxdim(*size, textdim);
- break;
- }
-
case WID_SGI_TRANSLATION: {
SetDParam(0, _current_language->missing);
int height = GetStringHeight(STR_INTRO_TRANSLATION, size->width);