---++!! !DevelopersAppDev __description__: 鍒涘缓寮€鍙戝叾浠栧簲鐢ㄧ▼搴忕殑搴旂敤绋嬪簭銆 %TOC{title="Contents:"}% %STARTINCLUDE% ---++ Developers app for Paraworld | *Title* | Developers app for Paraworld | | *Author(s)* | LiXizhi | | *Date* | 2008/1/31 | | *File* | script/kids/3DMapSystemApp/Developers/app_main.lua | ---+++ Description Developers is an application to create, edit, submit other applications. Application developers can create a new application from several predefined template and submit applications to application directory. db registration insert script INSERT INTO apps VALUES (NULL, 'Developers_GUID', 'Developers', '1.0.0', 'http://www.paraengine.com/apps/Developers_v1.zip', 'YourCompany', 'enUS', 'script/kids/3DMapSystemApp/Developers/IP.xml', '', 'script/kids/3DMapSystemApp/Developers/app_main.lua', 'Map3DSystem.App.Developers.MSGProc', 1); ---++ Help.GenerateNPLWikiDoc generate wiki doc from all npl source code to script/doc folder. <verbatim> Map3DSystem.App.Commands.Call("Help.GenerateNPLWikiDoc"); </verbatim> ---++ Help.GenerateNPLWikiDoc generate wiki doc from all npl source code to script/doc folder. <verbatim> Map3DSystem.App.Commands.Call("Help.GenerateNPLWikiDoc"); </verbatim> %T% __Sample Code__ <verbatim> NPL.load("(gl)script/kids/3DMapSystemApp/Developers/app_main.lua"); </verbatim> ---+++ Member Functions ---++++ !Map3DSystem.App.Developers.OnConnection requires create class commonlib.setfield("Map3DSystem.App.Developers", {}); ------------------------------------------- event handlers ------------------------------------------- OnConnection method is the obvious point to place your UI (menus, mainbars, tool buttons) through which the user will communicate to the app. This method is also the place to put your validation code if you are licensing the add-in. You would normally do this before putting up the UI. If the user is not a valid user, you would not want to put the UI into the IDE. * _param_ __app__ : the object representing the current application in the IDE. * _param_ __connectMode__ : type of Map3DSystem.App.ConnectMode. __syntax__ <verbatim>function Map3DSystem.App.Developers.OnConnection(app, connectMode)</verbatim> __parameters__ | *app* | the object representing the current application in the IDE. | | *connectMode* | | ---++++ !Map3DSystem.App.Developers.OnDisconnection Receives notification that the Add-in is being unloaded. __syntax__ <verbatim>function Map3DSystem.App.Developers.OnDisconnection(app, disconnectMode)</verbatim> __parameters__ | *app* | | | *disconnectMode* | | ---++++ !Map3DSystem.App.Developers.OnQueryStatus This is called when the command's availability is updated When the user clicks a command (menu or mainbar button), the QueryStatus event is fired. The QueryStatus event returns the current status of the specified named command, whether it is enabled, disabled, or hidden in the CommandStatus parameter, which is passed to the msg by reference (or returned in the event handler). * _param_ __commandName__ : The name of the command to determine state for. Usually in the string format "Category.SubCate.Name". * _param_ __statusWanted__ : what status of the command is queried. it is of type Map3DSystem.App.CommandStatusWanted * _return_ ____ : returns according to statusWanted. it may return an integer by adding values in Map3DSystem.App.CommandStatus. __syntax__ <verbatim>function Map3DSystem.App.Developers.OnQueryStatus(app, commandName, statusWanted)</verbatim> __parameters__ | *app* | | | *commandName* | The name of the command to determine state for. Usually in the string format "Category.SubCate.Name". | | *statusWanted* | | | *return* | returns according to statusWanted. it may return an integer by adding values in Map3DSystem.App.CommandStatus. | ---++++ !Map3DSystem.App.Developers.OnExec This is called when the command is invoked.The Exec is fired after the QueryStatus event is fired, assuming that the return to the statusOption parameter of QueryStatus is supported and enabled. This is the event where you place the actual code for handling the response to the user click on the command. * _param_ __commandName__ : The name of the command to determine state for. Usually in the string format "Category.SubCate.Name". __syntax__ <verbatim>function Map3DSystem.App.Developers.OnExec(app, commandName, params)</verbatim> __parameters__ | *app* | | | *commandName* | The name of the command to determine state for. Usually in the string format "Category.SubCate.Name". | | *params* | | ---++++ !Map3DSystem.App.Developers.OnRenderBox Change and render the 3D world with mcml data that is usually retrieved from the current user's profile page for this application. __syntax__ <verbatim>function Map3DSystem.App.Developers.OnRenderBox(mcmlData)</verbatim> __parameters__ | *mcmlData* | | ---++++ !Map3DSystem.App.Developers.Navigate called when the user wants to nagivate to the 3D world location relavent to this application __syntax__ <verbatim>function Map3DSystem.App.Developers.Navigate()</verbatim> ---++++ !Map3DSystem.App.Developers.GotoHomepage called when user clicks to check out the homepage of this application. Homepage usually includes: developer info, support, developer worlds information, app global news, app updates, all community user rating, active users, trade, currency transfer, etc. __syntax__ <verbatim>function Map3DSystem.App.Developers.GotoHomepage()</verbatim> ---++++ !Map3DSystem.App.Developers.DoQuickAction called when user clicks the quick action for this application. __syntax__ <verbatim>function Map3DSystem.App.Developers.DoQuickAction()</verbatim> ---++++ !Map3DSystem.App.Developers.OnActivateDesktop Add terrain, sky and ocean button to the toolbar. __syntax__ <verbatim>function Map3DSystem.App.Developers.OnActivateDesktop()</verbatim> ---++++ !Map3DSystem.App.Developers.OnDeactivateDesktop __syntax__ <verbatim>function Map3DSystem.App.Developers.OnDeactivateDesktop()</verbatim> ---++++ !Map3DSystem.App.Developers.MSGProc ------------------------------------------- client world database function helpers. ------------------------------------------- ------------------------------------------ all related messages ------------------------------------------ ----------------------------------------------------- APPS can be invoked in many ways: Through app Manager mainbar or menu command or buttons Command Line 3D World installed apps ----------------------------------------------------- __syntax__ <verbatim>function Map3DSystem.App.Developers.MSGProc(window, msg)</verbatim> __parameters__ | *window* | | | *msg* | | ---++ code behind page for ArtToolsPage.html | *Title* | code behind page for ArtToolsPage.html | | *Author(s)* | LiXizhi | | *Date* | 2008/9/3 | | *File* | script/kids/3DMapSystemApp/Developers/ArtToolsPage.lua | ---+++ Description some tools that the artists uses. %T% __Sample Code__ <verbatim> NPL.load("(gl)script/kids/3DMapSystemApp/Developers/ArtToolsPage.lua"); </verbatim> ---+++ Member Functions ---++++ !ArtToolsPage.OnInit --------------------------------- page event handlers --------------------------------- local page; init __syntax__ <verbatim>function ArtToolsPage.OnInit()</verbatim> ---++ Author(s): Leio Zhang | *Title* | Author(s): Leio Zhang | | *Author(s)* | Leio Zhang | | *Date* | 2008/4/8 | | *File* | script/kids/3DMapSystemApp/Developers/DevelopersWnd.lua | ---+++ Description %T% __Sample Code__ <verbatim> NPL.load("(gl)script/kids/3DMapSystemApp/Developers/DevelopersWnd.lua"); Map3DSystem.App.Developers.ShowWnd(app); </verbatim> ---+++ Member Functions ---++++ !Map3DSystem.App.Developers.DevelopersWnd.SetDescription set description of textfield __syntax__ <verbatim>function Map3DSystem.App.Developers.DevelopersWnd.SetDescription(des)</verbatim> __parameters__ | *des* | | ---++ code behind page for EmuUsersPage.html | *Title* | code behind page for EmuUsersPage.html | | *Author(s)* | LiXizhi | | *Date* | 2008/12/31 | | *File* | script/kids/3DMapSystemApp/Developers/EmuUsersPage.lua | ---+++ Description %T% __Sample Code__ <verbatim> NPL.load("(gl)script/kids/3DMapSystemApp/Developers/EmuUsersPage.lua"); </verbatim> ---+++ Member Functions ---++++ !EmuUsersPage.OnInit --------------------------------- page event handlers --------------------------------- init __syntax__ <verbatim>function EmuUsersPage.OnInit()</verbatim> ---++++ !EmuUsersPage.OnClickStartEmuUsers translate the file __syntax__ <verbatim>function EmuUsersPage.OnClickStartEmuUsers()</verbatim> ---++++ !EmuUsersPage.GenEmuUsers generate emulation users near a center __syntax__ <verbatim>function EmuUsersPage.GenEmuUsers(btnName, values)</verbatim> __parameters__ | *btnName* | | | *values* | | ---++ module installer | *Title* | module installer | | *Author(s)* | LiXizhi | | *Date* | 2008/3/5 | | *File* | script/kids/3DMapSystemApp/Developers/module_installer.lua | ---+++ Description %T% __Sample Code__ <verbatim> NPL.load("(gl)script/kids/3DMapSystemApp/Developers/module_installer.lua"); </verbatim> ---++ code behind page for ProToolsPage.html | *Title* | code behind page for ProToolsPage.html | | *Author(s)* | LiXizhi | | *Date* | 2008/9/3 | | *File* | script/kids/3DMapSystemApp/Developers/ProToolsPage.lua | ---+++ Description %T% __Sample Code__ <verbatim> NPL.load("(gl)script/kids/3DMapSystemApp/Developers/ProToolsPage.lua"); </verbatim> ---+++ Member Functions ---++++ !ProToolsPage.OnInit --------------------------------- page event handlers --------------------------------- init __syntax__ <verbatim>function ProToolsPage.OnInit()</verbatim> ---++ a sample module file | *Title* | a sample module file | | *Author(s)* | LiXizhi | | *Date* | 2008/3/5 | | *File* | script/kids/3DMapSystemApp/Developers/sample_module.lua | ---+++ Description %T% __Sample Code__ <verbatim> NPL.load("(gl)script/kids/3DMapSystemApp/Developers/sample_module.lua"); </verbatim> ---+++ Member Functions ---++++ !sample_modules.file1_post_func this is an sample post processing function that replaces one string with another in the template file. * _param_ __input__ : input file text string * _return_ ____ : result file text string. __syntax__ <verbatim>function sample_modules.file1_post_func(input)</verbatim> __parameters__ | *input* | input file text string | ---++ code behind page for TranslateFilePage.html | *Title* | code behind page for TranslateFilePage.html | | *Author(s)* | LiXizhi | | *Date* | 2008/8/28 | | *File* | script/kids/3DMapSystemApp/Developers/TranslateFilePage.lua | ---+++ Description %T% __Sample Code__ <verbatim> NPL.load("(gl)script/kids/3DMapSystemApp/Developers/TranslateFilePage.lua"); </verbatim> ---+++ Member Functions ---++++ !TranslateFilePage.OnInit --------------------------------- page event handlers --------------------------------- init __syntax__ <verbatim>function TranslateFilePage.OnInit()</verbatim> ---++++ !TranslateFilePage.OnTranslateFile the current translator local translator; translate the file __syntax__ <verbatim>function TranslateFilePage.OnTranslateFile(btnName, values)</verbatim> __parameters__ | *btnName* | | | *values* | | ---++++ !TranslateFilePage.OnWriteToSourceFile write to the source code. __syntax__ <verbatim>function TranslateFilePage.OnWriteToSourceFile()</verbatim> ---++++ !TranslateFilePage.OnMachineTranslate I used http://translate.google.com to translate. it is basically http post __syntax__ <verbatim>function TranslateFilePage.OnMachineTranslate()</verbatim> %STOPINCLUDE%
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2008-02-29
-
LiXizhi
Home
Site map
CCWeb web
HaqiTeen web
Main web
ParaEngine web
TWiki web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
导航页WebTopMenu
Preferences
开发指南
Getting Started
ParacraftSDK
NPL
MCML
NPL Reference Manual
美术Mod
Account
Log In
English
简体中文
簡體中文
E
dit
A
ttach
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback