Index: trunk/doc/user/06_feature/scripting/rosetta/11_hello_menu/ex.lua =================================================================== --- trunk/doc/user/06_feature/scripting/rosetta/11_hello_menu/ex.lua (nonexistent) +++ trunk/doc/user/06_feature/scripting/rosetta/11_hello_menu/ex.lua (revision 20955) @@ -0,0 +1,8 @@ +function hello() + message("Hello world!") + return 0 +end + +fgw_func_reg("hello") +cookie = scriptcookie() +createmenu("/main_menu/Plugins/script/hello", "hello()", "Prints hello! in the log", cookie)