summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Berenz2016-10-06 09:58:18 +0200
committerAndreas Berenz2016-10-06 09:58:18 +0200
commita5c809d2b3fe38f943df1dfa5444346b2cd3a0c2 (patch)
tree045bcdcea8cca5e59e9c4acdad5a3f74fc752fcd
parentremoved obsolete 'obstacle' attribute (diff)
downloadslx-admin-a5c809d2b3fe38f943df1dfa5444346b2cd3a0c2.tar.gz
slx-admin-a5c809d2b3fe38f943df1dfa5444346b2cd3a0c2.tar.xz
slx-admin-a5c809d2b3fe38f943df1dfa5444346b2cd3a0c2.zip
added README file
-rw-r--r--modules-available/roomplanner/README26
1 files changed, 26 insertions, 0 deletions
diff --git a/modules-available/roomplanner/README b/modules-available/roomplanner/README
new file mode 100644
index 00000000..4f728219
--- /dev/null
+++ b/modules-available/roomplanner/README
@@ -0,0 +1,26 @@
+roomplanner module readme
+
+HOW TO
+
+add new furniture:
+==================
+add the following html to a tab of your choice to templates/page.html
+
+<div itemtype="furniture" itemlook="plant3" class="draggable" style="width:75px; height:75px;" data-height="75" data-width="75" title="{{lang_plant}}"></div>
+
+attribute description:
+ itemtype - defines the type. The attribute is used for collision detection. The items only collide with items of the same type.
+ itemlook - is used for the look of the item in style.css. If the itemlook ends with "-north", "-east", "-west" or "-north", the item is rotatable. Please ensure to define the look of all directions in your applied css file.
+ class="draggable" - is mandatory if the element should be added to the plan
+ style="width:XYpx; height:XYpx;" - defines the dimension in the toolbar.
+ data-height, data-width - defines the relation of item's dimension to the plan. 100 = 1 big square
+ title - the element's title. {{translation_key}} can be used for translation if the application is used in different languages
+ noresize - "1": the element must not be resized by the user (see: computers)
+ scalable: "h": the element is only allowed to be resized in horizontal direction, "v": the element is only allowed to be resized in vertical direction (see walls)
+
+
+add a translation:
+==================
+
+init.js file declares an object "translation" and a function __(key) which returns a translation of the key, if it exists. otherwise the key will be returned.
+To add a translation, the translation object has to be extended. \ No newline at end of file