equal
deleted
inserted
replaced
845 this->SetWidgetHiddenState(SM_WIDGET_ENABLEINDUSTRIES, _smallmap_type != SMT_INDUSTRY); |
845 this->SetWidgetHiddenState(SM_WIDGET_ENABLEINDUSTRIES, _smallmap_type != SMT_INDUSTRY); |
846 this->SetWidgetHiddenState(SM_WIDGET_DISABLEINDUSTRIES, _smallmap_type != SMT_INDUSTRY); |
846 this->SetWidgetHiddenState(SM_WIDGET_DISABLEINDUSTRIES, _smallmap_type != SMT_INDUSTRY); |
847 |
847 |
848 /* draw the window */ |
848 /* draw the window */ |
849 SetDParam(0, STR_00E5_CONTOURS + _smallmap_type); |
849 SetDParam(0, STR_00E5_CONTOURS + _smallmap_type); |
850 DrawWindowWidgets(this); |
850 this->DrawWidgets(); |
851 |
851 |
852 tbl = _legend_table[_smallmap_type]; |
852 tbl = _legend_table[_smallmap_type]; |
853 |
853 |
854 /* difference in window size */ |
854 /* difference in window size */ |
855 diff = (_industries_per_column > BASE_NB_PER_COLUMN) ? ((_industries_per_column - BASE_NB_PER_COLUMN) * BASE_NB_PER_COLUMN) + 1 : 0; |
855 diff = (_industries_per_column > BASE_NB_PER_COLUMN) ? ((_industries_per_column - BASE_NB_PER_COLUMN) * BASE_NB_PER_COLUMN) + 1 : 0; |
1151 virtual void OnPaint() |
1151 virtual void OnPaint() |
1152 { |
1152 { |
1153 /* set the number in the title bar */ |
1153 /* set the number in the title bar */ |
1154 SetDParam(0, this->window_number + 1); |
1154 SetDParam(0, this->window_number + 1); |
1155 |
1155 |
1156 DrawWindowWidgets(this); |
1156 this->DrawWidgets(); |
1157 DrawWindowViewport(this); |
1157 this->DrawViewport(); |
1158 } |
1158 } |
1159 |
1159 |
1160 virtual void OnClick(Point pt, int widget) |
1160 virtual void OnClick(Point pt, int widget) |
1161 { |
1161 { |
1162 switch (widget) { |
1162 switch (widget) { |