Darwinbots Forum
Code center => Darwinbots Program Source Code => Topic started by: PurpleYouko on November 14, 2005, 04:08:13 PM
-
Hey Num!. Why did you place a blue rectangle over the gradient light display in the options panel?
-
It's supposed to be under it. On some systems lines aren't rectangular, they're beveled.
-
It completely obscures it on my systems. All I can see is the blue rectangle.
Also, what is the deal with the veggies.cooldown value?
It defaults to zero whenever I start a new sim. Why? because the code in all the routines that initialize a sim, specifically set it to zero.
-
Veggy cooldown definately sounds like a brain fart on my part. But it seems to work find for me in 2.4 so I dunno...
Right click the blue triangle and "send it bacK" or to back or whatever.
-
But what is it supposed to do?
There is NO CODE that relates to veggie cooldown anywhere in the program.
If you change the value in the box on the options screen, it doesn't place any values in any of the simopts. It appears to be an idea that just never got finished.
As for the blue rectangle, I got rid of it and it works fine again.
-
how to you make a filled rectangel that is filled in vb?
-
You add a shape object and set its background and/or foreground color
-
I mean by commands
-
Never tried to do it that way. I don't think there is a generic fill command in the code.
-
It took me so long to find this out. So long being 3 hours.I'm slightly protective over what seems to be a VB secret but here you go :lol:
Line (x1,y1)-(x2,y2), RGB(X,why,Z), B
That 'B' after the colour parameter makes the line turn into a rectangle somehow; no idea how or why but it does.
Also just in case, make sure you don't add any drawing functions on the onLoad() event 'cos they won't work.
[EDIT]: Curse these filters! :D
-
I have to get rid of that why filter. I knew it was a bad idea. :(
-
But what is it supposed to do?
There is NO CODE that relates to veggie cooldown anywhere in the program.
If you change the value in the box on the options screen, it doesn't place any values in any of the simopts. It appears to be an idea that just never got finished.
As for the blue rectangle, I got rid of it and it works fine again.
Hmm.... Maybe I just never finished it for 2.37. Basically it's a timer that prevents veggys from being repopulated every cycle. Set it to 1000 and it takes 1000 cycles between repopulation events.
-
I managed to find something about it in the veggie repopulate routines while working on them earlier.
I think it is functional though I can't imagine why the value was hard-coded to zero in all the startup routines.
-
I can't remember to be honest.
Maybe something to do with backwards compatibility, so it sets a default value if it's 0 or something...