The branch, frodo has been updated
       via  5179448dddc4224fc193daeb05b0a0c7030f0462 (commit)
      from  2e69068f3d3fedaae6d942feeeba47fd79773f67 (commit)

- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=5179448dddc4224fc193daeb05b0a0c7030f0462

commit 5179448dddc4224fc193daeb05b0a0c7030f0462
Author: Martijn Kaijser <[email protected]>
Date:   Thu Aug 22 15:33:34 2013 +0200

    [script.screensaver.nyancat] 0.1.0

diff --git a/script.screensaver.nyancat/addon.xml 
b/script.screensaver.nyancat/addon.xml
index 2cc43d6..e9817e4 100644
--- a/script.screensaver.nyancat/addon.xml
+++ b/script.screensaver.nyancat/addon.xml
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<addon id="script.screensaver.nyancat" name="Nyancat" version="0.0.2" 
provider-name="Tristan Fischer ([email protected])">
+<addon id="script.screensaver.nyancat" name="Nyancat" version="0.1.0" 
provider-name="Tristan Fischer ([email protected])">
     <requires>
         <import addon="xbmc.python" version="2.1.0"/>
     </requires>
diff --git a/script.screensaver.nyancat/changelog.txt 
b/script.screensaver.nyancat/changelog.txt
index 8699228..c035817 100644
--- a/script.screensaver.nyancat/changelog.txt
+++ b/script.screensaver.nyancat/changelog.txt
@@ -1,3 +1,7 @@
+0.1.0 (13.08.2013)
+ - added optional animated background (default enabled)
+ - added optional animated rainbow (default enabled)
+
 0.0.2 (16.07.2013)
  - first repo version
 
diff --git 
a/script.screensaver.nyancat/resources/skins/default/720p/script-Nyancat-main.xml
 
b/script.screensaver.nyancat/resources/skins/default/720p/script-Nyancat-main.xml
index 68ea4db..22f5e38 100644
--- 
a/script.screensaver.nyancat/resources/skins/default/720p/script-Nyancat-main.xml
+++ 
b/script.screensaver.nyancat/resources/skins/default/720p/script-Nyancat-main.xml
@@ -1,6 +1,13 @@
 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
 <window type="window">
     <controls>
+        <control type="label" id="1">
+            <description>Moving background controller. If visible background 
will move.</description>
+            <posx>0</posx>
+            <posy>0</posy>
+            <width>0</width>
+            <height>0</height>
+        </control>
         <control type="largeimage">
             <description>Background Image</description>
             <posx>0</posx>
@@ -8,6 +15,24 @@
             <width>1280</width>
             <height>720</height>
             <texture>background.jpg</texture>
+            <animation effect="slide" start="0,0" end="-1280,0" center="auto" 
time="3000" loop="true" 
condition="!Control.IsVisible(1)">conditional</animation>
+        </control>
+        <control type="largeimage">
+            <description>Background Image 2</description>
+            <posx>0</posx>
+            <posy>0</posy>
+            <width>1280</width>
+            <height>720</height>
+            <texture>background.jpg</texture>
+            <animation effect="slide" start="1280,0" end="0,0" center="auto" 
time="3000" loop="true" 
condition="!Control.IsVisible(1)">conditional</animation>
+        </control>
+        <control type="image" id="2">
+            <description>Rainbow</description>
+            <posx>0</posx>
+            <posy>200</posy>
+            <width>480</width>
+            <height>320</height>
+            <texture>rainbow.gif</texture>
         </control>
         <control type="image">
             <description>Nyan nyan nyan nyan nyan nyan nyan nyan nyan nyan 
nyan</description>
diff --git a/script.screensaver.nyancat/screensaver.py 
b/script.screensaver.nyancat/screensaver.py
index bd4c9a5..18d3668 100644
--- a/script.screensaver.nyancat/screensaver.py
+++ b/script.screensaver.nyancat/screensaver.py
@@ -26,6 +26,10 @@ addon_name = addon.getAddonInfo('name')
 addon_path = addon.getAddonInfo('path')
 
 
+CONTROL_MOVING_BACKGROUND = 1
+CONTROL_ANIMATED_RAINBOW = 2
+
+
 class Screensaver(xbmcgui.WindowXMLDialog):
 
     class ExitMonitor(xbmc.Monitor):
@@ -38,6 +42,13 @@ class Screensaver(xbmcgui.WindowXMLDialog):
 
     def onInit(self):
         self.exit_monitor = self.ExitMonitor(self.exit)
+        self.handle_settings()
+
+    def handle_settings(self):
+        if addon.getSetting('moving_background') == 'true':
+            self.getControl(CONTROL_MOVING_BACKGROUND).setVisible(False)
+        if not addon.getSetting('animated_rainbow') == 'true':
+            self.getControl(CONTROL_ANIMATED_RAINBOW).setVisible(False)
 
     def exit(self):
         self.abort_requested = True

-----------------------------------------------------------------------

Summary of changes:
 script.screensaver.nyancat/addon.xml               |    2 +-
 script.screensaver.nyancat/changelog.txt           |    4 +++
 .../resources/language/English/strings.xml         |    5 ++++
 script.screensaver.nyancat/resources/settings.xml  |    5 ++++
 .../skins/default/720p/script-Nyancat-main.xml     |   25 ++++++++++++++++++++
 .../resources/skins/default/media/rainbow.gif      |  Bin 0 -> 4757 bytes
 script.screensaver.nyancat/screensaver.py          |   11 ++++++++
 7 files changed, 51 insertions(+), 1 deletions(-)
 create mode 100644 
script.screensaver.nyancat/resources/language/English/strings.xml
 create mode 100644 script.screensaver.nyancat/resources/settings.xml
 create mode 100644 
script.screensaver.nyancat/resources/skins/default/media/rainbow.gif


hooks/post-receive
-- 
Scripts

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to