mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-20 16:49:52 +00:00
add button left/rightclick functions (#878)
This commit is contained in:
parent
943078f256
commit
b2cc88ae0b
2 changed files with 8 additions and 2 deletions
|
|
@ -92,10 +92,8 @@ Array [
|
|||
"Browser.refresh",
|
||||
"Browser.settargetname",
|
||||
"Browser.stop",
|
||||
"Button.leftclick",
|
||||
"Button.onleftclick",
|
||||
"Button.onrightclick",
|
||||
"Button.rightclick",
|
||||
"Button.setactivatednocallback",
|
||||
"CfgGroup.cfggetfloat",
|
||||
"CfgGroup.cfggetguid",
|
||||
|
|
|
|||
|
|
@ -12,6 +12,14 @@ class Button extends GuiObject {
|
|||
return "Button";
|
||||
}
|
||||
|
||||
leftclick() {
|
||||
this.js_trigger("onLeftClick");
|
||||
}
|
||||
|
||||
rightclick() {
|
||||
this.js_trigger("onRightClick");
|
||||
}
|
||||
|
||||
onactivate(activated) {
|
||||
unimplementedWarning("onactivate");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue