Window resizeButtonBackgroundColour default

This commit is contained in:
hbomb79 2017-03-19 20:00:42 +13:00
parent c1beb7c5e1
commit b08b212b1d

View file

@ -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