mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-26 05:14:21 +00:00
Add checkbox skin directives
This commit is contained in:
parent
6b1b77c2b6
commit
b8648541a6
@ -1,6 +1,8 @@
|
||||
================================================
|
||||
Version 0.9.7.2 - Alpha (Release Date TBD)
|
||||
================================================
|
||||
[ADDED] checkbox skin directives
|
||||
|
||||
[FIXED] ability to use the tab button in numberbox textinputs
|
||||
|
||||
[CHANGED] minor performance improvements for the following objects: list, columnlistarea, tabs
|
||||
|
@ -230,6 +230,25 @@ function newobject:SetText(text)
|
||||
if text ~= "" then
|
||||
self.internals = {}
|
||||
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.parent = self
|
||||
textobject.collide = false
|
||||
|
Loading…
Reference in New Issue
Block a user