<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.7.6(BH)" -->
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>testing wiki</title>
        <description></description>
        <link>http://www.mupe.net/documents/wikitest2/</link>
        <lastBuildDate>Tue, 06 Jan 2009 11:08:35 +0000</lastBuildDate>
        <generator>FeedCreator 1.7.6(BH)</generator>
        <item>
            <title>testing wiki</title>
            <link>http://www.mupe.net/documents/wikitest2/index/</link>
            <description>&lt;p&gt;This is the front page of your &lt;a href=&quot;http://www.midgard-project.org/&quot;&gt;Midgard CMS&lt;/a&gt; powered &lt;a href=&quot;http://en.wikipedia.org/wiki/Wiki&quot; class=&quot;wikipedia&quot;&gt;Wiki&lt;/a&gt;. Wikis are useful online scratchpads for writing documentation or quick notes in a collaborative fashion.&lt;/p&gt;

&lt;p&gt;Content on this wiki is edited using the &lt;a href=&quot;http://daringfireball.net/projects/markdown/syntax&quot;&gt;Markdown syntax&lt;/a&gt;, with links to pages made using &lt;code&gt;[Square brackets]&lt;/code&gt;. New pages are created by linking to their name and then clicking the link.&lt;/p&gt;

&lt;p&gt;Please read the &lt;a href=&quot;http://www.midgard-project.org/midcom-permalink-7276f817dcdefcf40d30a9ec69a7241f&quot;&gt;linking instructions&lt;/a&gt; for more information.&lt;/p&gt;

&lt;h1&gt;heading1&lt;/h1&gt;

&lt;h2&gt;heading2&lt;/h2&gt;

&lt;h3&gt;choice&lt;/h3&gt;

&lt;p&gt;Adds a new item in the choicegroup.&lt;/p&gt;

&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
  &lt;th&gt;First Header&lt;/th&gt;
  &lt;th&gt;Second Header&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
  &lt;td&gt;Content Cell&lt;/td&gt;
  &lt;td&gt;Content Cell&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;Content Cell&lt;/td&gt;
  &lt;td&gt;Content Cell&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;text&lt;/p&gt;

&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
  &lt;th&gt;First Header&lt;/th&gt;
  &lt;th&gt;Second Header&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
  &lt;td&gt;Content Cell&lt;/td&gt;
  &lt;td&gt;Content Cell&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;Content Cell&lt;/td&gt;
  &lt;td&gt;Content Cell&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;more text&lt;/p&gt;

&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
  &lt;th&gt;Function name&lt;/th&gt;
  &lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
  &lt;td&gt;&lt;code&gt;help()&lt;/code&gt;&lt;/td&gt;
  &lt;td&gt;Display the help window.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;&lt;code&gt;destroy()&lt;/code&gt;&lt;/td&gt;
  &lt;td&gt;&lt;strong&gt;Destroy your computer!&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Example(s)&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;choice name='item1' text='first item' /&amp;gt;
   &amp;lt;choice name='item1' text='first item' /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;h1&gt;Canvas UI&lt;/h1&gt;

&lt;h3&gt;From MupeWiki&lt;/h3&gt;

&lt;p&gt;Canvas implements a free-form graphical user-interface. Canvas UI is meant to be used in graphical application that require a user-interface that does not auto-format itself, such as many kinds of games. With canvas UI content creator can define absolute locations of the UI items and have features for advanced functionality, such as&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;image frame animations&lt;/li&gt;
&lt;li&gt;moving objects&lt;/li&gt;
&lt;li&gt;showing and hiding&lt;/li&gt;
&lt;li&gt;anchoring items together&lt;/li&gt;
&lt;li&gt;z-order&lt;/li&gt;
&lt;li&gt;windowing (item groups)&lt;/li&gt;
&lt;li&gt;graphics primitives for drawing lines, circles, arcs, rectangles, ellipses, etc&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;br /&gt; Canvas UI uses four UI items that have a lot of common functionality but also specialized features. The UI items are&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Image&lt;/li&gt;
&lt;li&gt;String&lt;/li&gt;
&lt;li&gt;Graphics&lt;/li&gt;
&lt;li&gt;Button&lt;/li&gt;
&lt;li&gt;tilemap&lt;/li&gt;
&lt;li&gt;Prompt&lt;/li&gt;
&lt;li&gt;Scrollbar&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;br /&gt; Unlike the form UI, the canvas UI does not use one-level item hierarchy, but there can be several “window”-like drawing spaces, called groups. Groups are used as containers for the UI items. They are rectangular, opaque, areas that can be placed anywhere on the screen. By default, if no groups are created, the UI still containts one group, which is the canvas UI itself. From implementation point-of-view the canvas UI creates a fullscreen group with the ID from the template message.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h1&gt;Identifier&lt;/h1&gt;

&lt;p&gt;In this UI type the the UI items are referenced using three parameters: ui, group and id. The &lt;em&gt;ui&lt;/em&gt; parameter can be left unspecified when the referred UI item is in the same UI with the caller. The “group” parameter can be left unspecified when the referred UI item is in same UI group with the caller. In addition to the UI Items The UI itself can be referred with its id and group, where the group parameter is same as the id. Item groups can be referred same way, by giving id and group parameters with same value.&lt;/p&gt;

&lt;p&gt;Alternatively its possible to refer to ui items using target parameter as follows: &lt;em&gt;target=&quot;ui:group.id&quot;&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;attributes&lt;/h2&gt;

&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;Param &lt;/th&gt;
&lt;th&gt;Type &lt;/th&gt;
&lt;th&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;id&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;Canvas Id (and default group Id) &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;width&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;Width of the UI. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;height&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;Height of the UI. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;smallfontheight&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;Height of the small font size. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;mediumfontheight&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;Height of the medium font size. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;largefontheight&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;Height of the large font size. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;creation&lt;/h2&gt;

&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;Param &lt;/th&gt;
&lt;th&gt;Type &lt;/th&gt;
&lt;th&gt;Default &lt;/th&gt;
&lt;th&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;type&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;must be ‘canvas&quot; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;id&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;auto&lt;/td&gt;
&lt;td&gt;Canvas Id (also Id of the default item group) &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;style&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;“color”&lt;/td&gt;
&lt;td&gt;
color = flat color background
image = image background
tiled = tiled image background
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;img&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;URL to image that is used with “image” and “tiled” styles. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;resource&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Resource that is used with“image” and “tiled” styles. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;uigroup&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;ui group Id &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;active&lt;/td&gt;
&lt;td&gt;boolean&lt;/td&gt;
&lt;td&gt;true&lt;/td&gt;
&lt;td&gt;
true = UI is displayed
false = UI is just stored in ui group
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;fullscreen&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;true&lt;/td&gt;
&lt;td&gt;True for fullscreen Uis, false for normal UI size &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;template type=&quot;canvas&quot; id=&quot;canvastest&quot; style=&quot;tiled&quot;&gt;
   &lt;parms&gt; 
      &lt;img&gt;![tile.png][3167]&lt;/img&gt;&lt;/p&gt;

&lt;p&gt;&lt;/parms&gt;
&lt;/template&gt;&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h1&gt;Anchoring UI items&lt;/h1&gt;

&lt;p&gt;Each UI item can be anchored to another UI tem. The programmer specified where this item is anchored to (anchor) and where this item is anchored at (reference). Offsets can also be specified. Default anchor is the top left of the group the object is added to and the default reference is this objects top left corner.&lt;/p&gt;

&lt;p&gt;If an object is moved and it has another object anchored to it, the anchored object it moved with it. This way the objects can be grouped and moved together. The location of the reference/anchor is defined by: &lt;vertical\_location&gt;_&lt;horizontal location&gt;. The possible combinations are seen in the following table:&lt;/p&gt;

&lt;table&gt;
&lt;tr&gt;
&lt;td&gt;**left**&lt;/td&gt;
&lt;td&gt;**center**&lt;/td&gt;
&lt;td&gt;**right**&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;**top**&lt;/td&gt;
&lt;td&gt;Top\_left&lt;/td&gt;
&lt;td&gt;top\_center&lt;/td&gt;
&lt;td&gt;top\_right &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;**center**&lt;/td&gt;
&lt;td&gt;center\_left&lt;/td&gt;
&lt;td&gt;center\_center (aka 'center')&lt;/td&gt;
&lt;td&gt;center\_right &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;**bottom**&lt;/td&gt;
&lt;td&gt;bottom\_left&lt;/td&gt;
&lt;td&gt;bottom\_center&lt;/td&gt;
&lt;td&gt;bottom\_right &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt; The anchor and reference points are defined by three parameters &lt;em&gt;reference&lt;/em&gt;, &lt;em&gt;anchor&lt;/em&gt; and &lt;em&gt;anchorid&lt;/em&gt;. the &lt;em&gt;reference&lt;/em&gt; parameters tells the reference point of the item and the &lt;em&gt;anchor&lt;/em&gt; parameter tells where the reference point is anchored. The &lt;em&gt;anchorid&lt;/em&gt; parameter specifies to which item the anchored item is anchored to.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt; In addition to previous, its possible to specify all three parameters within the &lt;em&gt;anchor&lt;/em&gt; parameter (since v2.30 of client). This is just implemented there, because defining the anchoring for every item can be cumbersome. To enable this feature, the &lt;em&gt;reference&lt;/em&gt; and &lt;em&gt;anchorid&lt;/em&gt; parameters are left unspecified and the &lt;em&gt;anchor&lt;/em&gt; parameter is given with notation &lt;em&gt;anchor='referencepoint/anchorpoint/anchorid&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;string id='item1' text='test' x=&quot;2&quot; y=&quot;-2&quot;&gt;
   &lt;parms&gt;
      &lt;reference&gt;top_left&lt;/reference&gt;
      &lt;anchor&gt;center&lt;/anchor&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;  &amp;lt;anchorid&amp;gt;another\_item&amp;lt;/anchorid&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;/parms&gt;
&lt;/string&gt;
 &lt;string id='item1' text='test' x=&quot;2&quot; y=&quot;-2&quot; anchor='top\_left/center/another\_item' /&gt;&lt;/p&gt;

&lt;h1&gt;Events defined by Canvas Items&lt;/h1&gt;

&lt;p&gt;These event hooks are defined for all the canvas UI items. They extend the set of events defined in Common Script Language.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
</description>
            <author>Eero Räsänen</author>
            <pubDate>Fri, 15 Jun 2007 01:38:47 +0000</pubDate>
        </item>
    </channel>
</rss>
