summaryrefslogtreecommitdiff
path: root/plugins/workflow.cpp
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-08-19 09:21:25 +0400
committerAlexander Gavrilov2012-08-19 09:21:25 +0400
commitfd0bf2ef929d3bc98570012b21e6e603c570a8f6 (patch)
treee6339698fa55793c6aa7899fe3e2a8a5f5afd9e0 /plugins/workflow.cpp
parent8ed219d4e0cbea19c8a9489294a975b81946bba2 (diff)
downloaddfhack-fd0bf2ef929d3bc98570012b21e6e603c570a8f6.tar.gz
dfhack-fd0bf2ef929d3bc98570012b21e6e603c570a8f6.tar.bz2
dfhack-fd0bf2ef929d3bc98570012b21e6e603c570a8f6.tar.xz
Extract the color enum from color_ostream to toplevel.
Diffstat (limited to 'plugins/workflow.cpp')
-rw-r--r--plugins/workflow.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/workflow.cpp b/plugins/workflow.cpp
index 16205124..639e7c56 100644
--- a/plugins/workflow.cpp
+++ b/plugins/workflow.cpp
@@ -1380,15 +1380,15 @@ static void print_constraint(color_ostream &out, ItemConstraint *cv, bool no_job
{
Console::color_value color;
if (cv->request_resume)
- color = Console::COLOR_GREEN;
+ color = COLOR_GREEN;
else if (cv->request_suspend)
- color = Console::COLOR_CYAN;
+ color = COLOR_CYAN;
else
- color = Console::COLOR_DARKGREY;
+ color = COLOR_DARKGREY;
out.color(color);
out << prefix << "Constraint " << flush;
- out.color(Console::COLOR_GREY);
+ out.color(COLOR_GREY);
out << cv->config.val() << " " << flush;
out.color(color);
out << (cv->goalByCount() ? "count " : "amount ")
@@ -1437,18 +1437,18 @@ static void print_constraint(color_ostream &out, ItemConstraint *cv, bool no_job
{
if (pj->want_resumed)
{
- out.color(Console::COLOR_YELLOW);
+ out.color(COLOR_YELLOW);
out << start << " (delayed)" << endl;
}
else
{
- out.color(Console::COLOR_BLUE);
+ out.color(COLOR_BLUE);
out << start << " (suspended)" << endl;
}
}
else
{
- out.color(Console::COLOR_GREEN);
+ out.color(COLOR_GREEN);
out << start << endl;
}
@@ -1472,11 +1472,11 @@ static void print_job(color_ostream &out, ProtectedJob *pj)
isOptionEnabled(CF_AUTOMELT))
{
if (meltable_count <= 0)
- out.color(Console::COLOR_CYAN);
+ out.color(COLOR_CYAN);
else if (pj->want_resumed && !pj->isActuallyResumed())
- out.color(Console::COLOR_YELLOW);
+ out.color(COLOR_YELLOW);
else
- out.color(Console::COLOR_GREEN);
+ out.color(COLOR_GREEN);
out << " Meltable: " << meltable_count << " objects." << endl;
out.reset_color();
}