summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2009-11-15 19:31:12 +0000
committerpeter1138 <peter1138@openttd.org>2009-11-15 19:31:12 +0000
commit4c9b87d8501a72e8ecce59ef9a276f092a6ff2b8 (patch)
treeafc366a9f775f73b702d226c7c74f7a429a2766e /src
parent31f7df2cb05ad5271b4f925f4dd38376006ebcfa (diff)
downloadopenttd-4c9b87d8501a72e8ecce59ef9a276f092a6ff2b8.tar.xz
(svn r18107) -Codechange: Add spacer panel to end of transparency window, to fill space if title is too long.
Diffstat (limited to 'src')
-rw-r--r--src/transparency_gui.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/transparency_gui.cpp b/src/transparency_gui.cpp
index 9e8ae192c..ab0d16d0b 100644
--- a/src/transparency_gui.cpp
+++ b/src/transparency_gui.cpp
@@ -42,7 +42,7 @@ enum TransparencyToolbarWidgets {
TTW_WIDGET_END, ///< End of toggle buttons.
/* Panel with buttons for invisibility */
- TTW_WIDGET_BUTTONS = TTW_WIDGET_END, ///< Panel with 'invisibility' buttons.
+ TTW_WIDGET_BUTTONS, ///< Panel with 'invisibility' buttons.
};
class TransparenciesWindow : public Window
@@ -145,9 +145,10 @@ static const NWidgetPart _nested_transparency_widgets[] = {
NWidget(WWT_IMGBTN, COLOUR_DARK_GREEN, TTW_WIDGET_STRUCTURES), SetMinimalSize(22, 22), SetFill(false, true), SetDataTip(SPR_IMG_TRANSMITTER, STR_TRANSPARENT_STRUCTURES_TOOLTIP),
NWidget(WWT_IMGBTN, COLOUR_DARK_GREEN, TTW_WIDGET_CATENARY), SetMinimalSize(22, 22), SetFill(false, true), SetDataTip(SPR_BUILD_X_ELRAIL, STR_TRANSPARENT_CATENARY_TOOLTIP),
NWidget(WWT_IMGBTN, COLOUR_DARK_GREEN, TTW_WIDGET_LOADING), SetMinimalSize(22, 22), SetFill(false, true), SetDataTip(SPR_IMG_TRAINLIST, STR_TRANSPARENT_LOADING_TOOLTIP),
+ NWidget(WWT_PANEL, COLOUR_DARK_GREEN, TTW_WIDGET_END), SetFill(true, true), EndContainer(),
EndContainer(),
/* Panel with 'inivisibility' buttons. */
- NWidget(WWT_PANEL, COLOUR_DARK_GREEN, TTW_WIDGET_END), SetMinimalSize(219, 13), SetDataTip(0x0, STR_TRANSPARENT_INVISIBLE_TOOLTIP),
+ NWidget(WWT_PANEL, COLOUR_DARK_GREEN, TTW_WIDGET_BUTTONS), SetMinimalSize(219, 13), SetDataTip(0x0, STR_TRANSPARENT_INVISIBLE_TOOLTIP),
EndContainer(),
};