hey guys, i have too theems that i am ready to release, but ....the shuffle module was updated
and i would like to use it... i have them working with the original shuffle.nut, but not the new one
so original sample code working....
class ShufflePow extends Shuffle
{
function select(slot)
{
slot.visible = true;
}
function deselect(slot)
{
slot.visible = false;
}
}
local pow = ShufflePow(9, "artwork", "flyer");
pow.slots[0].set_pos(flx*-0.051, y, w, h);
local pic_cfg = {
when =Transition.ToNewSelection,
property = "scale",
start = 1.0,
end = size,
time = 0500,
//tween = Tween.Linear,
}
animation.add( PropertyAnimation( pow.slots[0], pic_cfg ) );
pow.slots[0].mipmap = true;
each slot has a # so i can give it its own animation!
now with the new code,,,for new module
## Overwrite the select function
#######################################
function select(slot) {
slot.visible = true;
slot.set_rgb (200,160,0);
}
## Overwrite the select function
#######################################
function deselect(slot) {
slot.visible = false;
}
}
## extended image list
#######################################
local pow = [];
pow.push(fe.add_image("art/icon.png", x1, fly*0.118, w1, h1));
pow.push(fe.add_image("art/icon.png", x1, fly*0.173, w1, h1));
pow.push(fe.add_image("art/icon.png", x1, fly*0.228, w1, h1));
pow.push(fe.add_image("art/icon.png", x1, fly*0.283, w1, h1));
pow.push(fe.add_image("art/icon.png", x1, fly*0.338, w1, h1));
pow.push(fe.add_image("art/icon.png", x1, fly*0.393, w1, h1));
pow.push(fe.add_image("art/icon.png", x1, fly*0.448, w1, h1));
pow.push(fe.add_image("art/icon.png", x1, fly*0.503, w1, h1));
pow.push(fe.add_image("art/icon.png", x1, fly*0.558, w1, h1));
pow.push(fe.add_image("art/icon.png", x1, fly*0.613, w1, h1));
pow.push(fe.add_image("art/icon.png", x1, fly*0.668, w1, h1));
pow.push(fe.add_image("art/icon.png", x1, fly*0.723, w1, h1));
pow.push(fe.add_image("art/icon.png", x1, fly*0.778, w1, h1));
pow.push(fe.add_image("art/icon.png", x1, fly*0.833, w1, h1));
pow.push(fe.add_image("art/icon.png", x1, fly*0.888, w1, h1));
## Create an instance of the extended class
#########################################
local list = ShuffleList(list, "text");
local pow = ShufflePow(pow, "image");
their is no way to add an animation to a selected position? if that makes sence..
their all the same with just diff concordances...
help....thanks