TrianguloY
Pierre Hébert
recently I checked out another launcher to get ideas on how I can setup a similar theme. the idea uses a script to put apps and shortcuts into a wheel – like formation that I placed into a panel. this is where TrianguloY comes in (it was his script). for some unknown reason I can’t get the icons to stay the size that I specified, they keep getting in the way of each other. physically the icons look good but the hotspots won’t stay the size I specified. how do I fix it so they don’t go back to their original sizes? I noticed this when I tried to click the center icon (used only to add apps and shortcuts) and I kept opening an app. why? because the app kept overlapping the center shortcut. but then I noticed half the time even clicking an empty spot in the panel opened some apps because of this. I’ll post a comment with the url to the script because I cant recall the script I used.
also there’s a gap in the wheel I’m trying to close off but no matter what I do there’s still a gap. this isn’t a real problem right now but when I get done with my theme I’d like to close this gap. right now I’m trying to get the hotspots to stop growing back to their original sizes and just stay short (just the size of the icon please.
for Pierre Hébert: i just noticed that there was a fix in the stop points where when the point was reached it finally triggers the event (instead of having to overscroll and I thank you for that. now if I can fix it so it retracts when the event is triggered. I don’t know how to explain it better, sadly but I’m trying to make it so when the event is triggered it goes back into its original position and opens the app list. the only way I see this is with a script that uses a desktop bookmark and a custom user – action. it’s there a script I can use for this or can anyone make one?
again it’s hard to explain and since I can’t root my device its impossible to make the video showing everything.
in closing I hope I put this post in the right category. if not feel free to move it and explain why it belongs there. thank you all.
nice update by the way : lollipop
]]>
< ![CDATA[
TrianguloY
http://www.pierrox.net/android/applications/lightning_launcher/wiki/doku.php?id=script_wheel_of_items
this is the script
]]>
< ![CDATA[
//Didn’t try, but try this (change the config again if necessary)
/*Config: */
var h = 0; //horizontal alignment (-1 , 0 , 1 )
var v = -1; //vertical alignment ( -1 , 0 , 1 )
var r = 0; //rotation offset ( 0 = default) in angles, not very implemented (0 or 180 recommended)
var f = 2; //sensitivity
var event = LL.getEvent();
var desktop = event.getContainer();
var a = desktop.getItems();
var na = a.getLength();
var radius = Math.min( desktop.getHeight()/ (v==0?4:2) , desktop.getWidth()/ (h==0?4:2) );
var alt = 0.5;
var size;// = [ radius*(2-alt)*Math.PI/na , radius*2 ];
var desf = (desktop.getPositionX()* (v>0?-1:1)+desktop.getPositionY()* (h>0?-1:1) )* Math.PI/desktop.getWidth();
desf*=f;
for ( var i=0; i
var angle = Math.PI*2*i/na-desf;
var t = a.getAt(i);
size=[t.getWidth(),t.getHeight()]
var x = Math.cos( angle -Math.PI/2 ) * radius;
var y = Math.sin( angle -Math.PI/2 ) * radius;
var rot = angle*180/Math.PI+r;
x+= (h<0? 0 : desktop.getWidth()/ (h==0? 2 : 1) ) ;
y+= (v>0? 0 : desktop.getHeight()/ (v==0? 2 : 1) );
x-= size[0]/2;
y-= size[1]/2;
t.setRotation(0);
t.setSize(size[0] ,size[1]);
t.setPosition(x, y);
t.setRotation(rot);
}
]]>
< ![CDATA[
looks like the script I used, unless there was a change made that I’m not seeing somewhere. I mean no offence but it started getting annoying when I didn’t even click an icon and was still opening an app because the hotspot was the size of my box of cigarettes when the icon for the app s only the size of a nail head
]]>
< ![CDATA[
It is a modification
That script leaves the size of the items unmodified
I remember doing the script to avoid overlapping at the icon radius, of course they overlap in the center
]]>
< ![CDATA[
ah ok no wonder it looked familiar. I’ll try it out and hopefully get this theme looking good
]]>
< ![CDATA[
ok I tried it out and its ready for update. at first it didn’t seem to help but then I shrunk the hotshots and tried it again and everything went well.
]]>
< ![CDATA[
Happy to hear it works
]]>
< ![CDATA[
haha yeah now if I can get the center icon to actually be in the center hahaha for that the only way I see is to pin it and detach from grid but of course we both know how that would turn out… oops
]]>