On Sat, 03 Dec 2005 05:01:49 +0100 xnowfall <[EMAIL PROTECTED]> babbled:

> 
> Carsten Haitzler (The Rasterman) wrote:
> > On Sat, 03 Dec 2005 02:50:47 +0100 xnowfall <[EMAIL PROTECTED]> babbled:
> > 
> > 
> >>is it possible to pass a value from the application to an edje? i'm 
> >>trying to set a tween-state based on a value in the program.
> >>
> >>edje_object_message_send looks like it could send a float *somewhere*, 
> >>but i don't know if/how you could use it in the .edc ...
> > 
> > 
> > there are many ways - yes. messages works. singals work too (you can PARSE a
> > signal like a string in embryo script) but there is a dedicated system just
> > for this too that the battery and temperature modules use with the float
> > value after the state name. edje will find the "closest" provides value if
> > you ask for "my_state" 0.3 then edje wil look for the closest value of all
> > state descriptions called "my_state" for that part, and then use the
> > closest.
> > 
> 
> thanks :) you say messages works - maybe i'm reading you wrong but you
> seem to suggest there is a better way. but looking at those modules i
> see they use the message function. anyway, from the .edc i see they use
> the set_state command as i imagined i would if i could get the value
> passed over (with the float after the name as you say), though i thought
> it would interpolate rather than pick one, e.g if i set state 0.0 to
> size 0 and state 1.0 to size 100 then using set_state 0.7 would make it
> size 70 - no? but i'll see what happens
> 
> btw, what are the embryo commands to parse a signal - sounds like
> something that might come in handy sometime

see default.inc that embryo installs. there are some string handling funcs
there. :) this sig and srv variables are passed to the scritp segment implicitly

> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> enlightenment-users mailing list
> enlightenment-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-users
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]
裸好多
Tokyo, Japan (東京 日本)


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to