From 330cb43cbd2ee15d028376e6da9803453db0f8de Mon Sep 17 00:00:00 2001 From: euer Date: Sun, 23 Dec 2012 00:36:43 +0100 Subject: //{streichelzoo,ivan} -> //god --- god/streichelzoo/README | 2 ++ god/streichelzoo/button_down.png | Bin 0 -> 6501 bytes god/streichelzoo/button_up.png | Bin 0 -> 6655 bytes god/streichelzoo/main.avg | 31 +++++++++++++++++++++++++++++++ god/streichelzoo/streichelzoo.py | 31 +++++++++++++++++++++++++++++++ 5 files changed, 64 insertions(+) create mode 100644 god/streichelzoo/README create mode 100644 god/streichelzoo/button_down.png create mode 100644 god/streichelzoo/button_up.png create mode 100644 god/streichelzoo/main.avg create mode 100644 god/streichelzoo/streichelzoo.py (limited to 'god/streichelzoo') diff --git a/god/streichelzoo/README b/god/streichelzoo/README new file mode 100644 index 00000000..f93eb8c5 --- /dev/null +++ b/god/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/god/streichelzoo/button_down.png b/god/streichelzoo/button_down.png new file mode 100644 index 00000000..f952aabf Binary files /dev/null and b/god/streichelzoo/button_down.png differ diff --git a/god/streichelzoo/button_up.png b/god/streichelzoo/button_up.png new file mode 100644 index 00000000..71253b23 Binary files /dev/null and b/god/streichelzoo/button_up.png differ diff --git a/god/streichelzoo/main.avg b/god/streichelzoo/main.avg new file mode 100644 index 00000000..2a67a881 --- /dev/null +++ b/god/streichelzoo/main.avg @@ -0,0 +1,31 @@ + + +
+
+ + + + +
+ + + + + + +
+
+
+ +
+
+ +
diff --git a/god/streichelzoo/streichelzoo.py b/god/streichelzoo/streichelzoo.py new file mode 100644 index 00000000..25b83964 --- /dev/null +++ b/god/streichelzoo/streichelzoo.py @@ -0,0 +1,31 @@ +#! /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 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() + -- cgit v1.2.3