From 270864d9747825dd8dcc4fdedfacccc19acde5e9 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Thu, 6 Sep 2018 17:16:56 +0100 Subject: [PATCH] Added setFillStyle override --- src/gameobjects/shape/isobox/IsoBox.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/gameobjects/shape/isobox/IsoBox.js b/src/gameobjects/shape/isobox/IsoBox.js index f0e981968..3f3de4d44 100644 --- a/src/gameobjects/shape/isobox/IsoBox.js +++ b/src/gameobjects/shape/isobox/IsoBox.js @@ -53,6 +53,17 @@ var IsoBox = new Class({ this.setSize(size, height); this.updateDisplayOrigin(); + }, + + setFillStyle: function (fillTop, fillLeft, fillRight) + { + this.fillTop = fillTop; + this.fillLeft = fillLeft; + this.fillRight = fillRight; + + this.isFilled = true; + + return this; } });