From baea17022954d8d58c20029cb1cd2ab6071e387b Mon Sep 17 00:00:00 2001 From: Chris Brunner Date: Mon, 27 Aug 2007 23:29:22 +0000 Subject: [PATCH] also prints full screenshot path to stdout --- panda/src/framework/pandaFramework.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/panda/src/framework/pandaFramework.cxx b/panda/src/framework/pandaFramework.cxx index 51295c6699..c0a6251012 100644 --- a/panda/src/framework/pandaFramework.cxx +++ b/panda/src/framework/pandaFramework.cxx @@ -1293,15 +1293,19 @@ event_f9(const Event *event, void *data) { text = filename; } + // Adds the full path to the output string + string output_text = (string)ExecutionEnvironment::get_cwd() + "/" + (string)text; + TextNode *text_node = new TextNode("screenshot"); self->_screenshot_text = NodePath(text_node); text_node->set_align(TextNode::A_center); text_node->set_shadow_color(0.0f, 0.0f, 0.0f, 1.0f); text_node->set_shadow(0.04f, 0.04f); - text_node->set_text((string)ExecutionEnvironment::get_cwd() + "/" + (string)text); + text_node->set_text(output_text); self->_screenshot_text.set_scale(0.06); self->_screenshot_text.set_pos(0.0, 0.0, -0.7); self->_screenshot_text.reparent_to(wf->get_aspect_2d()); + cout << "Screenshot saved: " + output_text + "\n"; double now = ClockObject::get_global_clock()->get_frame_time(); self->_screenshot_clear_time = now + 3.0;