mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
restructured repository
This commit is contained in:
parent
cc6279eac9
commit
080a2e410c
38 changed files with 87 additions and 26 deletions
14
tests/editor/script/Button.js
Normal file
14
tests/editor/script/Button.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
// Button Class
|
||||
function Button(x, y, width, height, callback)
|
||||
{
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
this.callback = callback;
|
||||
|
||||
this.Press = function()
|
||||
{
|
||||
this.callback.call();
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue