Support icon opacity in fill (casing-opacity already supported. Makes the dupe nodes...
authorAndy Allan <gravitystorm@gmail.com>
Tue, 16 Nov 2010 16:33:12 +0000 (16:33 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Tue, 16 Nov 2010 16:33:12 +0000 (16:33 +0000)
net/systemeD/halcyon/NodeUI.as

index 07477bc..04347c8 100644 (file)
@@ -143,7 +143,7 @@ package net.systemeD.halcyon {
                        // get colours
                        if (styleList.shapeStyles[sublayer]) {
                                var s:ShapeStyle=styleList.shapeStyles[sublayer];
-                               if (!isNaN(s.color)) { icon.graphics.beginFill(s.color);
+                               if (!isNaN(s.color)) { icon.graphics.beginFill(s.color, s.opacity ? s.opacity : 1);
                                        }
                                if (s.casing_width || !isNaN(s.casing_color)) {
                                        icon.graphics.lineStyle(s.casing_width ? s.casing_width : 1,