[thyme/scripting] we need this!

Suggest changes and improvements to Algodoo.

Re: [thyme/scripting] we need this!

Postby Rideg » Sat Jan 23, 2010 3:56 pm

really?? :shock:
Image
make sure to check out my work.
User avatar
Rideg
 
Posts: 948
Joined: Tue Dec 15, 2009 5:17 pm
Location: Östersund, Sweden

Re: [thyme/scripting] we need this!

Postby KarateBrot » Sat Jan 23, 2010 5:24 pm

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.
Image
User avatar
KarateBrot
 
Posts: 825
Joined: Mon Aug 31, 2009 7:32 pm
Location: Germany

Re: [thyme/scripting] we need this!

Postby guyboy » Tue Jan 26, 2010 6:56 pm

My ideas on fixing the cons added in bold:
(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.
ImageImage
Human horse pasture expansion OpenGL Book Hall
Kwon owned Version (C) 2002-2008
User avatar
guyboy
 
Posts: 80
Joined: Mon Aug 31, 2009 6:19 pm
Location: Ḻ̘̬͕͍͚̥͈͚͖̝̜̲͕̭̩ͅ

Re: [thyme/scripting] we need this!

Postby Jelmerholland » Sun Feb 14, 2010 11:52 am

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 script
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]})}
and you want it "wrapped in a package" you put something like
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}
It would look something like this
Code: Select all
OnCollide = (e)=>{(NameOfYourWrap)}
so when you click on the wrap name, it will unwrap itself and reveal the script code. :lol:


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
This is some text
User avatar
Jelmerholland
 
Posts: 61
Joined: Mon Aug 31, 2009 7:51 pm
Location: NL

Re: [thyme/scripting] we need this!

Postby blahblah200 » Sun Feb 14, 2010 4:30 pm

It's meant to be black - if you triple click on it, the text becomes visible :o :o
Image<-- Made with GIMP
User avatar
blahblah200
 
Posts: 61
Joined: Tue Sep 01, 2009 11:33 am
Location: Somewhere over the rainbow...

Re: [thyme/scripting] we need this!

Postby Jelmerholland » Mon Feb 15, 2010 5:50 pm

It's not meant to be black. :|
User avatar
Jelmerholland
 
Posts: 61
Joined: Mon Aug 31, 2009 7:51 pm
Location: NL

Re: [thyme/scripting] we need this!

Postby RicH » Tue Feb 16, 2010 3:11 pm

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.
User avatar
RicH
[Funniest Person 2010]
 
Posts: 2043
Joined: Tue Sep 01, 2009 9:01 am

Re: [thyme/scripting] we need this!

Postby Jelmerholland » Tue Feb 16, 2010 5:35 pm

Spoiler shood be a box like this:

http://www.jdwebdesign.nl/news
It should do the same as that ;)
User avatar
Jelmerholland
 
Posts: 61
Joined: Mon Aug 31, 2009 7:51 pm
Location: NL

Re: [thyme/scripting] we need this!

Postby Chronos » Wed Feb 17, 2010 8:02 am

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. :problem:

That would be awesome, though...
TheWinkits wrote:They both looks of cuking amazing
User avatar
Chronos
[Most Active Member 2010]
 
Posts: 4457
Joined: Mon Aug 31, 2009 6:00 pm
Location: Californania

Re: [thyme/scripting] we need this!

Postby Jelmerholland » Thu Feb 18, 2010 7:45 pm

Haha ok :P
User avatar
Jelmerholland
 
Posts: 61
Joined: Mon Aug 31, 2009 7:51 pm
Location: NL

Previous

Return to Suggestions

Who is online

Users browsing this forum: No registered users and 3 guests

cron