mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-26 05:14:21 +00:00
Version 0.9.5.13 - Alpha (see changelog.txt)
This commit is contained in:
parent
0b5cdb6697
commit
27cad61b0a
@ -1,3 +1,8 @@
|
||||
================================================
|
||||
Version 0.9.5.13 - Alpha (June 24 - 2013)
|
||||
================================================
|
||||
[FIXED] tabbuttons not being clickable when the tabs object was using a custom state
|
||||
|
||||
================================================
|
||||
Version 0.9.5.12 - Alpha (June 10 - 2013)
|
||||
================================================
|
||||
|
2
init.lua
2
init.lua
@ -11,7 +11,7 @@ loveframes = {}
|
||||
-- library info
|
||||
loveframes.info = {}
|
||||
loveframes.info.author = "Kenny Shields"
|
||||
loveframes.info.version = "0.9.5.12"
|
||||
loveframes.info.version = "0.9.5.13"
|
||||
loveframes.info.stage = "Alpha"
|
||||
|
||||
-- library configurations
|
||||
|
@ -1180,4 +1180,4 @@ function newobject:GetState()
|
||||
|
||||
return self.state
|
||||
|
||||
end
|
||||
end
|
@ -104,7 +104,8 @@ function newobject:initialize(parent, bartype)
|
||||
table.insert(self.internals, rightbutton)
|
||||
end
|
||||
|
||||
self:SetState(parent.state)
|
||||
local parentstate = parent.state
|
||||
self:SetState(parentstate)
|
||||
|
||||
-- apply template properties to the object
|
||||
loveframes.templates.ApplyToObject(self)
|
||||
|
@ -17,6 +17,7 @@ function newobject:initialize(parent, text, tabnumber, tip, image, onopened, onc
|
||||
self.text = text
|
||||
self.tabnumber = tabnumber
|
||||
self.parent = parent
|
||||
self.state = parent.state
|
||||
self.staticx = 0
|
||||
self.staticy = 0
|
||||
self.width = 50
|
||||
|
@ -249,11 +249,12 @@ function newobject:AddItem(object)
|
||||
end
|
||||
|
||||
local children = self.children
|
||||
local state = self.state
|
||||
|
||||
-- remove the item object from its current parent and make its new parent the list object
|
||||
object:Remove()
|
||||
object.parent = self
|
||||
object.state = self.state
|
||||
object:SetState(state)
|
||||
|
||||
-- insert the item object into the list object's children table
|
||||
table.insert(children, object)
|
||||
|
@ -61,13 +61,11 @@ function newobject:update(dt)
|
||||
local padding = self.padding
|
||||
local autosize = self.autosize
|
||||
local padding = self.padding
|
||||
local autosize = self.autosize
|
||||
local children = self.children
|
||||
local numchildren = #children
|
||||
local internals = self.internals
|
||||
local tab = self.tab
|
||||
local parent = self.parent
|
||||
local autosize = self.autosize
|
||||
local base = loveframes.base
|
||||
local update = self.Update
|
||||
|
||||
@ -290,10 +288,11 @@ function newobject:AddTab(name, object, tip, image, onopened, onclosed)
|
||||
local tabnumber = self.tabnumber
|
||||
local tabheight = self.tabheight
|
||||
local internals = self.internals
|
||||
local state = self.state
|
||||
|
||||
object:Remove()
|
||||
object.parent = self
|
||||
object:SetState(self.state)
|
||||
object:SetState(state)
|
||||
object.staticx = 0
|
||||
object.staticy = 0
|
||||
|
||||
@ -316,6 +315,7 @@ end
|
||||
function newobject:AddScrollButtons()
|
||||
|
||||
local internals = self.internals
|
||||
local state = self.state
|
||||
|
||||
for k, v in ipairs(internals) do
|
||||
if v.type == "scrollbutton" then
|
||||
@ -380,6 +380,9 @@ function newobject:AddScrollButtons()
|
||||
end
|
||||
end
|
||||
|
||||
leftbutton.state = state
|
||||
rightbutton.state = state
|
||||
|
||||
table.insert(internals, leftbutton)
|
||||
table.insert(internals, rightbutton)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user