milo: simplify learn types + monitor resize

This commit is contained in:
kepler155c@gmail.com
2018-12-04 18:49:01 -05:00
parent e90e6cebdd
commit fff04ec01a
18 changed files with 225 additions and 305 deletions

View File

@@ -38,15 +38,15 @@ local wizardPage = UI.Window {
}
function wizardPage:setNode(node)
self.node = node
self.form:setValues(node)
end
function wizardPage:saveNode(node)
Sound.setVolume(node.volume)
end
function wizardPage:validate()
if self.form:save() then
Sound.setVolume(self.node.volume)
return true
end
return self.form:save()
end
function wizardPage:isValidType(node)