A bad way of disabling buttons.

This commit is contained in:
Jaime Thomas
2008-11-05 15:20:00 +00:00
parent 20c6c541a2
commit 3262d4941f
2 changed files with 44 additions and 4 deletions

View File

@ -145,6 +145,36 @@ group {
}
}
}
part {
name: "disabled_hack";
type: RECT;
mouse_events: 1;
description {
state: "default" 0.0;
visible: 0;
rel1 {
to: "bg";
relative: 0.5 0.0;
offset: 0 0;
}
rel2 {
to: "bg";
relative: 1.0 1.0;
offset: -1 -1;
}
}
description {
state: "visible" 0.0;
inherit: "default" 0.0;
color: 255 255 255 160;
visible: 1;
}
}
}
programs {
@ -179,8 +209,16 @@ group {
name: "erase_page,controls_disable";
signal: "ecdb,erase,start";
source: "ecdb";
action: STATE_SET "disabled" 0.0;
target: "ecdb/erase/return";
action: STATE_SET "visible" 0.0;
target: "disabled_hack";
}
program {
name: "erase_page,controls_enable";
signal: "ecdb,erase,done";
source: "ecdb";
action: STATE_SET "default" 0.0;
target: "disabled_hack";
}
program {