[thyme/scripting] we need this!
35 posts • Page 2 of 2 • 1, 2
Re: [thyme/scripting] we need this!
you can hide the script in variables but you can't unhide them just with clicking nor edit it easily. to edit it this would be annoying as hell if you close and reopen algodoo.
it's a good idea to unwrap code when clicking on it, rideg.
it's a good idea to unwrap code when clicking on it, rideg.

-

KarateBrot - Posts: 825
- Joined: Mon Aug 31, 2009 7:32 pm
- Location: Germany
Re: [thyme/scripting] we need this!
My ideas on fixing the cons added in bold:
(using blahblah200's method)
(using blahblah200's method)
gradyfitz wrote:Against:
- You wouldn't be able to see the values just by looking at the script menu.
The script menu would stay exactly the same, except for a button on the side of each text box which would open the edit window to edit the value of the text box the button was next to.- Clutters up the script menu.
Not with what I said above- Thyme isn't a top priority
.
Not hard to implement.- Doesn't fit in with the rest of the GUI.
The method stated above does- Notepad works perfectly.
Make it better than notepad. (at least add all its features or make a clone of it)- Too many levels isn't necessarily good for layout.
The levels would be optional. (by clicking on one of the buttons)- Comments wont be kept in a save (comments are ignored in the current model of thyme).
That can be fixed.- May make a lot of difficulties in working out the syntax so that the code isn't ruined when saved.
If the code is wrong, the text box will appear in red, and the default value will be used instead.
Human horse pasture expansion OpenGL Book Hall
Kwon owned Version (C) 2002-2008
-

guyboy - Posts: 80
- Joined: Mon Aug 31, 2009 6:19 pm
- Location: Ḻ̘̬͕͍͚̥͈͚͖̝̜̲͕̭̩ͅ
Re: [thyme/scripting] we need this!
Rideg wrote:to save room, How a about a "wrapping method"?
You may have encountered this in visual studio
For you guys that don't know about the wrapping method,it works something like this: Lets say you have a scriptand you want it "wrapped in a package" you put something like
- Code: Select all
OnCollide = (e)=>{
Scene.addBox ({
color := [0.39, 0.383, 0.0, 1.0]; opaqueBorders := false; drawBorder := false;
entityID := 26195; zDepth := 23.0; geomID := 8623917; angle := e.normal;
body := 8662457; pos:=scene.my.apos2; size := [0.03125, 0.21875]})}It would look something like this
- Code: Select all
(e)=>{ (wrap) Scene.addBox ({
color := [0.39, 0.383, 0.0, 1.0]; opaqueBorders := false; drawBorder := false;
entityID := 26195; zDepth := 23.0; geomID := 8623917; angle := e.normal;
body := 8662457; pos:=scene.my.apos2; size := [0.03125, 0.21875]}); (wrap) = NameOfYourWrap}so when you click on the wrap name, it will unwrap itself and reveal the script code.
- Code: Select all
OnCollide = (e)=>{(NameOfYourWrap)}
why don't you call it a function like in javascript/php?
Just smth like this
function functionname($variable1, $variable2,...){
$answer = $variable1 + $variable2;
echo $answer;
}
Call in your functin
functionname(3,6);
(behind the screen)
functionname(3,6){
$answer = 3 + 6;
echo '9';
}
This is php, but why call it a wrapper? Function are much easier to understand because all scripting languages uses them
Ps. @link
The spoiler tag doesn't work: (it's all black)
Spoiler: show
-

Jelmerholland - Posts: 61
- Joined: Mon Aug 31, 2009 7:51 pm
- Location: NL
Re: [thyme/scripting] we need this!
It's meant to be black - if you triple click on it, the text becomes visible

<-- Made with GIMP-

blahblah200 - Posts: 61
- Joined: Tue Sep 01, 2009 11:33 am
- Location: Somewhere over the rainbow...
Re: [thyme/scripting] we need this!
It's not meant to be black. 
-

Jelmerholland - Posts: 61
- Joined: Mon Aug 31, 2009 7:51 pm
- Location: NL
Re: [thyme/scripting] we need this!
Yes, it is. That's link's idea of a spoiler box.
Millions of voices suddenly cried out in terror, and were suddenly silenced. Something terrible has happened.
-

RicH - [Funniest Person 2010]
- Posts: 2043
- Joined: Tue Sep 01, 2009 9:01 am
-

Jelmerholland - Posts: 61
- Joined: Mon Aug 31, 2009 7:51 pm
- Location: NL
Re: [thyme/scripting] we need this!
That's exactly what I said, but Link had to get all sarcastic and asked if I wanted it to sparkle and make swooshy noises. 
That would be awesome, though...
That would be awesome, though...
TheWinkits wrote:They both looks of cuking amazing
-

Chronos - [Most Active Member 2010]
- Posts: 4457
- Joined: Mon Aug 31, 2009 6:00 pm
- Location: Californania
35 posts • Page 2 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 5 guests




