*
This commit is contained in:
parent
859c834026
commit
9d3e0850bc
@ -22,7 +22,7 @@ shift+alt ; Move Layer
|
|||||||
## Modules
|
## Modules
|
||||||
### # Surface
|
### # Surface
|
||||||
Missing documentation.
|
Missing documentation.
|
||||||
- Parameters: `Rect` `Color`
|
- Parameters: `Rect` `Color` `Bang`
|
||||||
- Variables: `layer`
|
- Variables: `layer`
|
||||||
|
|
||||||
### / FileLoad
|
### / FileLoad
|
||||||
@ -45,7 +45,7 @@ Missing documentation.
|
|||||||
- Parameters: `Position` `Rect`
|
- Parameters: `Position` `Rect`
|
||||||
- Variables:
|
- Variables:
|
||||||
|
|
||||||
### % Filter
|
### % Render
|
||||||
Missing documentation.
|
Missing documentation.
|
||||||
- Parameters: `Any`
|
- Parameters: `Any`
|
||||||
- Variables:
|
- Variables:
|
||||||
|
23
main.js
23
main.js
@ -1,23 +0,0 @@
|
|||||||
/**
|
|
||||||
* Listens for the app launching then creates the window
|
|
||||||
*
|
|
||||||
* @see http://developer.chrome.com/apps/app.runtime.html
|
|
||||||
* @see http://developer.chrome.com/apps/app.window.html
|
|
||||||
*/
|
|
||||||
chrome.app.runtime.onLaunched.addListener(function() {
|
|
||||||
// Center window on screen.
|
|
||||||
var screenWidth = screen.availWidth;
|
|
||||||
var screenHeight = screen.availHeight;
|
|
||||||
var width = 500;
|
|
||||||
var height = 300;
|
|
||||||
|
|
||||||
chrome.app.window.create('index.html', {
|
|
||||||
id: "helloWorldID",
|
|
||||||
outerBounds: {
|
|
||||||
width: width,
|
|
||||||
height: height,
|
|
||||||
left: Math.round((screenWidth-width)/2),
|
|
||||||
top: Math.round((screenHeight-height)/2)
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"manifest_version": 2,
|
|
||||||
"name": "Ronin",
|
|
||||||
"version": "1.1",
|
|
||||||
"minimum_chrome_version": "23",
|
|
||||||
"icons": {
|
|
||||||
"16": "media/icon_16.png",
|
|
||||||
"128": "media/icon_128.png"
|
|
||||||
},
|
|
||||||
"app": {
|
|
||||||
"background": {
|
|
||||||
"scripts": ["main.js"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user