Added the "button" property to the list that scripttrigger.cpp writes out into a...
authorOndřej Hošek <ondra.hosek@gmail.com>
Wed, 11 May 2005 17:31:23 +0000 (17:31 +0000)
committerOndřej Hošek <ondra.hosek@gmail.com>
Wed, 11 May 2005 17:31:23 +0000 (17:31 +0000)
SVN-Revision: 2472

src/trigger/scripttrigger.cpp

index 1d2ccb8..e5bc848 100644 (file)
@@ -71,6 +71,7 @@ ScriptTrigger::write(lisp::Writer& writer)
   writer.write_float("width", bbox.get_width());\r
   writer.write_float("height", bbox.get_height());\r
   writer.write_string("script", script);\r
+  writer.write_bool("button", (triggerevent == EVENT_ACTIVATE) ? true : false);\r
 \r
   writer.end_list("scripttrigger");\r
 }\r