mouse_events: 1;
repeat_events: 1;
dragable {
- x: 0 0 0;
+ x: 1 1 0;
y: 1 1 0;
}
description {
script {
new Float:dx, Float:dy;
get_drag(PART:"over2", dx, dy);
- if (abs(dy) > 20)
+ if ((abs(dx) > 20) || (abs(dy) > 20))
{
set_drag(PART:"over2", 0.0, 0.0);
set_state(PART:"elm.text", "compress", 0.0);
repeat_events: 1;
dragable {
x: 1 1 0;
- y: 0 0 0;
+ y: 1 1 0;
}
description {
state: "default" 0.0;
script {
new Float:dx, Float:dy;
get_drag(PART:"over2", dx, dy);
- if (abs(dx) > 20)
+ if ((abs(dx) > 20) || (abs(dy) > 20))
{
set_drag(PART:"over2", 0.0, 0.0);
set_state(PART:"elm.text", "compress", 0.0);
repeat_events: 1;
dragable {
x: 1 1 0;
- y: 0 0 0;
+ y: 1 1 0;
}
description {
state: "default" 0.0;
script {
new Float:dx, Float:dy;
get_drag(PART:"over2", dx, dy);
- if (abs(dx) > 20)
+ if ((abs(dx) > 20) || (abs(dy) > 20))
{
set_drag(PART:"over2", 0.0, 0.0);
set_state(PART:"bg", "default", 0.0);
mouse_events: 1;
repeat_events: 1;
dragable {
- x: 0 0 0;
+ x: 1 1 0;
y: 1 1 0;
}
description {
script {
new Float:dx, Float:dy;
get_drag(PART:"over2", dx, dy);
- if (abs(dy) > 20)
+ if ((abs(dx) > 20) || (abs(dy) > 20))
{
set_drag(PART:"over2", 0.0, 0.0);
set_state(PART:"elm.text", "compress", 0.0);
mouse_events: 1;
repeat_events: 1;
dragable {
- x: 0 0 0;
+ x: 1 1 0;
y: 1 1 0;
}
description {
script {
new Float:dx, Float:dy;
get_drag(PART:"over2", dx, dy);
- if (abs(dy) > 20)
+ if ((abs(dx) > 20) || (abs(dy) > 20))
{
set_drag(PART:"over2", 0.0, 0.0);
set_state(PART:"elm.text", "compress", 0.0);
mouse_events: 1;
repeat_events: 1;
dragable {
- x: 0 0 0;
+ x: 1 1 0;
y: 1 1 0;
}
description {
script {
new Float:dx, Float:dy;
get_drag(PART:"over2", dx, dy);
- if (abs(dy) > 20)
+ if ((abs(dx) > 20) || (abs(dy) > 20))
{
set_drag(PART:"over2", 0.0, 0.0);
set_state(PART:"elm.text", "compress", 0.0);