Connection channel things

Post Reply
User avatar
IXix
Posts: 1113
Joined: Wed Nov 23, 2011 3:24 pm

Connection channel things

Post by IXix »

When there's lots of connections to/from a machine, the circles that show the channel number can get bunched up and difficult to read/change. If you enable curved wires, it's even worse because they all stack up on top of each other. I'm finding this frustrating enough to consider doing something about it but I can't see where in the BuzzGUI code these things are handled.

What I'd like to try to do is get the channel indicators to lie midway between the machine and the amp triangle. What would I need to change and where can I find it. Also, any suggestions as to how to actually do it would be much appreciated since I haven't a clue at the moment. :mrgreen:.
User avatar
mantratronic
Posts: 296
Joined: Mon Nov 21, 2011 7:23 pm

Re: Connection channel things

Post by mantratronic »

I'd start looking in BuzzGUI.MachineView.Connection.UpdateVisuals() , but not sure how/where its done. Good luck with it :)
User avatar
IXix
Posts: 1113
Joined: Wed Nov 23, 2011 3:24 pm

Re: Connection channel things

Post by IXix »

mantratronic wrote:I'd start looking in BuzzGUI.MachineView.Connection.UpdateVisuals() , but not sure how/where its done. Good luck with it :)
Thanks, I'll need all the luck I can get!
oskari
Site Admin
Posts: 296
Joined: Mon Nov 21, 2011 2:04 pm

Re: Connection channel things

Post by oskari »

Lines 458-462 in Connection.cs. You just need to calculate the points on the cubic bezier curve first.
oskari
Site Admin
Posts: 296
Joined: Mon Nov 21, 2011 2:04 pm

Re: Connection channel things

Post by oskari »

It was so simple that I did it myself. I hope you didn't start yet. :)
Mu_
Posts: 126
Joined: Wed Nov 23, 2011 11:43 am
Location: Warsaw, Poland

Re: Connection channel things

Post by Mu_ »

Ha ha, cool. :)
User avatar
IXix
Posts: 1113
Joined: Wed Nov 23, 2011 3:24 pm

Re: Connection channel things

Post by IXix »

oskari wrote:It was so simple that I did it myself. I hope you didn't start yet. :)
Haha, awesome! Only just seen your reply so I hadn't started. Now I can see what I should have done if I had. :lol:
User avatar
mcbpete
Posts: 381
Joined: Tue Nov 22, 2011 9:45 pm

Re: Connection channel things

Post by mcbpete »

Works a bloody charm - Thanks oskari !
Post Reply