only show wizard button click effect when button is "enabled"

SVN revision: 79882
This commit is contained in:
Mike Blumenkrantz 2012-11-30 11:33:02 +00:00
parent 4e500e5767
commit 94c7ef4cce
1 changed files with 21 additions and 5 deletions

View File

@ -185,17 +185,33 @@ group { name: "e/wizard/main";
}
program {
signal: "mouse,down,1"; source: "base";
action: STATE_SET "clicked" 0.0;
target: "base";
script {
new st[31];
new Float:vl;
get_state(PART:"block", st, 30, vl);
if (!strcmp(st, "default"))
set_state(PART:"base", "clicked", 0.0);
}
}
program {
signal: "mouse,up,1"; source: "base";
action: STATE_SET "default" 0.0;
target: "base";
script {
new st[31];
new Float:vl;
get_state(PART:"block", st, 30, vl);
if (!strcmp(st, "default"))
set_state(PART:"base", "default", 0.0);
}
}
program {
signal: "mouse,clicked,1"; source: "base";
action: SIGNAL_EMIT "e,action,next" "";
script {
new st[31];
new Float:vl;
get_state(PART:"block", st, 30, vl);
if (!strcmp(st, "default"))
emit("e,action,next", "");
}
}
program {
signal: "e,state,next,enable"; source: "e";