add clow to buttons so u can see them being clicked.

SVN revision: 37652
This commit is contained in:
Carsten Haitzler 2008-11-15 05:17:24 +00:00
parent 0250980897
commit cd3da6a56f
3 changed files with 22 additions and 1 deletions

View File

@ -15,6 +15,7 @@ bt_base1.png \
bt_base2.png \
bt_bases.png \
bt_basew.png \
bt_glow.png \
bt_hilight.png \
bt_hilightw.png \
bt_shine.png \

Binary file not shown.

After

Width:  |  Height:  |  Size: 734 B

View File

@ -1,3 +1,4 @@
collections {
///////////////////////////////////////////////////////////////////////////////
@ -443,6 +444,7 @@ collections {
image: "bt_base2.png" COMP;
image: "bt_hilight.png" COMP;
image: "bt_shine.png" COMP;
image: "bt_glow.png" COMP;
}
parts {
part { name: "button_image";
@ -532,6 +534,22 @@ collections {
}
}
}
part { name: "over3";
mouse_events: 0;
description { state: "default" 0.0;
visible: 0;
color: 255 255 255 0;
image {
normal: "bt_glow.png";
border: 12 12 12 12;
}
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
visible: 1;
color: 255 255 255 255;
}
}
}
programs {
program {
@ -540,6 +558,7 @@ collections {
source: "over2";
action: STATE_SET "clicked" 0.0;
target: "button_image";
target: "over3";
}
program {
name: "button_unclick";
@ -547,6 +566,7 @@ collections {
source: "over2";
action: STATE_SET "default" 0.0;
target: "button_image";
target: "over3";
}
program {
name: "button_unclick2";
@ -857,7 +877,7 @@ collections {
get_drag(PART:"button", dx, dy);
if (dx > 0.5)
{
set_drag(PART:"button", 100.0, 0.0);
set_drag(PART:"button", 1.0, 0.0);
emit("elm,action,toggle,on", "");
}
else