From a65344038e1f30746e054eb45e54cd0ca18f18c2 Mon Sep 17 00:00:00 2001 From: xwt Date: Fri, 30 Jan 2004 07:40:31 +0000 Subject: [PATCH] 2003/10/29 03:22:52 darcs-hash:20040130074031-3ac31-fb2c107ce6801e7bae1957162af4193f0b0e491c.gz --- src/org/xwt/builtin/splash.xwt | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/org/xwt/builtin/splash.xwt b/src/org/xwt/builtin/splash.xwt index 2682d44..a948187 100644 --- a/src/org/xwt/builtin/splash.xwt +++ b/src/org/xwt/builtin/splash.xwt @@ -11,6 +11,10 @@ } xwt.thread = function() { + $text.font = xwt.fonts.vera["Vera.ttf"]; + $text.fontsize = 14; + $text.text = "downloading..."; + fill = xwt.org.xwt.builtin["splash.png"]; xwt.window = thisbox; x = (xwt.screenWidth - width) / 2; y = (xwt.screenHeight - height) / 2; @@ -22,21 +26,16 @@ xwt.println("origin is " + origin); var new_rr = xwt.unzip(xwt.watchProgress(xwt.load(origin), progress)); var new_xwt = xwt.clone(new_rr); - $text.font = xwt.fonts.vera["Vera.ttf"]; -$text.textcolor = "#f11ff1"; - $text.fontsize = 80; - $text.text = "downloading..."; -Press1 += function() { xwt.thread = function() { - var img = xwt.org.xwt.builtin["splash.png"]; - fill = img; - xwt.yield(); - new_xwt.apply(xwt.box, new_xwt["main.xwt"]); - thisbox = null; -} } + + xwt.thread = function() { + xwt.yield(); + new_xwt.apply(xwt.box, new_xwt["main.xwt"]); + thisbox = null; + } } - + -- 1.7.10.4