PEDN> Main Web>DeveloperSite > OfficialApps>WorldsApp (2008-06-23, LiXizhi) Change language en zh-cn? EditAttach

Worlds App

loading/saving publishing/downloading worlds

Summary of Contents

载入/保存 虚拟世界; 发布/下载虚拟世界; 管理游戏世界服务器

OfficialWorlds contains already installed worlds

Screenshots & User Guide

下面的UI和功能都是用MCML实现的。 可以参考它的源代码来学习MCML/NPL

Load world page

下面UI是全部使用MCML生成的加载世界窗口.

LoadWorldPage.jpg

TIP: 程序员可以参考它的源代码来开发自己的APP

<!-- "script/kids/3DMapSystemApp/worlds/LoadWorldPage.html" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
        <title>Load World Page by LiXizhi, 2008.4.28</title>
</head>
<body>
        <pe:mcml>
        <script type="text/npl" src="script/kids/3DMapSystemApp/worlds/LoadWorldPage.lua">
        Map3DSystem.App.worlds.LoadWorldPage.OnInit();
        </script>
        <pe:tabs name="ModelTabs">
        <pe:tab-item text="&#25171;&#24320;&#26412;&#22320;&#19990;&#30028;" selected="true">
        <div style="float:left;width:300px;margin:5px">
        &#31867;&#21035;: 
        <select name="CurFolder" onclick="Map3DSystem.App.worlds.LoadWorldPage.OnSelectFolder()">
        <option selected="true" value="worlds">&#20840;&#37096;&#19990;&#30028;</option>
        <option value="worlds/users">&#29992;&#25143;&#21019;&#24314;&#30340;&#19990;&#30028;</option>
        <option value="worlds/templates">&#27169;&#26495;&#19990;&#30028;</option>
        <option value="worlds/official">&#23448;&#26041;&#19990;&#30028;</option>
        <option value="worlds/downloads">&#25105;&#19979;&#36733;&#36807;&#30340;&#19990;&#30028;</option>
        <option value="/">&#26681;&#30446;&#24405;(/)</option>
        </select><br/>
        &#31867;&#22411;:
        <select name="CurFilter" onclick="Map3DSystem.App.worlds.LoadWorldPage.OnSelectFilter()">
        <option selected="true" value="*.zip;*.pkg;*.worldconfig.txt">&#20219;&#20309;&#19990;&#30028;(*.*)</option>
        <option value="*.zip;*.pkg">&#21482;&#35835;&#30340;&#19990;&#30028;(*.zip)</option>
        <option value="*.worldconfig.txt">&#21487;&#32534;&#36753;&#30340;&#19990;&#30028;(*.)</option>
        </select><br/>
        <pe:filebrowser name="FileBrowser" AllowFolderSelection="true" filter="*.zip;*.pkg;*.worldconfig.txt" rootfolder="worlds" onclick="Map3DSystem.App.worlds.LoadWorldPage.OnSelectFile()" ondoubleclick="Map3DSystem.App.worlds.LoadWorldPage.OnDoubleClickFile()" />
        </div>
        <div style="float:left;margin:5px;">
        <div><font style="color:#808080;">&#25552;&#31034;: &#35831;&#20174;&#24038;&#20391;&#36873;&#25321;&#19990;&#30028;&#25991;&#20214;, &#25110;&#32773;&#30452;&#25509;&#22312;&#19979;&#38754;&#25991;&#26412;&#26694;&#20013;&#36755;&#20837;&#36335;&#24452;, &#28982;&#21518;&#28857;&#20987;&#25171;&#24320;&#19990;&#30028;</font></div>
        &#24403;&#21069;&#19990;&#30028;&#36335;&#24452;: <select name="filepath" style="width:230px"><option value="" selected="true"></option></select><br/>
        <div><font style="font-weight:bold">&#19990;&#30028;&#39044;&#35272;:</font></div>
        <img name="WorldImage" style="width:256px;height:150px;margin-left:10px"/>
        <hr />
        <input type="button" name="LoadWorld" class="defaultbutton" value="&#25171;&#24320;&#19990;&#30028;" onclick="Map3DSystem.App.worlds.LoadWorldPage.OnClickLoadWorld()"/>
        <input style="margin-left:10px" type="button" name="DeleteWorld" value="&#21024;&#38500;" onclick="Map3DSystem.App.worlds.LoadWorldPage.OnClickDeleteWorld()"/>
        <input style="margin-left:10px" type="button" name="RefreshPreview" value="&#39044;&#35272;" onclick="Map3DSystem.App.worlds.LoadWorldPage.OnClickRefreshPreview()"/>
        </div>
        </pe:tab-item>  
        <pe:tab-item text="&#32593;&#19978;&#25512;&#33616;&#19990;&#30028;">
        <iframe name="RecommendedWorldsFrame" src="%WIKI%/Main/RecommendedOpenWorlds?skin=text" style="margin:5px;padding:5px" />
        </pe:tab-item>
        </pe:tabs>
        
        </pe:mcml>
</body>
</html>

Detailed Documentation

推荐的世界

MCML page to be loaded when user clicks the open online world in the load world page

名字 描述
[推荐的世界][RecommendedOpenWorlds] 推荐的世界的MCML页

各类在线世界模板

新建世界窗口的各类世界模板

名字 描述
田园 各类田园景色的世界
海滨 各类海滨景色的世界
现代都市 各类现代都市的世界
游戏 各类游戏的世界

Installation Instructions

Note: You do not need to install anything on the client to use this contrib package.

  • Download the ZIP file from the app web (see below)
  • Restart application

Application Info

Author: TWiki:Main/LiXizhi
Copyright ©: 2008 ParaEngine Corporation, All Rights Reserved
License: GPL (GNU General Public License)
Dependencies: none, OfficialApps
Version: 1.0
Change History:  
2008-04-28: Initial version
Home: WorldsApp
Feedback: WorldsAppDev?
Appraisal: WorldsAppAppraisal?

Related Topics: InsidePE

-- TWiki:Main/LiXizhi - 2008-04-28

AppForm
TopicClassification NormalApp?
AppCategory Official
TestedOnPE? ParaEngineVersion01x00?
InstalledOnPE? Yes
DemoUrl? http://
ModificationPolicy? PleaseFeelFreeToModify?
RelatedTopics?

Topic attachments
I Attachment Action Size Date Who Comment
jpgjpg LoadWorldPage.jpg manage 54.1 K 2008-04-30 - 18:41 LiXizhi Load world page
Topic revision: r5 - 2008-06-23 - 10:15:40 - 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