[Implemented]Formatted geval
2 posts • Page 1 of 1
[Implemented]Formatted geval
Edit: (by tatt61880 on 2013.03.03 22:22)
Implemented in 2.0.0 RC1. Thanks
-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.
Implemented in 2.0.0 RC1. Thanks
-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.
-
TC42 - Posts: 984
- Joined: Sun Jan 09, 2011 1:53 pm
- Location: $ sudo apt get-install sandwich_
Re: Formatted geval
@"codes" can be used for this purpose.
geval (@"
Scene.addBox{
pos := [Sim.time, 0];
text := ""text"";
};
")
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).
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
-
tatt61880 - [Most Helpful Person 2010]
- Posts: 1150
- Joined: Mon Aug 31, 2009 5:45 pm
- Location: Tokyo, Japan
2 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 8 guests