Changeset - r13573:7ad47963c26b
[Not reviewed]
master
0 1 0
peter1138 - 15 years ago 2009-11-15 19:31:12
peter1138@openttd.org
(svn r18107) -Codechange: Add spacer panel to end of transparency window, to fill space if title is too long.
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/transparency_gui.cpp
Show inline comments
 
@@ -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_transpa
 
		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(),
 
};
 

	
0 comments (0 inline, 0 general)