I'm not gonna lie. My day consisted of watching kung fu movies, barbecuing and shaving off the awesome kung fu master goatee that I was growing. I'll fiddle with my project more throughout the week and get back on it hardcore next Sunday.
It's cool, maybe before Sunday I will figure out how to write the gigantic switch objects that I need for the compilers. I mean, I know how to write them but A) I need to go parse all the switches out the docs so I don't miss any and B) Really consider the most optimal way to describe them in an object. I'm thinking something like this, so far.
selected - is a place holder for user input. Let's say that a user chose this light Object (as opposed to hmap2Light or Map2Light) as they choose the switches for their compile, the selected value would change to true and then the object gets saved with the new properties. Any compile property with a true selected value will automatically check it's corresponding selection UI in the app.
docs - this will supply the tooltip info
connected - really sunlight is the only thing I can think of that's linked to another switch. I might handle that more like this
In this case sun is an array and in that a connection is made or will be when I tell my compiler that array elements stick together. Notice that sunmangle has no selected var this way. It becomes a give in considering sunmangle cannot exist without sunlight and sunlight shouldn't exist without sunmangle.
---
Side Note: The Ong Bak trilogy pretty much sucks. The action scenes are awesome but aside from that this shit is terrible. Tony Jaa is a hell of a martial artist but his movies are always 2nd rate. I would say Iko Uwais is the Jet Li to Tony Jaa's Jackie Chan and that's a fair comparison considering how sad Jackie Chans kung fu movies generally are (Rush Hour and Little Big Soldier are not kung fu movies). Although I have to hand it to Jackie for Once Upon a Time in China 2 but Jet Li was in that too...lol
\
Maaan, while I'm writing this I'm watching part 3 of this Ong Bak shit and Tony Jaa's GF is singing him a song that goes exactly like this:
Nee naw nee naw nee naw nee naaaaaw nee naw nee naw.......I don't know if imma make it thorough this one.
It's cool, maybe before Sunday I will figure out how to write the gigantic switch objects that I need for the compilers. I mean, I know how to write them but A) I need to go parse all the switches out the docs so I don't miss any and B) Really consider the most optimal way to describe them in an object. I'm thinking something like this, so far.
Code:
light: { soft: { selected:false, docs:"some description of what this does" } sunlight: { selected:false, value:"number", //number is a string because it is to be displayed in the input box as a hint connect:"sunmangle", docs:"some description of what this does" } sunmangle: { selected:false, value:"num, num" docs:"you get the idea" } }
docs - this will supply the tooltip info
connected - really sunlight is the only thing I can think of that's linked to another switch. I might handle that more like this
Code:
sun: ( sunlight: { selected:false, value:"number", //number is a string because it is to be displayed in the input box as a hint docs:"some description of what this does" }, sunmangle: { value:"num, num" docs:"you get the idea" } )
---
Side Note: The Ong Bak trilogy pretty much sucks. The action scenes are awesome but aside from that this shit is terrible. Tony Jaa is a hell of a martial artist but his movies are always 2nd rate. I would say Iko Uwais is the Jet Li to Tony Jaa's Jackie Chan and that's a fair comparison considering how sad Jackie Chans kung fu movies generally are (Rush Hour and Little Big Soldier are not kung fu movies). Although I have to hand it to Jackie for Once Upon a Time in China 2 but Jet Li was in that too...lol
\
Maaan, while I'm writing this I'm watching part 3 of this Ong Bak shit and Tony Jaa's GF is singing him a song that goes exactly like this:
Nee naw nee naw nee naw nee naaaaaw nee naw nee naw.......I don't know if imma make it thorough this one.
Comment