diff options
| author | Petr Mrázek | 2012-03-03 14:38:24 +0100 |
|---|---|---|
| committer | Petr Mrázek | 2012-03-03 14:38:24 +0100 |
| commit | 7fe8762852c11caeaeb486e9b76f024f5cbaf0d6 (patch) | |
| tree | 161c80a0738fa1d4d1b8fed845c59f29bd3abf9e /plugins/workflow.cpp | |
| parent | 022822277d80152ca6ba4fad6102d68df35a7adc (diff) | |
| download | dfhack-7fe8762852c11caeaeb486e9b76f024f5cbaf0d6.tar.gz dfhack-7fe8762852c11caeaeb486e9b76f024f5cbaf0d6.tar.bz2 dfhack-7fe8762852c11caeaeb486e9b76f024f5cbaf0d6.tar.xz | |
Get rid of Simple namespace, Gui module is now a namespace.
Diffstat (limited to 'plugins/workflow.cpp')
| -rw-r--r-- | plugins/workflow.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/workflow.cpp b/plugins/workflow.cpp index b93d6f43..a8ace1b0 100644 --- a/plugins/workflow.cpp +++ b/plugins/workflow.cpp @@ -1232,15 +1232,15 @@ static void update_jobs_by_constraints(Core *c) if (is_running != ct->is_active) { if (is_running && ct->request_resume) - showAnnouncement("Resuming production: " + info, 2, false); + Gui::showAnnouncement("Resuming production: " + info, 2, false); else if (!is_running && !ct->request_resume) - showAnnouncement("Stopping production: " + info, 3, false); + Gui::showAnnouncement("Stopping production: " + info, 3, false); } if (ct->request_resume && !is_running) { if (!ct->cant_resume_reported) - showAnnouncement("Cannot produce: " + info, 6, true); + Gui::showAnnouncement("Cannot produce: " + info, 6, true); ct->cant_resume_reported = true; } else @@ -1415,11 +1415,11 @@ static command_result workflow_cmd(Core *c, vector <string> & parameters) df::building *workshop = NULL; df::job *job = NULL; - if (dwarfmode_hotkey(c, c->getTopViewscreen()) && + if (Gui::dwarfmode_hotkey(c, c->getTopViewscreen()) && ui->main.mode == ui_sidebar_mode::QueryBuilding) { workshop = world->selected_building; - job = getSelectedWorkshopJob(c, true); + job = Gui::getSelectedWorkshopJob(c, true); } std::string cmd = parameters.empty() ? "list" : parameters[0]; |
