sliders in forms + form component setValue (hopefully didnt break anything)

This commit is contained in:
kepler155c@gmail.com
2019-07-12 12:47:51 -06:00
parent 51e40a1dd7
commit c43fe19f1d
3 changed files with 39 additions and 9 deletions

View File

@@ -25,7 +25,7 @@ UI.TextEntry.defaults = {
}
}
function UI.TextEntry:postInit()
self.value = tostring(self.value)
self.value = tostring(self.value) -- is this right ? shouldnt raw numbers be allowed
self.entry = entry({ limit = self.limit, offset = 2 })
end
@@ -35,7 +35,7 @@ function UI.TextEntry:layout()
end
function UI.TextEntry:setValue(value)
self.value = value
self.value = value or ''
self.entry:unmark()
self.entry.value = tostring(value)
self.entry:updateScroll()