Changeset - r16928:92e564454489
[Not reviewed]
master
0 2 0
smatz - 14 years ago 2010-12-31 10:15:35
smatz@openttd.org
(svn r21673) -Change [FS#4358]: do not show price to build a bridge in the scenario editor, it is free there
2 files changed with 5 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/bridge_gui.cpp
Show inline comments
 
@@ -22,6 +22,7 @@
 
#include "sortlist_type.h"
 
#include "widgets/dropdown_func.h"
 
#include "core/geometry_func.hpp"
 
#include "openttd.h"
 

	
 
#include "table/strings.h"
 

	
 
@@ -190,7 +191,7 @@ public:
 
					SetDParam(2, this->bridges->Get(i)->cost);
 
					SetDParam(1, b->speed);
 
					SetDParam(0, b->material);
 
					text_dim = maxdim(text_dim, GetStringBoundingBox(STR_SELECT_BRIDGE_INFO));
 
					text_dim = maxdim(text_dim, GetStringBoundingBox(_game_mode == GM_EDITOR ? STR_SELECT_BRIDGE_SCENEDIT_INFO : STR_SELECT_BRIDGE_INFO));
 
				}
 
				sprite_dim.height++; // Sprite is rendered one pixel down in the matrix field.
 
				text_dim.height++; // Allowing the bottom row pixels to be rendered on the edge of the matrix field.
 
@@ -231,7 +232,8 @@ public:
 
					SetDParam(0, b->material);
 

	
 
					DrawSprite(b->sprite, b->pal, r.left + WD_MATRIX_LEFT, y + this->resize.step_height - 1 - GetSpriteSize(b->sprite).height);
 
					DrawStringMultiLine(r.left + this->bridgetext_offset, r.right, y + 2, y + this->resize.step_height, STR_SELECT_BRIDGE_INFO);
 
					DrawStringMultiLine(r.left + this->bridgetext_offset, r.right, y + 2, y + this->resize.step_height,
 
							_game_mode == GM_EDITOR ? STR_SELECT_BRIDGE_SCENEDIT_INFO : STR_SELECT_BRIDGE_INFO);
 
					y += this->resize.step_height;
 
				}
 
				break;
src/lang/english.txt
Show inline comments
 
@@ -1974,6 +1974,7 @@ STR_SELECT_RAIL_BRIDGE_CAPTION          
 
STR_SELECT_ROAD_BRIDGE_CAPTION                                  :{WHITE}Select Road Bridge
 
STR_SELECT_BRIDGE_SELECTION_TOOLTIP                             :{BLACK}Bridge selection - click on your preferred bridge to build it
 
STR_SELECT_BRIDGE_INFO                                          :{GOLD}{STRING},{} {VELOCITY} {WHITE}{CURRENCY}
 
STR_SELECT_BRIDGE_SCENEDIT_INFO                                 :{GOLD}{STRING},{} {VELOCITY}
 
STR_BRIDGE_NAME_SUSPENSION_STEEL                                :Suspension, Steel
 
STR_BRIDGE_NAME_GIRDER_STEEL                                    :Girder, Steel
 
STR_BRIDGE_NAME_CANTILEVER_STEEL                                :Cantilever, Steel
0 comments (0 inline, 0 general)