Randomize angles of pĥotos in directory thumbnails.

SVN revision: 52998
v-1.6.0
Nicolas Aguirre 13 years ago
parent 53a83a021f
commit c8ba378cbb
  1. 19
      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);
}
}
}
}
}

Loading…
Cancel
Save