Randomize angles of pĥotos in directory thumbnails.

SVN revision: 52998
This commit is contained in:
Nicolas Aguirre 2010-10-03 14:17:09 +00:00
parent 53a83a021f
commit c8ba378cbb
1 changed files with 19 additions and 0 deletions

View File

@ -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);
}
}
}
}
}