[Implemented]Formatted geval

Suggest changes and improvements to Algodoo.

[Implemented]Formatted geval

Postby TC42 » Thu Jun 16, 2011 3:01 pm

Edit: (by tatt61880 on 2013.03.03 22:22)
Implemented in 2.0.0 RC1. Thanks :clap:
-Tatt
----

Please allow formatted text in geval--i.e.,
Geval(" Scene.addCircle({pos:=e.pos;
radius:=0.3;
color:={[scene.my.variable1, 0, 1, 1]};
density:=5;
});

instead of
geval("Scene.addCircle({pos:=e.pos; radius:=0.3; color:={[scene.my.variable1, 0, 1, 1]}; density:=5; controlleracc:=16})


It would make the code much more easy to read and edit, and would improve the overall neatness of algodoo.
Image
Spambot wrote:Nowadays, memes usually are studied less in the field of biology, but more with the arena of psychology along with sociology. But, the major area of a meme, getting embraced and imitated all the time is what’s at any core connected with any meme.
User avatar
TC42
 
Posts: 984
Joined: Sun Jan 09, 2011 1:53 pm
Location: $ sudo apt get-install sandwich_

Re: Formatted geval

Postby tatt61880 » Sun Mar 03, 2013 3:21 pm

@"codes" can be used for this purpose. ;)
Algodoo 2.0.0 RC1, 2011-09-23 wrote:* NEW: Thyme: Added support for C# style string literals that starts with @" and ends with ".


geval (@"
Scene.addBox{
pos := [Sim.time, 0];
text := ""text"";
};
")
NOTE: I'm not an Algoryx member.
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
User avatar
tatt61880
[Most Helpful Person 2010]
 
Posts: 1150
Joined: Mon Aug 31, 2009 5:45 pm
Location: Tokyo, Japan


Return to Suggestions

Who is online

Users browsing this forum: No registered users and 8 guests