Add checkbox skin directives

This commit is contained in:
Kenny Shields 2014-01-23 08:04:21 -05:00
parent 6b1b77c2b6
commit b8648541a6
2 changed files with 21 additions and 0 deletions

View File

@ -1,6 +1,8 @@
================================================ ================================================
Version 0.9.7.2 - Alpha (Release Date TBD) Version 0.9.7.2 - Alpha (Release Date TBD)
================================================ ================================================
[ADDED] checkbox skin directives
[FIXED] ability to use the tab button in numberbox textinputs [FIXED] ability to use the tab button in numberbox textinputs
[CHANGED] minor performance improvements for the following objects: list, columnlistarea, tabs [CHANGED] minor performance improvements for the following objects: list, columnlistarea, tabs

View File

@ -230,6 +230,25 @@ function newobject:SetText(text)
if text ~= "" then if text ~= "" then
self.internals = {} self.internals = {}
local textobject = loveframes.Create("text") local textobject = loveframes.Create("text")
local skin = loveframes.util.GetActiveSkin()
if not skin then
skin = loveframes.config["DEFAULTSKIN"]
end
local directives = skin.directives
if directives then
local default_color = directives.checkbox_text_default_color
local default_shadowcolor = directives.checkbox_text_default_shadowcolor
local default_font = directives.checkbox_text_default_font
if default_color then
textobject.defaultcolor = default_color
end
if default_shadowcolor then
textobject.shadowcolor = default_shadowcolor
end
if default_font then
self.font = default_font
end
end
textobject:Remove() textobject:Remove()
textobject.parent = self textobject.parent = self
textobject.collide = false textobject.collide = false