Issue 199 in los-cocos: opacity and color of cells in a MapLayer forgot when out of view

1 view
Skip to first unread message

codesite...@google.com

unread,
Aug 20, 2013, 12:19:09 AM8/20/13
to cocos-...@googlegroups.com
Status: Accepted
Owner: ccan...@gmail.com
Labels: Type-Defect Component-Tiles

New issue 199 by ccan...@gmail.com: opacity and color of cells in a
MapLayer forgot when out of view
http://code.google.com/p/los-cocos/issues/detail?id=199

Manifestations of this defect:

1. setting cell color / opacity before MapLayer on_enter : color / opacity
ignored when the map layer goes into view

2. if color / opacity is set when the cell is out of view, it will not show
them when going in view

3. setting color / opacity on a cell that is currently visible works, but
then scrolling so the cell goes out of view and then into removes any color
/ opacity of the rendered cell

Cocos version 0.5.5 and r1239

Attached
test_tiles_tint.py : bugdemo script
bars-map.xml : map used by the bugdemo

Put both files in the usual test directory so other resources are found.



Attachments:
test_tiles_tint.py 3.3 KB

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

codesite...@google.com

unread,
Aug 20, 2013, 12:31:02 AM8/20/13
to cocos-...@googlegroups.com
Updates:
Status: TrunkFixed

Comment #1 on issue 199 by ccan...@gmail.com: opacity and color of cells
in a MapLayer forgot when out of view
http://code.google.com/p/los-cocos/issues/detail?id=199

fix committed at r1240 :

cell.properties['color4'] added to remember color + opacity info (only when
color or opacity was set)

For completeness probably support for moving that property to / from .xml
is desirable, I will enter another issue about it.

codesite...@google.com

unread,
Aug 20, 2013, 1:28:17 PM8/20/13
to cocos-...@googlegroups.com

Comment #2 on issue 199 by ccan...@gmail.com: opacity and color of cells
in a MapLayer forgot when out of view
http://code.google.com/p/los-cocos/issues/detail?id=199

corrected bad behavior when set_cell_color called over a visible cell
introduced with the previous fix.

commited r1241
Reply all
Reply to author
Forward
0 new messages