mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-05-17 06:23:50 +02:00
15 lines
299 B
Haxe
15 lines
299 B
Haxe
package actions;
|
|
|
|
import js.html.MouseEvent;
|
|
|
|
abstract class Action {
|
|
var label(get, never):String;
|
|
|
|
public function register():Void {
|
|
GM.registerMenuCommand(this.label, this.call);
|
|
};
|
|
|
|
abstract function get_label():String;
|
|
abstract function call(ev: MouseEvent):Void;
|
|
}
|