Fix =no MapCSS check. This must be the longest-standing bug in P2...
[potlatch2.git] / net / systemeD / halcyon / styleparser / ShieldStyle.as
index f243a82b3ca75a9d85adc28971d2fbaa1ef05f7d..667ba2e1db5798e0d6f5fcd76d264656be9e4283 100644 (file)
@@ -1,11 +1,21 @@
 package net.systemeD.halcyon.styleparser {
 
-       public class ShieldStyle extends TextStyle {
+       public class ShieldStyle extends Style {
 
-               public var shield:String;
+               public var shield_image:String;
                public var shield_width:uint;
                public var shield_height:uint;
+               // ** also needs shield fonts etc.
 
-       }
+               override public function get properties():Array {
+                       return [
+                               'shield_image','shield_width','shield_height'
+                       ];
+               }
+               
+               override public function get drawn():Boolean {
+                       return (shield_image!=null);
+               }
 
+       }
 }