-- LiXizhi - 20 Feb 2008

Title: header file for all mcml tag node definitions and data binding controls
Author(s): LiXizhi
Date: 2008/2/14
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.
One can think of it as the HTML counterpart in 3D social networking world for describing renderable objects in 2D and 3D.
it conforms with the ide/LuaXML conversion format, so that the script table defined here has a strict XML translation.
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.
mcml_controls for rendering mcml data is defined in mcml/mcml_controls and mcml/pe_* files.

tag overview:
- social tags: pe:profile pe:userinfo pe:friends pe:app pe:name pe:profile-action pe:profile-box pe:app-home-button
- map tags: pe:map-mark pe:map-mark2d pe:map-tile
- design tags: pe:dialog pe:tabs pe:tab-item pe:treeview pe:treenode pe:image pe:flash
- component tags:pe:roomhost pe:market pe:comments
- editor display: pe:editor pe:editor-buttonset pe:editor-button pe:editor-text pe:editor-divider pe:editor-custom pe:editor-radiobox(same as ) pe:editor-checkbox (same as )
HTML editor tags are implemented by editor:




- control tags: pe:visible-to-owner
- worlds tags:pe:world pe:world-ip pe:model pe:avatar
- HTML tags:, h1, h2,h3, h4, li, p, hr, div, a(href), img(src,height, width, title),
anyTag(attr: style="allowflow:true;color: #006699; left: -60px; position: relative; top: 30px;width: 100px;height: 100px"),
By default: :, div, a(href), img tags 's allowflow is enabled, allowing content to automatically wrap to the next line.
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/kids/3DMapSystemApp/mcml/mcml.lua");
-- to create a user defined tag
local node = Map3DSystem.mcml.new("pe:profile", {})
-- to deserialize from xml data or pure table.
local node = Map3DSystem.mcml.buildclass(node);
-- to render(create) databinding controls for an mcml node.
Map3DSystem.mcml_controls.create("me", node, bindingContext, _parent, left, top, right, bottom)
-- one can access a node via baseNode functions (see mcml/mcml_base) or using ide/Xpath
-------------------------------------------------------

Topic revision: r1 - 2008-02-20 - LiXizhi
 
  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 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