|
@@ -3,8 +3,8 @@ package h2d;
|
|
class ScaleGrid extends h2d.TileGroup {
|
|
class ScaleGrid extends h2d.TileGroup {
|
|
|
|
|
|
|
|
|
|
- public var borderWidth : Int;
|
|
|
|
- public var borderHeight : Int;
|
|
|
|
|
|
+ public var borderWidth(default,set) : Int;
|
|
|
|
+ public var borderHeight(default,set) : Int;
|
|
|
|
|
|
public var width(default,set) : Int;
|
|
public var width(default,set) : Int;
|
|
public var height(default,set) : Int;
|
|
public var height(default,set) : Int;
|
|
@@ -50,6 +50,18 @@ class ScaleGrid extends h2d.TileGroup {
|
|
return h;
|
|
return h;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ function set_borderWidth(w) {
|
|
|
|
+ this.borderWidth = w;
|
|
|
|
+ clear();
|
|
|
|
+ return w;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function set_borderHeight(h) {
|
|
|
|
+ this.borderHeight = h;
|
|
|
|
+ clear();
|
|
|
|
+ return h;
|
|
|
|
+ }
|
|
|
|
+
|
|
override function getBoundsRec(relativeTo, out, forSize) {
|
|
override function getBoundsRec(relativeTo, out, forSize) {
|
|
if( content.isEmpty() ) updateContent();
|
|
if( content.isEmpty() ) updateContent();
|
|
super.getBoundsRec(relativeTo, out, forSize);
|
|
super.getBoundsRec(relativeTo, out, forSize);
|