From b08b212b1d4f668d6c15072f83bcf664b994f1a7 Mon Sep 17 00:00:00 2001 From: hbomb79 Date: Sun, 19 Mar 2017 20:00:42 +1300 Subject: [PATCH] Window resizeButtonBackgroundColour default --- src/classes/nodes/Window.ti | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/classes/nodes/Window.ti b/src/classes/nodes/Window.ti index fc8955f..c9dd2bc 100644 --- a/src/classes/nodes/Window.ti +++ b/src/classes/nodes/Window.ti @@ -96,6 +96,19 @@ function Window:__init__( ... ) end, "WINDOW_MIN_MAX_HEIGHT_CHECK" ) end +--[[ + @constructor + @desc After all the instance mixins are ready, this function is called allowing the dynamic value default to be set (before post init, the MPropertyManager is not listening for property changes) +]] +function Window:__postInit__() + if not self.resizeButtonBackgroundColour then + -- Apply the default dynamic value + self.resizeButtonBackgroundColour = "$self.content.backgroundColour" + end + + self.super:__postInit__() +end + --[[ @instance @desc TODO