diff options
| author | Alexander Gavrilov | 2012-09-20 10:41:03 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-09-20 10:41:03 +0400 |
| commit | 7ce772ae0ea69ab26009a27d71bd681382ecfac7 (patch) | |
| tree | a4027707021d500286ec510a820068a9226ccfa5 /library/include | |
| parent | 1fd0654d635ebf8da74fb581eb8d3f16c98b0444 (diff) | |
| download | dfhack-7ce772ae0ea69ab26009a27d71bd681382ecfac7.tar.gz dfhack-7ce772ae0ea69ab26009a27d71bd681382ecfac7.tar.bz2 dfhack-7ce772ae0ea69ab26009a27d71bd681382ecfac7.tar.xz | |
Add an API function that returns the selected building.
Diffstat (limited to 'library/include')
| -rw-r--r-- | library/include/modules/Gui.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/library/include/modules/Gui.h b/library/include/modules/Gui.h index 97e8bd42..b06408f6 100644 --- a/library/include/modules/Gui.h +++ b/library/include/modules/Gui.h @@ -91,6 +91,10 @@ namespace DFHack DFHACK_EXPORT bool any_item_hotkey(df::viewscreen *top); DFHACK_EXPORT df::item *getSelectedItem(color_ostream &out, bool quiet = false); + // A building is selected via 'q', 't' or 'i' (civzone) + DFHACK_EXPORT bool any_building_hotkey(df::viewscreen *top); + DFHACK_EXPORT df::building *getSelectedBuilding(color_ostream &out, bool quiet = false); + // Show a plain announcement, or a titan-style popup message DFHACK_EXPORT void showAnnouncement(std::string message, int color = 7, bool bright = true); DFHACK_EXPORT void showZoomAnnouncement(df::announcement_type type, df::coord pos, std::string message, int color = 7, bool bright = true); |
