Fixed minimap scrolling

This commit is contained in:
Sergii Pylypenko
2019-07-12 23:47:45 +03:00
committed by pelya
parent fe73e6d021
commit fea9bb1c24
3 changed files with 11 additions and 2 deletions
+1
View File
@@ -75,6 +75,7 @@ protected:
uint min_number_of_fixed_rows; ///< Minimal number of rows in the legends for the fixed layouts only (all except #SMT_INDUSTRY).
uint column_width; ///< Width of a column in the #WID_SM_LEGEND widget.
const uint row_height; ///< Heigth of each row in the #WID_SM_LEGEND widget.
Point lmb_scroll_pt; ///< Starting point for scrolling minimap with left mouse button.
int32 scroll_x; ///< Horizontal world coordinate of the base tile left of the top-left corner of the smallmap display.
int32 scroll_y; ///< Vertical world coordinate of the base tile left of the top-left corner of the smallmap display.