# HG changeset patch
# User wycc
# Date 1289347055 -28800
# Node ID e45ad25a1462d171f0a1b1adc690850e8e18f4e3
# Parent bd9b0142fc7efbd9f499b86ffe31fd3bccabdfee
Add the preview page.
diff -r bd9b0142fc7e -r e45ad25a1462 nodejs/examples/mce/README
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/nodejs/examples/mce/README Wed Nov 10 07:57:35 2010 +0800
@@ -0,0 +1,10 @@
+Scene 1: Main category
+
+1. Start to load all pictures and save them in the file system.
+2. Load the main screen and move all pictures to the correct positions.
+3. Show the cursor and do animation to scale it.
+4. After the animation, start to listent to keys and move the cursor.
+5. If the key is enter, load the next scene.
+
+
+Scene 2:
diff -r bd9b0142fc7e -r e45ad25a1462 nodejs/examples/mce/background2.png
Binary file nodejs/examples/mce/background2.png has changed
diff -r bd9b0142fc7e -r e45ad25a1462 nodejs/examples/mce/main.svg
--- a/nodejs/examples/mce/main.svg Tue Nov 09 07:41:52 2010 +0800
+++ b/nodejs/examples/mce/main.svg Wed Nov 10 07:57:35 2010 +0800
@@ -129,18 +129,18 @@
+ inkscape:transform-center-y="0"
+ inkscape:bbox-x="117.64285"
+ inkscape:bbox-y="462.7648"
+ inkscape:bbox-width="200"
+ inkscape:bbox-height="286.7168" />
+ inkscape:transform-center-y="0"
+ inkscape:bbox-x="359.21432"
+ inkscape:bbox-y="455.42856"
+ inkscape:bbox-width="200"
+ inkscape:bbox-height="291.09415" />
+ inkscape:transform-center-y="0"
+ inkscape:bbox-x="599.07141"
+ inkscape:bbox-y="458.28571"
+ inkscape:bbox-width="200"
+ inkscape:bbox-height="286.7168" />
+ inkscape:transform-center-y="0"
+ inkscape:bbox-x="821.35712"
+ inkscape:bbox-y="456.71426"
+ inkscape:bbox-width="200"
+ inkscape:bbox-height="289.10892" />
+
+
+
+
+
+
+
+
+
diff -r bd9b0142fc7e -r e45ad25a1462 nodejs/examples/mce/mainmenu.js
--- a/nodejs/examples/mce/mainmenu.js Tue Nov 09 07:41:52 2010 +0800
+++ b/nodejs/examples/mce/mainmenu.js Wed Nov 10 07:57:35 2010 +0800
@@ -25,7 +25,7 @@
var i;
var self = this;
this.items=[];
- for(i=0;i<4;i++) {
+ for(i=0;i<8;i++) {
this.items.push(app.get("cat"+i));
}
this.app = app;
@@ -150,7 +150,7 @@
}
MainMenu.prototype.changePage=function() {
- this.app.loadSVG("browser.svg");
+ this.app.loadSVG("preview.svg");
}
exports.MainMenu=MainMenu;
diff -r bd9b0142fc7e -r e45ad25a1462 nodejs/examples/mce/preview.svg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/nodejs/examples/mce/preview.svg Wed Nov 10 07:57:35 2010 +0800
@@ -0,0 +1,89 @@
+
+
+
+