Changeset - r28105:28eb4146877d
[Not reviewed]
master
0 2 0
Peter Nelson - 13 months ago 2023-11-03 02:25:05
peter1138@openttd.org
Codechange: Add widget dimensions to standardise picker winodws.
2 files changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/widget.cpp
Show inline comments
 
@@ -151,7 +151,9 @@ const WidgetDimensions WidgetDimensions:
 
	{WD_CAPTIONTEXT_LEFT,  WD_CAPTIONTEXT_TOP,  WD_CAPTIONTEXT_RIGHT,  WD_CAPTIONTEXT_BOTTOM},  ///< captiontext
 
	{WD_DROPDOWNTEXT_LEFT, WD_DROPDOWNTEXT_TOP, WD_DROPDOWNTEXT_RIGHT, WD_DROPDOWNTEXT_BOTTOM}, ///< dropdowntext
 
	{20, 10, 20, 10},    ///< modalpopup
 
	{3, 3, 3, 3},        ///< picker
 
	1,                   ///< pressed
 
	1,                   ///< vsep_picker
 
	WD_PAR_VSEP_NORMAL,  ///< vsep_normal
 
	WD_PAR_VSEP_WIDE,    ///< vsep_wide
 
	2,                   ///< hsep_normal
src/window_gui.h
Show inline comments
 
@@ -50,8 +50,10 @@ struct WidgetDimensions {
 
	RectPadding captiontext;  ///< Offsets of text within a caption.
 
	RectPadding dropdowntext; ///< Offsets of text within a dropdown widget.
 
	RectPadding modalpopup;   ///< Padding for a modal popup.
 
	RectPadding picker;       ///< Padding for a picker (dock, station, etc) window.
 

	
 
	int pressed;              ///< Offset for contents of depressed widget.
 
	int vsep_picker;          ///< Vertical spacing of picker-window widgets.
 
	int vsep_normal;          ///< Normal vertical spacing.
 
	int vsep_wide;            ///< Wide vertical spacing.
 
	int hsep_normal;          ///< Normal horizontal spacing.
0 comments (0 inline, 0 general)