Skip to content
Snippets Groups Projects
Commit 5c4355da authored by dg's avatar dg
Browse files

Max scroll distance increased to 30

git-svn-id: http://svn.net-core.org/repos/t-engine4@5612 51575b47-30f0-44d4-a5cc-537603b46e54
parent 560f78c1
No related branches found
No related tags found
No related merge requests found
......@@ -66,8 +66,8 @@ function _M:generateList()
list[#list+1] = { zone=zone, name=string.toTString"#GOLD##{bold}#Scroll distance#WHITE##{normal}#", status=function(item)
return tostring(config.settings.tome.scroll_dist)
end, fct=function(item)
game:registerDialog(GetQuantity.new("Scroll distance", "From 1 to 20", config.settings.tome.scroll_dist, 20, function(qty)
qty = util.bound(qty, 1, 20)
game:registerDialog(GetQuantity.new("Scroll distance", "From 1 to 30", config.settings.tome.scroll_dist, 30, function(qty)
qty = util.bound(qty, 1, 30)
game:saveSettings("tome.scroll_dist", ("tome.scroll_dist = %d\n"):format(qty))
config.settings.tome.scroll_dist = qty
self.c_list:drawItem(item)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment