NewWorldAppDev

description: 创建新的虚拟世界向导。向导提供事先制作好的世界,用户可以直接修改来生成自己的世界。

Obsoleted by LiXizhi 2008.6.13 use worldsApp instead: New World wizards app for Paraworld. It offers a collection of premade worlds from which users can derive its own.

Title Obsoleted by LiXizhi 2008.6.13 use worldsApp instead: New World wizards app for Paraworld. It offers a collection of premade worlds from which users can derive its own.
Author(s) WangTian? , revised in app LiXizhi 2008.1.28
Date 2008/1/7
File script/kids/3DMapSystemUI/NewWorld/app_main.lua

Description

db registration insert script INSERT INTO apps VALUES (NULL, 'NewWorld_GUID', 'NewWorld', '1.0.0', 'http://www.paraengine.com/apps/NewWorld_v1.zip', 'YourCompany', 'enUS', 'script/kids/3DMapSystemUI/NewWorld/IP.xml', '', 'script/kids/3DMapSystemUI/NewWorld/app_main.lua', 'Map3DSystem.App.NewWorld.MSGProc', 1);

TIP Sample Code

NPL.load("(gl)script/kids/3DMapSystemUI/NewWorld/app_main.lua");

Member Functions

Map3DSystem.App.NewWorld.OnConnection

requires

create class commonlib.setfield("Map3DSystem.App.NewWorld", {});


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

function Map3DSystem.App.NewWorld.OnConnection(app, connectMode)

parameters

app the object representing the current application in the IDE.
connectMode  

Map3DSystem.App.NewWorld.OnDisconnection

Receives notification that the Add-in is being unloaded.

syntax

function Map3DSystem.App.NewWorld.OnDisconnection(app, disconnectMode)

parameters

app  
disconnectMode  

Map3DSystem.App.NewWorld.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

function Map3DSystem.App.NewWorld.OnQueryStatus(app, commandName, statusWanted)

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.NewWorld.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

function Map3DSystem.App.NewWorld.OnExec(app, commandName, params)

parameters

app  
commandName The name of the command to determine state for. Usually in the string format "Category.SubCate.Name".
params  

Map3DSystem.App.NewWorld.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

function Map3DSystem.App.NewWorld.OnRenderBox(mcmlData)

parameters

mcmlData  

Map3DSystem.App.NewWorld.Navigate

called when the user wants to nagivate to the 3D world location relavent to this application

syntax

function Map3DSystem.App.NewWorld.Navigate()

Map3DSystem.App.NewWorld.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

function Map3DSystem.App.NewWorld.GotoHomepage()

Map3DSystem.App.NewWorld.DoQuickAction

called when user clicks the quick action for this application.

syntax

function Map3DSystem.App.NewWorld.DoQuickAction()

Map3DSystem.App.NewWorld.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

function Map3DSystem.App.NewWorld.MSGProc(window, msg)

parameters

window  
msg  

A wizard to Create a new game world

Title A wizard to Create a new game world
Author(s) WangTian?
Date 2008/1/7
File script/kids/3DMapSystemUI/NewWorld/NewWorldWnd.lua

Description

TIP Sample Code

NPL.load("(gl)script/kids/3DMapSystemUI/NewWorld/NewWorldWnd.lua");
Map3DSystem.App.NewWorld.NewWorldWnd.ShowWnd(_app)
Map3DSystem.App.NewWorld.NewWorldWnd.Show(bShow, _parent, parentWindow)

Member Functions

Map3DSystem.App.NewWorld.NewWorldWnd.ShowWnd

display the main inventory window for the current user.

syntax

function  Map3DSystem.App.NewWorld.NewWorldWnd.ShowWnd(_app)

parameters

app  

Map3DSystem.App.NewWorld.NewWorldWnd.Show

  • param bShow : show or hide the panel
  • param __ :_parent: parent window inside which the content is displayed. it can be nil.

syntax

function Map3DSystem.App.NewWorld.NewWorldWnd.Show(bShow, _parent, parentWindow)

parameters

bShow show or hide the panel
parent  
parentWindow  

Map3DSystem.App.NewWorld.NewWorldWnd.OnDestroy

destroy the control

syntax

function Map3DSystem.App.NewWorld.NewWorldWnd.OnDestroy()
Topic revision: r1 - 2008-02-29 - 15:26:12 - LiXizhi
 

ParaEngine Developer Network

This site is powered by the TWiki collaboration platformCopyright © 2004-2008 ParaEngine Corporation
Ideas, requests, problems regarding ParaEngine platform Send feedback