Now the theme controls what data is set for progress updates.
This commit is contained in:
@ -3,6 +3,22 @@ group {
|
||||
name: "ecdb/erase_page";
|
||||
min: 640 170;
|
||||
|
||||
script {
|
||||
public message(Msg_Type:type, id, ...) {
|
||||
if ((type == MSG_INT_SET) && (id == 0)) {
|
||||
new percent[10], sectors[100];
|
||||
snprintf(percent, 10, "%d%%", getarg(2));
|
||||
set_text(PART:"progress_percent", percent);
|
||||
snprintf(sectors, 100, "%d/%d", getarg(3), getarg(4));
|
||||
set_text(PART:"progress_text", sectors);
|
||||
|
||||
/* Also sent is the buffer available [getarg(5)] and
|
||||
* the buffer capacity [getarg(6)]
|
||||
*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
parts {
|
||||
part {
|
||||
name: "bg";
|
||||
|
Reference in New Issue
Block a user