-- Main.LiXizhi - 20 Feb 2008 Title: header file for all mcml tag node definitions and data binding controls<br />Author(s): LiXizhi<br />Date: 2008/2/14<br />Desc: mcml is an XML format describing profile box items and other display items in paraworld, such as task, quick action, action feed, tradableitem, etc. <br />One can think of it as the HTML counterpart in 3D social networking world for describing renderable objects in 2D and 3D. <br />it conforms with the ide/LuaXML conversion format, so that the script table defined here has a strict XML translation. <br />mcml is a universal format defined by ParaEngine. and any thing in the name space "pe" is official mcml control node that can be data binded to NPL controls. <br />mcml_controls for rendering mcml data is defined in mcml/mcml_controls and mcml/pe_* files. tag overview: <br /> - social tags: pe:profile pe:userinfo pe:friends pe:app pe:name pe:profile-action pe:profile-box pe:app-home-button<br /> - map tags: pe:map-mark pe:map-mark2d pe:map-tile<br /> - design tags: pe:dialog pe:tabs pe:tab-item pe:treeview pe:treenode pe:image pe:flash<br /> - component tags:pe:roomhost pe:market pe:comments <br /> - editor display: pe:editor pe:editor-buttonset pe:editor-button pe:editor-text pe:editor-divider pe:editor-custom pe:editor-radiobox(same as <input type="radio">) pe:editor-checkbox (same as <input type="checkbox">)<br /> HTML editor tags are implemented by editor: <br /> <input type="checkbox" name="option2" value="Butter" checked="true"/> <br /> <input type="radio" name="group1" value="Milk"/> <br /> <input type="radio" name="group1" value="Butter"/> <br /> <select name="select" size="3"><br /> <option selected="selected">line1</option><br /> <option>line2</option><br /> </select><br /> - control tags: pe:visible-to-owner<br /> - worlds tags:pe:world pe:world-ip pe:model pe:avatar<br /> - HTML tags:<text>, h1, h2,h3, h4, li, p, hr, div, a(href), img(src,height, width, title), <br /> anyTag(attr: style="allowflow:true;color: #006699; left: -60px; position: relative; top: 30px;width: 100px;height: 100px"),<br /> By default: :<text>, div, a(href), img tags 's allowflow is enabled, allowing content to automatically wrap to the next line. <br />use the lib:<br />------------------------------------------------------------<br />NPL.load("(gl)script/kids/3DMapSystemApp/mcml/mcml.lua");<br />-- to create a user defined tag<br />local node = Map3DSystem.mcml.new("pe:profile", {})<br />-- to deserialize from xml data or pure table. <br />local node = Map3DSystem.mcml.buildclass(node);<br />-- to render(create) databinding controls for an mcml node. <br />Map3DSystem.mcml_controls.create("me", node, bindingContext, _parent, left, top, right, bottom)<br />-- one can access a node via baseNode functions (see mcml/mcml_base) or using ide/Xpath<br />-------------------------------------------------------
Edit
|
Attach
|
P
rint version
|
H
istory
:
r6
|
r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r1 - 2008-02-20
-
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
简体中文
簡體中文
Edit
Attach
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback