mirror of https://github.com/Qortal/AT
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
119 lines
2.9 KiB
119 lines
2.9 KiB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
|
|
<html> |
|
<head> |
|
<title>CIYAM AT - AT Metadata for UI</title> |
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
|
<meta name="copyright" content="Copyright 2015 CIYAM Developers"/> |
|
|
|
<link rel="stylesheet" href="document.css" type="text/css"/> |
|
</head> |
|
|
|
<div id="content"> |
|
<div id="header"> |
|
<div id="appname"><a href="//ciyam.org/at">AT</a></div> |
|
<h3 class="right-top">AT Metadata for UI</h3> |
|
</div> |
|
|
|
<div id="main"> |
|
<div id="text"> |
|
<pre> |
|
AT Metadata for UI |
|
------------------ |
|
|
|
The following are suggestions for how metadata could be added to an AT in order to provide a flexible UI that |
|
allows for both lists and views (the latter also being able to function as a form). For enums icons which are |
|
named in the form <label>.png would be optionally able to be displayed. The file format used here is known as |
|
"structured I/O" and comes from the CIYAM project (https://github.com/ciyam/ciyam/blob/master/src/sio.cpp). |
|
|
|
<enums/> |
|
<enum/> |
|
<name>playing_card |
|
<options>use_icons |
|
<items/> |
|
<item/> |
|
<value>1 |
|
<label>clubs_ace |
|
</item> |
|
<item/> |
|
<value>2 |
|
<label>clubs_two |
|
</item> |
|
... |
|
<item/> |
|
<value>17 |
|
<label>diamonds_ace |
|
</item> |
|
<item/> |
|
<value>18 |
|
<label>diamonds_two |
|
</item> |
|
... |
|
</items> |
|
</enum> |
|
</enums> |
|
|
|
<views/> |
|
<view/> |
|
<name>card |
|
<style>normal |
|
<actions> |
|
<options>runtime,no_edit |
|
<view_fields/> |
|
<view_field/> |
|
<label>card |
|
<value>0000007f |
|
<options>enum=playing_card |
|
<variety>byte |
|
</view_field> |
|
<view_field/> |
|
<label>selected |
|
<value>00000080 |
|
<options> |
|
<variety>bool |
|
</view_field> |
|
</view_fields> |
|
</view> |
|
</views> |
|
|
|
<lists/> |
|
<list/> |
|
<view>card |
|
<style>normal |
|
<actions>shuffle=message:1,select=message:2 |
|
<options>runtime |
|
<list_fields/> |
|
<list_field/> |
|
<label>card_1 |
|
<extra>selected=00000080 |
|
<address>00000000:0000007f |
|
<options>enum=playing_card |
|
<variety>byte |
|
</list_field> |
|
<list_field/> |
|
<label>card_2 |
|
<extra>selected=00008000 |
|
<address>00000000:00007f00 |
|
<options>enum=playing_card |
|
<variety>byte |
|
</list_field> |
|
... |
|
</list_fields> |
|
</list> |
|
</lists> |
|
|
|
</pre> |
|
</div> |
|
</div> |
|
|
|
<div style="visibility: visible;" id="footer"> |
|
<p> |
|
<div class="footer-icon"><a target="_blank" href="//ciyam.org/"><img src="logo-gryscl-128.png" /></a></div> |
|
© 2012-2015 CIYAM Developers |
|
</p> |
|
</div> |
|
</body> |
|
|
|
</html> |
|
|
|
|