strategy for matrix of interactive images

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
melristau
Posts: 56
Joined: Tue Jul 14, 2015 5:15 pm
Contact:

strategy for matrix of interactive images

Post by melristau »

Trying to update and move old Hypercard stack to LC. (The stack allows one to describe a system process.)
In HC i used a matrix of buttons, drawing from and extensive library of icon resources to visualize user interactions.
Just beginning with LC and using a matrix of 238 jpegs. Is this similar approach best strategy for LC??
Old HC Plan
Old HC Plan
plan.gif (4.21 KiB) Viewed 4295 times
New LC layout
New LC layout
rebuilding visual programming app originally created in 1993 as Hypercard stack
[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: strategy for matrix of interactive images

Post by [-hh] »

Not enough information.
Can't you simply convert your icon resources to images and use the old/running code?

p.s. For editing such a lot of objects better use (at first) LC 6 or LC 7.
shiftLock happens
MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: strategy for matrix of interactive images

Post by MaxV »

I don't think you need 238 buttons. You need just to master these commands:
  • mouseMove
  • mouseDown
  • mouseUp
Look these real time moving path editing: https://youtu.be/IFKb3CzWznI
You may force the loc property of objects to the near position of your grid during MouseMove used to move object. Grid would be just an image. It would simplify your code.
Moreover you can divide you objectes in actives (start/stop, signal transformers, etc.) and inactive ones (wires), so your control everything loop will check only active elements.
In the end no matrix, but only few active elements.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
melristau
Posts: 56
Joined: Tue Jul 14, 2015 5:15 pm
Contact:

Re: strategy for matrix of interactive images

Post by melristau »

Thanks for guidance MaxV and -hh

Is 6.7.11 a best choice for HC conversion?

Off to the benevolent Hyperactive Software...
rebuilding visual programming app originally created in 1993 as Hypercard stack
MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: strategy for matrix of interactive images

Post by MaxV »

Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Post Reply