From c8ba378cbba13d6de7273b4a2e14587caadb1b15 Mon Sep 17 00:00:00 2001 From: Nicolas Aguirre Date: Sun, 3 Oct 2010 14:17:09 +0000 Subject: [PATCH] =?UTF-8?q?Randomize=20angles=20of=20p=C4=A5otos=20in=20di?= =?UTF-8?q?rectory=20thumbnails.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SVN revision: 52998 --- data/themes/default/ephoto.edc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/data/themes/default/ephoto.edc b/data/themes/default/ephoto.edc index 0b40f23..7c13b13 100644 --- a/data/themes/default/ephoto.edc +++ b/data/themes/default/ephoto.edc @@ -665,6 +665,25 @@ collections } } + programs { + program { name: "load"; + signal: "load"; + script { + new Float:val; + + custom_state(PART:"ephoto.swallow.thumb3", "default", 0.0); + custom_state(PART:"ephoto.swallow.thumb2", "default", 0.0); + val = randf(); + val = 40 * val - 20; + set_state_val(PART:"ephoto.swallow.thumb3", STATE_MAP_ROT_Z, val); + val = randf(); + val = 40 * val - 20; + set_state_val(PART:"ephoto.swallow.thumb2", STATE_MAP_ROT_Z, val); + set_state(PART:"ephoto.swallow.thumb2", "custom", 0.0); + set_state(PART:"ephoto.swallow.thumb3", "custom", 0.0); + } + } + } } }