PDA

View Full Version : monolithic maki


transistor09
4th January 2008, 20:57
Hi everyone,

I am making a skin that has 12 buttons in main window and every button has two glow layers: one for hover and one for pressed state. I have one script that controls all those buttons and glow layers (smooth alpha changes their opacity). Furthermore, I considered using innovative sound and seek controls, witch will be also included into one maki script. That one script will also process met data. Sounds crazy, huh? By this time I have buttons working and task manager showed no hogging. I have never seen a maki script control more than one thing. Please tell me is this a bad idea.

And

E-Trance
5th January 2008, 06:19
Don't worry about :) It can control dozens of objects.

SLoB
5th January 2008, 10:30
the main thing is debugging, the longer the script the longer you may spend trawling through code you wrote 6 months back and forgotten why you did it that way ;)

if you break it down into smaller chunks of code, it makes life a lot easier and you can reuse those for other skins quicker than doing a complete all in one script

its part of the design process, you should probably list the pros and cons of each and decide from that