summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormomo <momo+github@mo2-systems.com>2011-10-16 17:18:31 +0200
committermomo <momo+github@mo2-systems.com>2011-10-16 17:18:31 +0200
commit7a620847ed43efb2dcecc7e01c36296cabc086ee (patch)
treec7d1eebe2b2a08b39501375388545812ae922abb
parentb3cf3d2df22b20b3527622b9e06a13ac8163e8c5 (diff)
//streichelzoo: fixed symlink misbehaviors
-rw-r--r--streichelzoo/README2
-rwxr-xr-x[l---------]streichelzoo/button_down.pngbin39 -> 6501 bytes
-rwxr-xr-x[l---------]streichelzoo/button_up.pngbin37 -> 6655 bytes
-rw-r--r--[l---------]streichelzoo/main.avg32
-rw-r--r--[l---------]streichelzoo/streichelzoo.py32
5 files changed, 64 insertions, 2 deletions
diff --git a/streichelzoo/README b/streichelzoo/README
new file mode 100644
index 00000000..f93eb8c5
--- /dev/null
+++ b/streichelzoo/README
@@ -0,0 +1,2 @@
+Streichelzoo is a libavg based touchscreen interface for shackspace interface controll and is currently under development.
+As you already read it still is under development and not yet working.
diff --git a/streichelzoo/button_down.png b/streichelzoo/button_down.png
index f73a2282..f952aabf 120000..100755
--- a/streichelzoo/button_down.png
+++ b/streichelzoo/button_down.png
Binary files differ
diff --git a/streichelzoo/button_up.png b/streichelzoo/button_up.png
index 9b686df6..71253b23 120000..100755
--- a/streichelzoo/button_up.png
+++ b/streichelzoo/button_up.png
Binary files differ
diff --git a/streichelzoo/main.avg b/streichelzoo/main.avg
index 2e98e62d..2a67a881 120000..100644
--- a/streichelzoo/main.avg
+++ b/streichelzoo/main.avg
@@ -1 +1,31 @@
-/home/momo/dev/comshack/main.avg \ No newline at end of file
+<?xml version="1.0"?>
+<avg width="1024" height="768" active="True" >
+ <div id="mainwindow" active="True">
+ <div id="welcometext" x="0" y="70" width="1024" active="True">
+ <words x="1024" y="10"
+ text="Willkommen im shackspace"
+ font="arial" fontsize="100"/>
+ <words x="1024" y="10"
+ text="Welcome to shackspace"
+ font="arial" fontsize="100"/>
+ <words x="1024" y="10"
+ text="Benevudi a shackspace"
+ font="arial" fontsize="100"/>
+ <words x="1024" y="10"
+ text="Bienvenue à la shackspace"
+ font="arial" fontsize="100"/>
+ </div>
+ <image id="light" href="button_up.png" x="50" y="250"/>
+ <image id="roster" href="button_up.png" x="50" y="400"/>
+ <image id="blank" href="button_up.png" x="50" y="550"/>
+ <words id="txt_light" x="175" y="250" fontsize="80" variant="bold" text="lightcontrol"/>
+ <words id="txt_roster" x="175" y="400" fontsize="80" variant="bold" text="current roster"/>
+ <words id="txt_blank" x="175" y="550" fontsize="80" variant="bold" text="blank"/>
+ </div>
+ <div id="lightcontrol" active="False" width="1024" height="768">
+ <div id="segment1" height="200" width="400" x="50" y="50" active="False">
+ <words id="test" text="test"/>
+ </div>
+ </div>
+ <image id="logo" href="shack.png" x="880" y="460" />
+</avg>
diff --git a/streichelzoo/streichelzoo.py b/streichelzoo/streichelzoo.py
index d011e2c9..25b83964 120000..100644
--- a/streichelzoo/streichelzoo.py
+++ b/streichelzoo/streichelzoo.py
@@ -1 +1,31 @@
-/home/momo/dev/comshack/comshack.py \ No newline at end of file
+#! /bin/python
+from libavg import *
+
+#This function is a slightly modified version of cmiles code from dev.c-base.org/c_leuse/c_leuse.git
+#It takes a bunch of word nodes an slides them from left to right just as the HTML <marquee> function
+line = 16
+def welcomeScroll():
+ global line
+ line += 1
+ textNode = player.getElementByID("welcometext")
+ if line >= textNode.getNumChildren():
+ line = 0
+ node = textNode.getChild(line)
+ LinearAnim(node, "x", 11500, 1200, -1400, -1000, None, welcomeScroll).start()
+#
+def start_lightcontrol(event):
+ mainwindow = player.getElementByID("mainwindow")
+ lightcontrolwindow = player.getElementByID("lightcontrol")
+ mainwindow.active =False
+ lightcontrolwindow.active =True
+
+
+player = avg.Player.get()
+player.loadFile("main.avg")
+
+player.setTimeout(10, welcomeScroll)
+player.getElementByID("light").setEventHandler(avg.CURSORDOWN, avg.MOUSE, start_lightcontrol)
+#player.getElementByID("roster").setEventHandler(avg.CURSORDOWN, avg.MOUSE, buttondown)
+#player.getElementByID("blank").setEventHandler(avg.CURSORDOWN, avg.MOUSE, buttondown)
+player.play()
+