| 163 | } |
| 164 | |
| 165 | void DrawWidget(const Rect &r, WidgetID widget) const override |
| 166 | { |
| 167 | if (widget >= WID_BT_TYPE_BUTTON_FIRST) { |
| 168 | const int index = widget - WID_BT_TYPE_BUTTON_FIRST; |
| 169 | /* Trees "grow" in the centre on the bottom line of the buttons */ |
| 170 | DrawSprite(tree_sprites[index].sprite, tree_sprites[index].pal, CentreBounds(r.left, r.right, 0), r.bottom - ScaleGUITrad(BUTTON_BOTTOM_OFFSET)); |
| 171 | } |
| 172 | } |
| 173 | |
| 174 | void OnClick([[maybe_unused]] Point pt, WidgetID widget, [[maybe_unused]] int click_count) override |
| 175 | { |
nothing calls this directly
no test coverage detected