---++!! !CreatorAppDev __description__: 鍒涘缓妯″瀷绛 %TOC{title="Contents:"}% %STARTINCLUDE% ---++ Creator app for Paraworld | *Title* | Creator app for Paraworld | | *Author(s)* | Andy, LiXizhi | | *Date* | 2008/1/5, revised 2008.6.15 LiXizhi | | *File* | script/kids/3DMapSystemUI/Creator/app_main.lua | ---+++ Description ---++ Creation.CreateObject * Map3DSystem.App.Commands.Call("Creation.NormalModel", objParams); where objParams is the object parameters to be created. for more information, please see object_editor ---++ Creator.NormalModel show the creator panel for this category of object * Map3DSystem.App.Commands.Call("Creation.NormalModel"); ---++ Creator.NormalCharacter show the creator panel for this category of object * Map3DSystem.App.Commands.Call("Creation.NormalCharacter"); ---++ Creator.BuildingComponents show the creator panel for this category of object * Map3DSystem.App.Commands.Call("Creation.BuildingComponents"); ---++ Creation.UpdatePanels whenever the selection changed, we need to call following command to update panels. * Map3DSystem.App.Commands.Call("Creation.UpdatePanels"); ---++ Creation.ShowOBB show or hide the object bounding box. if params is nil, it will toggle display * Map3DSystem.App.Commands.Call("Creation.ShowOBB", true); ---++ Creation.ShowReport show or hide the graphics report. if params is nil, it will toggle display * Map3DSystem.App.Commands.Call("Creation.ShowReport", true); ---++ modify page show or hide the modify panel. Modify panel is valid for both character and static model. And they share the same mcml page. * show the modify panel: Map3DSystem.App.Commands.Call("Creation.Modify"); * hide the modify panel: Map3DSystem.App.Commands.Call("Creation.Modify", {bShow=false}); ---++ property page Each scene object may have zero or several property pages, depending on the type of the scene object and applications installed. Normal character has CharPropertyPage defined in CreatorApp. It can be invoked by * Map3DSystem.App.Commands.Call("Creation.CharProperty"); Object with replaceable textures(r2) has ObjTexPropertyPage defined in CreatorApp. It can be invoked by * Map3DSystem.App.Commands.Call("Creation.ObjTexProperty"); To automatically invoke the appropriate property or modify page(whichever is important) of the currently selected or context menu object. Call below. * Map3DSystem.App.Commands.Call("Creation.DefaultProperty"); -- for selected object * Map3DSystem.App.Commands.Call("Creation.DefaultProperty", {target="contextmenu"}); -- for context menu object * Map3DSystem.App.Commands.Call("Creation.DefaultProperty", {target=""}); -- hide all property page Above function can be invoked by other applications, since it does not rely on any scene object hook. db registration insert script INSERT INTO apps VALUES (NULL, 'Creator_GUID', 'Creator', '1.0.0', 'http://www.paraengine.com/apps/Creator_v1.zip', 'YourCompany', 'enUS', 'script/kids/3DMapSystemUI/Creator/IP.xml', '', 'script/kids/3DMapSystemUI/Creator/app_main.lua', 'Creator.MSGProc', 1); %T% __Sample Code__ <verbatim> NPL.load("(gl)script/kids/3DMapSystemUI/Creator/app_main.lua"); </verbatim> ---+++ Member Functions ---++++ !Creator.OnConnection requires create class local Creator = {}; commonlib.setfield("Map3DSystem.App.Creator", Creator); "selection" or "contextmenu". where to get the object in concern. i.e. local obj = Map3DSystem.obj.GetObjectParams(Map3DSystem.App.Creator.target); Creator.target = "selection"; ------------------------------------------- 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 Creator.OnConnection(app, connectMode)</verbatim> __parameters__ | *app* | the object representing the current application in the IDE. | | *connectMode* | | ---++++ !Creator.OnDisconnection Receives notification that the Add-in is being unloaded. __syntax__ <verbatim>function Creator.OnDisconnection(app, disconnectMode)</verbatim> __parameters__ | *app* | | | *disconnectMode* | | ---++++ !Creator.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 Creator.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. | ---++++ !Creator.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 Creator.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* | | ---++++ !Creator.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 Creator.OnRenderBox(mcmlData)</verbatim> __parameters__ | *mcmlData* | | ---++++ !Creator.Navigate called when the user wants to nagivate to the 3D world location relavent to this application __syntax__ <verbatim>function Creator.Navigate()</verbatim> ---++++ !Creator.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 Creator.GotoHomepage()</verbatim> ---++++ !Creator.DoQuickAction called when user clicks the quick action for this application. __syntax__ <verbatim>function Creator.DoQuickAction()</verbatim> ---++++ !Creator.Hook_SceneObjectSelected "scene" object window hook. we will show object page accordingly. __syntax__ <verbatim>function Creator.Hook_SceneObjectSelected(nCode, appName, msg)</verbatim> __parameters__ | *nCode* | | | *appName* | | | *msg* | | ---++++ !Creator.ShowDefaultObjectPage show modify or property panel, whichever is more important to the currently selected object * _param_ __target__ : nil or "" or "selection" or "contextmenu". if nil, it default to "selection". It specifies where to get the object in concern. if "", all panels are hidden. __syntax__ <verbatim>function Creator.ShowDefaultObjectPage(target)</verbatim> __parameters__ | *target* | nil or "" or "selection" or "contextmenu". if nil, it default to "selection". It specifies where to get the object in concern. if "", all panels are hidden. | ---++++ !Creator.OnWorldClosed called whenever a world is being closed. __syntax__ <verbatim>function Creator.OnWorldClosed()</verbatim> ---++++ !Creator.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 Creator.MSGProc(window, msg)</verbatim> __parameters__ | *window* | | | *msg* | | ---++ character property page code behind file | *Title* | character property page code behind file | | *Author(s)* | LiXizhi | | *Date* | 2008/6/14 | | *File* | script/kids/3DMapSystemUI/Creator/CharPropertyPage.lua | ---+++ Description %T% __Sample Code__ <verbatim> NPL.load("(gl)script/kids/3DMapSystemUI/Creator/CharPropertyPage.lua"); Map3DSystem.App.Creator.CharPropertyPage.UpdatePanelUI() Map3DSystem.App.Creator.CharPropertyPage.OnAssignAIClick(1, "contextmenu") </verbatim> ---+++ Member Functions ---++++ !CharPropertyPage.DS_Func_NPC <verbatim> NPC data source. local dsNPC = { {Title="鎴戣瀛︿細璇磋瘽", Icon="Texture/3DMapSystem/AppIcons/chat_64.dds", SubTitle="瀛﹁璇? 鐪熶汉閰嶉煶"}, {Title="闅忔満璧板姩", Icon="Texture/3DMapSystem/AppIcons/Environment_64.dds", SubTitle="鍦ㄥ懆鍥撮殢鏈鸿蛋鍔?}, {Title="鎴戞槸璺熷眮铏?, Icon="Texture/3DMapSystem/AppIcons/People_64.dds", SubTitle="鑷姩璺熼殢闄勮繎鐨勭帺瀹?}, {Title="鎴戞槸瀵兼父", Icon="Texture/3DMapSystem/AppIcons/NewWorld_64.dds", SubTitle="鍗忓姪鐜╁鐨勫娓?}, {Title="鏈ㄥご浜?, Icon="Texture/3DMapSystem/AppIcons/Pet_64.dds", SubTitle="鎴愪负鍘熷湴涓嶅姩鐨勪汉鐗?}, }</verbatim> data source function for official app. __syntax__ <verbatim>function CharPropertyPage.DS_Func_NPC(index)</verbatim> __parameters__ | *index* | | ---++++ !CharPropertyPage.OnInit init __syntax__ <verbatim>function CharPropertyPage.OnInit()</verbatim> ---++++ !CharPropertyPage.UpdatePanelUI update UI __syntax__ <verbatim>function CharPropertyPage.UpdatePanelUI()</verbatim> ---++++ !CharPropertyPage.OnClose close panel __syntax__ <verbatim>function CharPropertyPage.OnClose()</verbatim> ---++++ !CharPropertyPage.OnSwitchToObject take control of the character __syntax__ <verbatim>function CharPropertyPage.OnSwitchToObject()</verbatim> ---++++ !CharPropertyPage.OnChangeCharacterName whenever the user pressed the change name button __syntax__ <verbatim>function CharPropertyPage.OnChangeCharacterName()</verbatim> ---++++ !CharPropertyPage.OnChangeCharacterSkin change to the next skin __syntax__ <verbatim>function CharPropertyPage.OnChangeCharacterSkin()</verbatim> ---++++ !CharPropertyPage.OnSaveCharacterProperty save character to local world db __syntax__ <verbatim>function CharPropertyPage.OnSaveCharacterProperty()</verbatim> ---++++ !CharPropertyPage.OnDeleteCharacter delete it. __syntax__ <verbatim>function CharPropertyPage.OnDeleteCharacter()</verbatim> ---++++ !CharPropertyPage.OnClickNPLTemplate user clicks the NPC template. __syntax__ <verbatim>function CharPropertyPage.OnClickNPLTemplate(index)</verbatim> __parameters__ | *index* | | ---++++ !CharPropertyPage.OnAssignAIClick called when one of the AI buttons is clicked. see dsNPC table for meaning of the index. * _param_ __nIndex__ : behavior type * _param_ __target__ : it can be "selection" or "contextmenu" or nil. if nil it is the target set by Map3DSystem.App.Creator.target __syntax__ <verbatim>function CharPropertyPage.OnAssignAIClick(nIndex, target)</verbatim> __parameters__ | *nIndex* | behavior type | | *target* | | ---++ creator application main window | *Title* | creator application main window | | *Author(s)* | WangTian | | *Date* | 2008/5/26 | | *File* | script/kids/3DMapSystemUI/Creator/Main.lua | ---+++ Description Creator application window is upgraded to the new aura look, including: show the window on the side instead of bottom to utilize more screen space show the items in grid view form fit to window size automaticly categories are arranged on the top and left(/right) side of the grid view %T% __Sample Code__ <verbatim> NPL.load("(gl)script/kids/3DMapSystemUI/Creator/Main.lua"); </verbatim> ---+++ Member Functions ---++++ !Map3DSystem.UI.Creator.ShowMainWnd3 Show the creator main window __syntax__ <verbatim>function Map3DSystem.UI.Creator.ShowMainWnd3(bShow)</verbatim> __parameters__ | *bShow* | | ---++++ !Map3DSystem.UI.Creator.ShowMainWnd Show the creator main window __syntax__ <verbatim>function Map3DSystem.UI.Creator.ShowMainWnd(bShow)</verbatim> __parameters__ | *bShow* | | ---++++ !Map3DSystem.UI.Creator.DestroyMainWnd destory the main window, usually called when the world is closed __syntax__ <verbatim>function Map3DSystem.UI.Creator.DestroyMainWnd()</verbatim> ---++++ !Map3DSystem.UI.Creator.OnSize change the main window size, usually called on resolution change __syntax__ <verbatim>function Map3DSystem.UI.Creator.OnSize(width, height)</verbatim> __parameters__ | *width* | | | *height* | | ---++++ !Map3DSystem.UI.Creator.MSGProc Message Processor of Creator main control On receive WM_SIZE message it will update the CreationTabGrid control __syntax__ <verbatim>function Map3DSystem.UI.Creator.MSGProc(window, msg)</verbatim> __parameters__ | *window* | | | *msg* | | ---++++ !Map3DSystem.UI.Creator.OnDeactivate exit BCS mode and clear miniscenegraph this function is also called when creator desktop is switched off. -- lxz 2008.6.15 __syntax__ <verbatim>function Map3DSystem.UI.Creator.OnDeactivate()</verbatim> ---++++ !Map3DSystem.UI.Creator.SwitchCategory * _param_ __index__ : 1 normal model 2 BCS 3 normal character __syntax__ <verbatim>function Map3DSystem.UI.Creator.SwitchCategory(index)</verbatim> __parameters__ | *index* | 1 normal model 2 BCS 3 normal character | ---++++ !Map3DSystem.UI.Creator.OnGridItemClick user clicks an icon in the creation panel. __syntax__ <verbatim>function Map3DSystem.UI.Creator.OnGridItemClick(level1index, level2index, itemindex)</verbatim> __parameters__ | *level1index* | | | *level2index* | | | *itemindex* | | ---++++ !Map3DSystem.UI.Creator.GetObjParamsFromAsset [[ @Updated by LXZ 2008.2.8: this function is also used by the asset app to create preview model. get the objParams from an asset description table and its category. * _param_ __category__ : the asset category name. such as "BCS_buildingcomponents", "NM_normalmodel", "NC_normalcharacter", "CCS_customizablecharacter", the prefix decides the category. Known category is "BCS_", "NC_","NM_", "CCS_" * _param_ __item__ : the asset description table. asset = { ["filename"] = "character/v1/01human/long/long.x", ["Reserved1"] = "0.3", ["text"] = "demo char", ["Reserved3"] = "1", ["Reserved2"] = "1.2", } * _return_ ____ : objParams table is created. it may return nil. ]] __syntax__ <verbatim>function Map3DSystem.UI.Creator.GetObjParamsFromAsset(category, item)</verbatim> __parameters__ | *category* | the asset category name. such as "BCS_buildingcomponents", "NM_normalmodel", "NC_normalcharacter", "CCS_customizablecharacter", the prefix decides the category. Known category is "BCS_", "NC_","NM_", "CCS_" | | *item* | | | *return* | objParams table is created. it may return nil. ]] | ---++ object modification page code behind file | *Title* | object modification page code behind file | | *Author(s)* | LiXizhi | | *Date* | 2008/6/11 | | *File* | script/kids/3DMapSystemUI/Creator/ObjModifyPage.lua | ---+++ Description %T% __Sample Code__ <verbatim> NPL.load("(gl)script/kids/3DMapSystemUI/Creator/ObjModifyPage.lua"); -- call below to load window Map3DSystem.App.Commands.Call("File.MCMLWindowFrame", { url="script/kids/3DMapSystemUI/Creator/ObjModifyPage.html", name="ObjModifyPage", app_key=Map3DSystem.App.AppKeys["Creator"], isShowTitleBar = false, isShowToolboxBar = false, isShowStatusBar = false, initialWidth = 200, alignment = "Left", }); Map3DSystem.App.Creator.ObjModifyPage.UpdatePanelUI() </verbatim> ---+++ Member Functions ---++++ !ObjModifyPage.OnInit __syntax__ <verbatim>function ObjModifyPage.OnInit()</verbatim> ---++++ !ObjModifyPage.UpdatePanelUI update the tranlation rotation scaling shift reset and canvas UI according to the current selected object __syntax__ <verbatim>function ObjModifyPage.UpdatePanelUI()</verbatim> ---++++ !ObjModifyPage.OnTranslationClick Event handler: on object translation __syntax__ <verbatim>function ObjModifyPage.OnTranslationClick()</verbatim> ---++++ !ObjModifyPage.OnRotationClick Event handler: on object rotation __syntax__ <verbatim>function ObjModifyPage.OnRotationClick()</verbatim> ---++++ !ObjModifyPage.OnClose close panel __syntax__ <verbatim>function ObjModifyPage.OnClose()</verbatim> ---++ object texture property page code behind file | *Title* | object texture property page code behind file | | *Author(s)* | LiXizhi | | *Date* | 2008/6/15 | | *File* | script/kids/3DMapSystemUI/Creator/ObjTexPropertyPage.lua | ---+++ Description %T% __Sample Code__ <verbatim> NPL.load("(gl)script/kids/3DMapSystemUI/Creator/ObjTexPropertyPage.lua"); Map3DSystem.App.Creator.ObjTexPropertyPage.UpdatePanelUI() </verbatim> ---+++ Member Functions ---++++ !ObjTexPropertyPage.DS_Func_Tex <verbatim> NPC data source. local dsTex = { {Title="鎴戣瀛︿細璇磋瘽", Icon="Texture/3DMapSystem/AppIcons/chat_64.dds", SubTitle="瀛﹁璇? 鐪熶汉閰嶉煶"}, }</verbatim> data source function for official app. __syntax__ <verbatim>function ObjTexPropertyPage.DS_Func_Tex(index)</verbatim> __parameters__ | *index* | | ---++++ !ObjTexPropertyPage.UpdatePanelUI update UI __syntax__ <verbatim>function ObjTexPropertyPage.UpdatePanelUI()</verbatim> ---++++ !ObjTexPropertyPage.OnInit init __syntax__ <verbatim>function ObjTexPropertyPage.OnInit()</verbatim> ---++++ !ObjTexPropertyPage.OnClose close panel __syntax__ <verbatim>function ObjTexPropertyPage.OnClose()</verbatim> ---++++ !ObjTexPropertyPage.OnClickTexTemplate user clicks the NPC template. __syntax__ <verbatim>function ObjTexPropertyPage.OnClickTexTemplate(index)</verbatim> __parameters__ | *index* | | ---++++ !ObjTexPropertyPage.OnChangeFileUrl user changes the file url. __syntax__ <verbatim>function ObjTexPropertyPage.OnChangeFileUrl(sCtrlName, filename)</verbatim> __parameters__ | *sCtrlName* | | | *filename* | | ---++++ !ObjTexPropertyPage.OnOpenFileForModelTexture open file for model texture __syntax__ <verbatim>function ObjTexPropertyPage.OnOpenFileForModelTexture()</verbatim> ---++++ !ObjTexPropertyPage.OnClickNavTo use web page texture __syntax__ <verbatim>function ObjTexPropertyPage.OnClickNavTo()</verbatim> ---++++ !ObjTexPropertyPage.OnUndoModelTexture force using the default replaceable texture for the given model. __syntax__ <verbatim>function ObjTexPropertyPage.OnUndoModelTexture()</verbatim> ---++++ !ObjTexPropertyPage.OnEditModelTexture let the user painter by himself. __syntax__ <verbatim>function ObjTexPropertyPage.OnEditModelTexture()</verbatim> ---++++ !ObjTexPropertyPage.OnEndEditingTexture when the user saves an owner draw image __syntax__ <verbatim>function ObjTexPropertyPage.OnEndEditingTexture()</verbatim> ---++++ !ObjTexPropertyPage.OnSaveUserDrawing when the user saves an owner draw image __syntax__ <verbatim>function ObjTexPropertyPage.OnSaveUserDrawing()</verbatim> ---++ Popup Obj modify window | *Title* | Popup Obj modify window | | *Author(s)* | LiXizhi | | *Date* | 2008/6/14 | | *File* | script/kids/3DMapSystemUI/Creator/PopupObjModWnd.lua | ---+++ Description The UI is on mcml page PopupObjModPage.html %T% __Sample Code__ <verbatim> NPL.load("(gl)script/kids/3DMapSystemUI/Creator/PopupObjModWnd.lua"); Map3DSystem.UI.Creator.PopupModWnd.ShowPopupEdit(obj_params) </verbatim> ---+++ Member Functions ---++++ !PopupModWnd.ShowPopupEdit --------------------------------------------------- show a top level popup window for a mouse cursor 3D mesh object --------------------------------------------------- PopupModWnd.Name = "PopupEdit"; function(bIsCancel) or string, -- function to call when edit window closes. PopupModWnd.PopupEditor_onclose = nil; * _param_ __obj__ :_params: a valid object params. More info see objeditor.lua * _param_ __x__ :,y: position at which to display the window * _param_ __onclose__ : function(bIsCancel) or string, -- function to call when edit window closes. __syntax__ <verbatim>function PopupModWnd.ShowPopupEdit(obj_params, x, y, onclose)</verbatim> __parameters__ | *obj* | _params: a valid object params. More info see objeditor.lua | | *params* | | | *x* | | | *y* | | | *onclose* | function(bIsCancel) or string, -- function to call when edit window closes. | ---++ Portal3DCanvas | *Title* | Portal3DCanvas | | *Author(s)* | Leio | | *Date* | 2008/12/11 | | *File* | script/kids/3DMapSystemUI/Creator/Portal3DCanvas.lua | ---+++ Description %T% __Sample Code__ <verbatim> NPL.load("(gl)script/kids/3DMapSystemUI/Creator/Portal3DCanvas.lua"); </verbatim> ---++ Portal3DCanvasView | *Title* | Portal3DCanvasView | | *Author(s)* | Leio | | *Date* | 2008/12/29 | | *File* | script/kids/3DMapSystemUI/Creator/Portal3DCanvasView.lua | ---+++ Description %T% __Sample Code__ <verbatim> NPL.load("(gl)script/kids/3DMapSystemUI/Creator/Portal3DCanvasView.lua"); </verbatim> ---++ PortalCanvas | *Title* | PortalCanvas | | *Author(s)* | Leio | | *Date* | 2008/12/11 | | *File* | script/kids/3DMapSystemUI/Creator/PortalCanvas.lua | ---+++ Description %T% __Sample Code__ <verbatim> NPL.load("(gl)script/kids/3DMapSystemUI/Creator/PortalCanvas.lua"); </verbatim> ---++ PortalCanvasView | *Title* | PortalCanvasView | | *Author(s)* | Leio | | *Date* | 2008/12/29 | | *File* | script/kids/3DMapSystemUI/Creator/PortalCanvasView.lua | ---+++ Description %T% __Sample Code__ <verbatim> NPL.load("(gl)script/kids/3DMapSystemUI/Creator/PortalCanvasView.lua"); </verbatim> ---++ PortalMetasView | *Title* | PortalMetasView | | *Author(s)* | Leio | | *Date* | 2009/1/4 | | *File* | script/kids/3DMapSystemUI/Creator/PortalMetasView.lua | ---+++ Description %T% __Sample Code__ <verbatim> NPL.load("(gl)script/kids/3DMapSystemUI/Creator/PortalMetasView.lua"); </verbatim> ---++ PortalPage code behind file | *Title* | PortalPage code behind file | | *Author(s)* | LiXizhi | | *Date* | 2008/9/11 | | *File* | script/kids/3DMapSystemUI/Creator/PortalPage.lua | ---+++ Description create and modify a portal node in the scene. %T% __Sample Code__ <verbatim> NPL.load("(gl)script/kids/3DMapSystemUI/Creator/PortalPage.lua"); Map3DSystem.App.Creator.PortalPage.UpdatePanelUI() </verbatim> ---+++ Member Functions ---++++ !PortalPage.OnCreatePortal create a default portal at current location __syntax__ <verbatim>function PortalPage.OnCreatePortal(name, values)</verbatim> __parameters__ | *name* | | | *values* | | ---++++ !PortalPage.OnUpdatePortalPoints update points __syntax__ <verbatim>function PortalPage.OnUpdatePortalPoints(name, values)</verbatim> __parameters__ | *name* | | | *values* | | ---++ PortalSystemPage code behind file | *Title* | PortalSystemPage code behind file | | *Author(s)* | LiXizhi | | *Date* | 2008/9/11 | | *File* | script/kids/3DMapSystemUI/Creator/PortalSystemPage.lua | ---+++ Description for testing only %T% __Sample Code__ <verbatim> NPL.load("(gl)script/kids/3DMapSystemUI/Creator/PortalSystemPage.lua"); </verbatim> ---+++ Member Functions ---++++ !PortalSystemPage.NewZoneNode create a new zone node __syntax__ <verbatim>function PortalSystemPage.NewZoneNode(params)</verbatim> __parameters__ | *params* | | ---++ StaticObjPage code behind file | *Title* | StaticObjPage code behind file | | *Author(s)* | Leio | | *Date* | 2008/12/30 | | *File* | script/kids/3DMapSystemUI/Creator/StaticObjPage.lua | ---+++ Description %T% __Sample Code__ <verbatim> NPL.load("(gl)script/kids/3DMapSystemUI/Creator/StaticObjPage.lua"); </verbatim> ---++ ZoneListPage code behind file | *Title* | ZoneListPage code behind file | | *Author(s)* | Leio | | *Date* | 2008/12/11 | | *File* | script/kids/3DMapSystemUI/Creator/ZoneListPage.lua | ---+++ Description %T% __Sample Code__ <verbatim> NPL.load("(gl)script/kids/3DMapSystemUI/Creator/ZoneListPage.lua"); </verbatim> ---++ ZoneNode PortalNode StaticObjNode | *Title* | ZoneNode PortalNode StaticObjNode | | *Author(s)* | Leio | | *Date* | 2008/12/11 | | *File* | script/kids/3DMapSystemUI/Creator/ZoneNode.lua | ---+++ Description %T% __Sample Code__ <verbatim> NPL.load("(gl)script/kids/3DMapSystemUI/Creator/ZoneNode.lua"); </verbatim> ---++ ZonePage code behind file | *Title* | ZonePage code behind file | | *Author(s)* | LiXizhi | | *Date* | 2008/9/26 | | *File* | script/kids/3DMapSystemUI/Creator/ZonePage.lua | ---+++ Description for testing only %T% __Sample Code__ <verbatim> NPL.load("(gl)script/kids/3DMapSystemUI/Creator/ZonePage.lua"); Map3DSystem.App.Creator.ZonePage.UpdatePanelUI() </verbatim> ---+++ Member Functions ---++++ !ZonePage.OnUpdateZonePlanes update points __syntax__ <verbatim>function ZonePage.OnUpdateZonePlanes(name, values)</verbatim> __parameters__ | *name* | | | *values* | | ---++ ZoneTemplatePage | *Title* | ZoneTemplatePage | | *Author(s)* | Leio | | *Date* | 2008/12/29 | | *File* | script/kids/3DMapSystemUI/Creator/ZoneTemplatePage.lua | ---+++ Description %T% __Sample Code__ <verbatim> NPL.load("(gl)script/kids/3DMapSystemUI/Creator/ZoneTemplatePage.lua"); </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