Please file bugs for the swf8 other improvements. Also, please mention that the offsetx/y properties are only usable in swf8/10 and only for cursors. You may want to remove the width/height attributes from resource as they aren't currently used. Otherwise, approved!
Henry Minsky wrote: > + changed the sign of the offset so that you use a negative offset to > the cursor to the left > > + I couldn't figure out how to easily make JGenerator add an x,y offset > to resources when it parses them, so I'm going to > leave for later the problem of making resource offsets working in swf8. > > I also started trying to generalize the offsets to all uses of image > resources , but that got too complicated quickly, so I'm restricting this > changeset to just making cursors work in swf10. > > > > > > > > > Change 20091024-hqm-K by [email protected] on 2009-10-24 19:40:04 EDT > in /Users/hqm/openlaszlo/trunk6 > for http://svn.openlaszlo.org/openlaszlo/trunk > > Summary: make custom cursors work in swf10, add groundwork for DHTML > > New Features: > > Bugs Fixed: LPP-8563 > > Technical Reviewer: max > QA Reviewer: andre > Doc Reviewer: (pending) > > Documentation: > > Release Notes: > > Details: > > This change makes several custom cursor features work in swf10; the > use of bitmap resources, hotspot offsets, and global control of the > whether the handcursor is enabled over clickable views. > > It lays the groundwork for bitmap cursors in DHTML, and cursor hotspot > offsets in SWF8. > > + add 'offsetx' and 'offsety' attributes to <resource> tag, so > LzMouseKernel can > implement hotspots for bitmap cursors. These are passed through the the > LzResourceLibrary > object in SWF10, DHTML. SWF8 has not yet got a LzResourceLibrary object, > so it has > no place to store the offset info for resources. > > + If an offsetx or offsety are found in the LzResourceLibrary for a > cursor, LzMouseKernel uses that > delta to offset the cursor position. > > + factored out the ObjectWriter .getResource method from SWF9Writer and > DHTMLWriter > > > > > Tests: > > test/cursor/cursors.lzx in swf10, swf8 > > Files: > D test/cursors.lzx > A test/cursor > A test/cursor/grid_cursor.swf > A test/cursor/sort_arrow_up.swf > A test/cursor/cursor_wait.png > A test/cursor/cursor1.lzx > A test/cursor/cursor2.lzx > A test/cursor/cursors.lzx > A test/cursor/cursor_crosshair.png > M WEB-INF/lps/schema/lfc-undeclared.lzx > M WEB-INF/lps/lfc/kernel/swf9/LzMouseKernel.as > M WEB-INF/lps/lfc/kernel/swf9/LzSprite.as > M WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as > M WEB-INF/lps/server/src/org/openlaszlo/compiler/ObjectWriter.java > M WEB-INF/lps/server/src/org/openlaszlo/compiler/DHTMLWriter.java > M WEB-INF/lps/server/src/org/openlaszlo/compiler/ResourceCompiler.java > M WEB-INF/lps/server/src/org/openlaszlo/compiler/SWFWriter.java > M WEB-INF/lps/server/src/org/openlaszlo/compiler/SWF9Writer.java > > > Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20091024-hqm-K.tar -- Regards, Max Carlson OpenLaszlo.org _______________________________________________ Laszlo-reviews mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-reviews
