Version 0.9.5.4 - Alpha (see changelog.txt)

This commit is contained in:
Kenny Shields 2013-03-05 14:46:01 -05:00
parent a8d2c571bb
commit 6bbdde17a8
4 changed files with 43 additions and 5 deletions

View File

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

View File

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

View File

@ -279,10 +279,11 @@ function newobject:RemoveItem(data)
item:Remove()
end
else
object:Remove()
data:Remove()
end
self:CalculateSize()
self:RedoLayout()
end
end

View File

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