From c0818636dda70e4ff30c1e85b902fa0992b4c33a Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Sun, 30 Jun 2013 19:55:42 -0400 Subject: workering --- .gitignore | 4 +- TODO | 5 +- api.txt | 34 ------ www/css/anim.css | 16 +++ www/css/index.css | 14 ++- www/index.html | 21 ++-- www/js/api.js | 104 ++++++++++++++--- www/js/html5ks.js | 335 +++++++++++++++++++++++++++++------------------------- www/js/menu.js | 33 +++++- 9 files changed, 340 insertions(+), 226 deletions(-) delete mode 100644 api.txt diff --git a/.gitignore b/.gitignore index 708f42e..ce5fbff 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ # ignore 'copyrighted' contents similar to emulators -/www/dump/* -/rpy/* +/www/dump +/rpy diff --git a/TODO b/TODO index ef98b89..36fa32b 100644 --- a/TODO +++ b/TODO @@ -1,7 +1,8 @@ todo ordered by most to least important... ish -- imachine +- nvl - menu -- extend +- show command +- transitions. ALL THE TRANSITIONS - fix cursor to apply to all document - cache script.json files diff --git a/api.txt b/api.txt deleted file mode 100644 index eff997e..0000000 --- a/api.txt +++ /dev/null @@ -1,34 +0,0 @@ -== imachine{,_replay} api == -label * -> function -jump_out -> seen_scenes & call -call -> call -seen_scene(scene) -> return label in seen_scenes -int attraction_* -path_end(chr, is_good) -iscene(name, is_h, is_end) -> promise -✓ act_op(movie) -> promise -imenu(choice) -> promise - -== script api == -chars: in ui_settings.rpy - e.g. his(text) -> promise -with(transition, action) -> promise -play(stream, name, fade) -stream: sound,music,ambient - -== prefs == -h-scenes (tied to shrinkwrap) -fullscreen? -webp (default on chrome/opera, off on others or webpjs) -text speed -auto delay -music/sfx vol -skip unread -skip after choice - -== context menu == -show image, scrollback, skip, auto, options - -== save/load == -passive: seen_scenes -active: track attraction diff --git a/www/css/anim.css b/www/css/anim.css index ee2889d..e89959d 100644 --- a/www/css/anim.css +++ b/www/css/anim.css @@ -22,3 +22,19 @@ 0% { opacity: 1; } 100% { opacity: 0; } } + +@-webkit-keyframes blink { + 0% { opacity: 0; } + 50% { opacity: 1; } + 100% { opacity: 0; } +} +@-moz-keyframes blink { + 0% { opacity: 0; } + 50% { opacity: 1; } + 100% { opacity: 0; } +} +@keyframes blink { + 0% { opacity: 0; } + 50% { opacity: 1; } + 100% { opacity: 0; } +} diff --git a/www/css/index.css b/www/css/index.css index 533559c..e5a5c19 100644 --- a/www/css/index.css +++ b/www/css/index.css @@ -27,6 +27,8 @@ body { #container, #bg, #vid { cursor: url("../dump/ui/mousecursor.png"), default; position: absolute; +} +#container.scale, #bg.scale, #vid.scale { top: 50%; left: 50%; } @@ -96,7 +98,6 @@ html.no-js #warn-container { h2 { font: 20px/28px Playtime; font-weight: bold; - opacity: 0.4; } html.no-js #warn li:not(#js) { display: none; } #warn li#ie { display: none; } @@ -109,8 +110,7 @@ html #warn li#html-svg-filter { display: none; } label { display: block; } -.button-enabled { -/* cursor: pointer; */ +.button, h2, label { opacity: 0.4; } .button-disabled { @@ -141,3 +141,11 @@ input[type="checkbox"] + span:before { input[type="checkbox"]:checked + span:before { background: url("../dump/ui/bt-cf-checked.png") no-repeat left bottom; } +#ctc { + position: absolute; + bottom: 20px; + right: 10px; + -webkit-animation: blink 2s infinite; + -moz-animation: blink 2s infinite; + animation: blink 2s infinite; +} diff --git a/www/index.html b/www/index.html index 19b109c..b01fea4 100644 --- a/www/index.html +++ b/www/index.html @@ -49,6 +49,7 @@
+