mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-26 05:14:21 +00:00
Version 0.9.5.4 - Alpha (see changelog.txt)
This commit is contained in:
parent
a8d2c571bb
commit
6bbdde17a8
@ -1,3 +1,12 @@
|
||||
================================================
|
||||
Version 0.9.5.4 - Alpha (March 5 - 2013)
|
||||
================================================
|
||||
[ADDED] a new multichoice method: RemoveChoice(choice)
|
||||
[ADDED] a new multichoice method: Clear()
|
||||
|
||||
[FIXED] a bug with list:RemoveItem that would cause an error when providing an argument that wasn't a number
|
||||
[FIXED] the list object not resizing correctly when using list:RemoveItem and providing a number as an argument
|
||||
|
||||
================================================
|
||||
Version 0.9.5.3 - Alpha (February 25 - 2013)
|
||||
================================================
|
||||
|
2
init.lua
2
init.lua
@ -9,7 +9,7 @@ loveframes = {}
|
||||
-- library info
|
||||
loveframes.info = {}
|
||||
loveframes.info.author = "Kenny Shields"
|
||||
loveframes.info.version = "0.9.5.3"
|
||||
loveframes.info.version = "0.9.5.4"
|
||||
loveframes.info.stage = "Alpha"
|
||||
|
||||
-- library configurations
|
||||
|
@ -279,10 +279,11 @@ function newobject:RemoveItem(data)
|
||||
item:Remove()
|
||||
end
|
||||
else
|
||||
object:Remove()
|
||||
data:Remove()
|
||||
end
|
||||
|
||||
self:CalculateSize()
|
||||
self:RedoLayout()
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
@ -176,6 +176,24 @@ function newobject:AddChoice(choice)
|
||||
|
||||
end
|
||||
|
||||
--[[---------------------------------------------------------
|
||||
- func: RemoveChoice(choice)
|
||||
- desc: removes the specified choice from the object's
|
||||
list of choices
|
||||
--]]---------------------------------------------------------
|
||||
function newobject:RemoveChoice(choice)
|
||||
|
||||
local choices = self.choices
|
||||
|
||||
for k, v in ipairs(choices) do
|
||||
if v == choice then
|
||||
table.remove(choices, k)
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
--[[---------------------------------------------------------
|
||||
- func: SetChoice(choice)
|
||||
- desc: sets the current choice
|
||||
@ -373,3 +391,13 @@ function newobject:GetSortFunction()
|
||||
|
||||
end
|
||||
|
||||
--[[---------------------------------------------------------
|
||||
- func: Clear()
|
||||
- desc: removes all choices from the object's list
|
||||
of choices
|
||||
--]]---------------------------------------------------------
|
||||
function newobject:Clear()
|
||||
|
||||
self.choices = {}
|
||||
|
||||
end
|
Loading…
Reference in New Issue
Block a user