diff options
author | 2018-02-27 01:00:47 +0800 | |
---|---|---|
committer | 2018-02-27 01:00:47 +0800 | |
commit | 1948342aa869ad284d3bed11abbec03bc56ac612 (patch) | |
tree | ddda137e56aa1086be0f3edb67e1ffcc5be17b5a /Callback.cpp | |
download | Script-Materializer-1948342aa869ad284d3bed11abbec03bc56ac612.tar.xz |
the fscking initial commit.
Diffstat (limited to 'Callback.cpp')
-rw-r--r-- | Callback.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Callback.cpp b/Callback.cpp new file mode 100644 index 0000000..b96a30a --- /dev/null +++ b/Callback.cpp @@ -0,0 +1,32 @@ +#include "stdafx.h" +#include "Callback.h" +#include "Menu.h" + +//static plugin interface that allow direct communication with Virtools Dev +PluginInterface* s_Plugininterface = NULL; + + +//main plugin callback for Virtools Dev +void PluginCallback(PluginInfo::CALLBACK_REASON reason,PluginInterface* plugininterface) +{ + switch(reason) + { + case PluginInfo::CR_LOAD: + { + s_Plugininterface = plugininterface; + InitMenu(); + UpdateMenu(); + }break; + case PluginInfo::CR_UNLOAD: + { + RemoveMenu(); + s_Plugininterface = NULL; + }break; + case PluginInfo::CR_NEWCOMPOSITIONNAME: + { + }break; + case PluginInfo::CR_NOTIFICATION: + { + }break; + } +} |