Author: ben
Date: 2007-07-08 10:45:59 -0700 (Sun, 08 Jul 2007)
New Revision: 5616
Added:
sandbox/ben/smush/no-icon.png
Modified:
sandbox/ben/smush/main.lzx
sandbox/ben/smush/resources.lzx
Log:
in the middle of changing match/nomatch to show a little icon
Modified: sandbox/ben/smush/main.lzx
===================================================================
--- sandbox/ben/smush/main.lzx 2007-07-08 17:17:33 UTC (rev 5615)
+++ sandbox/ben/smush/main.lzx 2007-07-08 17:45:59 UTC (rev 5616)
@@ -123,7 +123,7 @@
</view>
- <view id="gResult" x="10" y="150" width="300" height="0" bgcolor="red" >
+ <view id="gResult" x="0" y="150" width="320" height="100" >
<attribute name="matched" value="false" type="boolean" />
<method name="showResult" args="match">
this.matched = match;
@@ -133,14 +133,18 @@
this.showMismatch();
</method>
<method name="showMatch">
+ this.nomatch.setVisible(false);
this.txt.setText("match!");
this.showResultAnim.doStart();
</method>
<method name="showMismatch">
+ this.nomatch.setVisible(true);
this.txt.setText("no match");
this.showResultAnim.doStart();
</method>
-
+
+ <view name="film" width="$once{parent.width}"
height="$once{parent.height}" bgcolor="0x000000" opacity="0" />
+
<text name="txt" x="5" width="${parent.width-10}" fgcolor="0xFFFFFF"
fontsize="48" />
<!-- click to dismiss -->
<method event="onclick">
@@ -150,9 +154,7 @@
<animatorgroup name="showResultAnim" process="simultaneous"
start="false">
<animator
- attribute="height" to="100" start="false" duration="500" />
- <animator
- attribute="y" to="100" start="false" duration="500" />
+ attribute="opacity" to="1" start="false" duration="500"
target="gResult.film"/>
<method event="onstart">
parent.txt.setVisible(true);
</method>
@@ -167,14 +169,14 @@
<animatorgroup name="hideResultAnim" process="simultaneous"
start="false">
<animator
- attribute="height" to="0" start="false" duration="500" />
- <animator
- attribute="y" to="150" start="false" duration="500" />
+ attribute="opacity" to="0" start="false" duration="500"
target="gResult.film"/>
<method event="onstart">
parent.txt.setVisible(false);
</method>
</animatorgroup>
+ <view id="gMismatch" name="nomatch" resource="nomatchicon" x="198"
y="25" width="38" height="38"
+ visible="false" />
</view>
<view id="gMoreInfo" width="$once{parent.width}"
height="$once{parent.height}" bgcolor="0x007700"
Added: sandbox/ben/smush/no-icon.png
Property changes on: sandbox/ben/smush/no-icon.png
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Modified: sandbox/ben/smush/resources.lzx
===================================================================
--- sandbox/ben/smush/resources.lzx 2007-07-08 17:17:33 UTC (rev 5615)
+++ sandbox/ben/smush/resources.lzx 2007-07-08 17:45:59 UTC (rev 5616)
@@ -1,5 +1,6 @@
<library>
<resource name="headerbkgnd" src="header-bkgnd.png" />
<resource name="logo" src="logo.png" />
+ <resource name="nomatchicon" src="no-icon.png" />
</library>
<!-- Copyright 2007 Laszlo Systems -->
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins