add clow to buttons so u can see them being clicked.
SVN revision: 37652
This commit is contained in:
parent
0250980897
commit
cd3da6a56f
|
@ -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 |
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue