Branch: refs/heads/master
Home: https://github.com/Warzone2100/warzone2100
Commit: 19d37399c3fcb31fbb87cb1419125c6cb133aa16
https://github.com/Warzone2100/warzone2100/commit/19d37399c3fcb31fbb87cb1419125c6cb133aa16
Author: Per Inge Mathisen <per.mathi...@gmail.com>
Date: 2017-05-25 (Thu, 25 May 2017)
Changed paths:
M data/base/script/campaign/libcampaign.js
M src/qtscript.cpp
M src/qtscriptdebug.cpp
M src/qtscriptdebug.h
M src/qtscriptfuncs.cpp
M src/qtscriptfuncs.h
Log Message:
-----------
qtscript: Add a way for a script library to register an event namespace
New function: namespace(prefix)
The namespace function registers a new namespace for events, that the
script environment will call in addition to the non-prefixed event names.
This allows script libraries to exist that can handle events, without
overwriting or being overwritten by scripts using that library.
All existing campaign event handlers except area handlers have been
changed to use the new namespace feature.
New buttons in debug menu to show all labels, all active labels,
clear labels, and show all gateways.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Warzone2100-commits mailing list
Warzone2100-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/warzone2100-commits