Enlightenment CVS committal
Author : atmosphere
Project : e17
Module : apps/entrance
Dir : e17/apps/entrance/data/themes/taillights/embryo
Modified Files:
globals.edc
Log Message:
playing with embryo, shaking off of bad passwords is done in embryo, user list slides
in/out on a curve now, some other stuff i forgot... xcomp the fonts you keep putting
back in are ugly :)
===================================================================
RCS file:
/cvsroot/enlightenment/e17/apps/entrance/data/themes/taillights/embryo/globals.edc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- globals.edc 24 Apr 2004 18:32:39 -0000 1.1
+++ globals.edc 25 Apr 2004 00:26:27 -0000 1.2
@@ -1,5 +1,58 @@
script {
- public animate_callback(val, Float: pos)
+ public login_shaking;
+ public user_list_visible;
+ public session_list_visible;
+ public login_area_align_x;
+ public login_area_shaking_direction;
+
+ public animate_user_list_in_callback(val, Float: pos)
{
+ new buf[100];
+ new Float:x = sin(3.14 * pos);
+ new Float:y = pos * 0.85;
+
+ set_drag(PART:"user_list_border", x, y);
+ snprintf(buf, 100, "val = %i, pos = %f", val, pos);
+ emit(buf, "");
+ snprintf(buf, 100, "xdrag = %f, ydrag= %f", x, y);
+ emit(buf, "");
+ }
+ public animate_user_list_out_callback(val, Float: pos)
+ {
+ new buf[100];
+ new Float:x = sin(3.14 * pos);
+ new Float:y = 0.85 - (pos * 0.85);
+
+ set_drag(PART:"user_list_border", x, y);
+ snprintf(buf, 100, "val = %i, pos = %f", val, pos);
+ emit(buf, "");
+ snprintf(buf, 100, "xdrag = %f, ydrag= %f", x, y);
+ emit(buf, "");
+ }
+ public shake_off_bad_user(val, Float: pos)
+ {
+ new buf[100];
+ new Float:x = get_float(login_area_align_x);
+ new Float:y = 0.5;
+
+ if(get_int(login_area_shaking_direction) == 0)
+ {
+ x += 0.05;
+ if(x >= 0.6)
+ set_int(login_area_shaking_direction, 1);
+ }
+ else
+ {
+ x -= 0.05;
+ if(x <= 0.4)
+ set_int(login_area_shaking_direction, 0);
+
+ }
+ set_drag(PART:"login_border", x, y);
+ set_float(login_area_align_x, x);
+ snprintf(buf, 100, "val = %i, pos = %f", val, pos);
+ emit(buf, "");
+ snprintf(buf, 100, "xdrag = %f, ydrag= %f", x, y);
+ emit(buf, "");
}
}
-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs