| 1706 | } |
| 1707 | |
| 1708 | df::plant *Gui::getSelectedPlant(color_ostream &out, bool quiet) |
| 1709 | { |
| 1710 | df::plant *plant = getAnyPlant(Core::getTopViewscreen()); |
| 1711 | |
| 1712 | if (!plant && !quiet) |
| 1713 | out.printerr("No plant is selected in the UI.\n"); |
| 1714 | |
| 1715 | return plant; |
| 1716 | } |
| 1717 | |
| 1718 | // |
| 1719 |