29 lines
502 B
Haxe
Executable File
29 lines
502 B
Haxe
Executable File
package haxework.gui;
|
|
|
|
class ProgressView extends SpriteView {
|
|
|
|
public var value(default, set):Int;
|
|
public var max(default, set):Int;
|
|
|
|
public function new() {
|
|
super();
|
|
value = 0;
|
|
max = 1;
|
|
}
|
|
|
|
private function set_value(value:Int):Int {
|
|
if (this.value != value) {
|
|
this.value = value;
|
|
invalidate();
|
|
}
|
|
return this.value;
|
|
}
|
|
|
|
private function set_max(value:Int):Int {
|
|
if (max != value) {
|
|
max = value;
|
|
invalidate();
|
|
}
|
|
return max;
|
|
}
|
|
} |