Hey.. I just updated LL for the first time in like a month and haven’t been paying attention to bugs here..
Hey.. I just updated LL for the first time in like a month and haven’t been paying attention to bugs here..
1) my hamburger icon script isn’t working..
2) TrianguloY’s script “main color” set the BG of all of the items to transparent
3) wow bindings!
Any ideas?
]]>« Hi all (Previous Post)
(Next Post) As I said earlier I am extra cautious of my mobile resources (power, ram and processing, etc…). »
< ![CDATA[
About 1) I fixed it when it broke, I’ll tell you how in some hours (I can’t now)
About 2) if someone can test…
About 3) yay!
]]>
< ![CDATA[
Let’s do something: This is what I have, and it works (it’s part of a bigger script)
Check it and if you still don’t fix yours I’ll tell you with a bit more detail.
(Search the way the image is saved/loaded)
function indicator(){
//script by Ren Shore
var item = cont.getItemByName(“indicator”)
img=LL.createImage(100,100);
//item.setImage(img);
canvas = img.draw();
var x=cont.getPositionX();
var p = new Paint();
p.setAntiAlias(true);
p.setStrokeWidth(4);
p.setColor(0xffffffff);
var canvas = img.draw();
var rot=x<0?(-x*180/(panelW))+180:180;
if(item.getTag(“arrow”)==null)rot=-rot;
if(x>=0)item.setTag(“arrow”,”-“);
if(x< =-panelW)item.setTag("arrow",null);
//item.setRotation(0);
var lines=
[
[
[ 30,39,70,39 ],//before
[ 33,51,53,33 ]//after
],
[
[ 30,50,70,50 ],
[ 33,50,70,50 ]
],
[
[ 30,61,70,61 ],
[ 33,49,53,69 ]
]
];
canvas.rotate(rot,50,50);
for(i=0;i
var A=[0,0,0,0];
for(j=0;j< =3;j++){
a=lines[i][0][j];
b=lines[i][1][j];
A[j]=x>=0?a:a+((b-a)*(-x/panelW));
}
canvas.drawLine(A[0],A[1],A[2],A[3],p);
}
//img.update();
item.setImage(img);
}
]]>
< ![CDATA[
I confirm setting the box color doesn’t seem to work in this case.
]]>
< ![CDATA[
Hum, this is a bug with color parsing 🙁
]]>
< ![CDATA[
Pierre Hébert I think you’re right, it’s the same conclusion i’ve arrived after some experiments. It’s all in my template uploaded on my post, take a look.
]]>