mirror of
https://github.com/TangentFoxy/Piefiller.git
synced 2024-11-19 17:14:23 +00:00
fixed some derpy stuff and implemented lower bounds on depth and step size
This commit is contained in:
parent
8869727321
commit
eb128e3ecc
@ -74,8 +74,8 @@ function piefiller:new(settings)
|
||||
reset = "r",
|
||||
increase_depth = "down",
|
||||
decrease_depth = "up",
|
||||
increase_step_size = "-",
|
||||
decrease_step_size = "=",
|
||||
increase_step_size = "=",
|
||||
decrease_step_size = "-",
|
||||
shorten_names = "z",
|
||||
show_hidden = "h",
|
||||
save_to_file = "e",
|
||||
@ -342,13 +342,17 @@ function piefiller:keypressed(key)
|
||||
self.depth = self.depth + 1
|
||||
elseif command == "decrease_depth" then
|
||||
self:reset()
|
||||
if self.depth > 1 then
|
||||
self.depth = self.depth - 1
|
||||
end
|
||||
elseif command == "increase_step_size" then
|
||||
self:reset()
|
||||
self.step = self.step - 1
|
||||
self.step = self.step + 1
|
||||
elseif command == "decrease_step_size" then
|
||||
self:reset()
|
||||
self.step = self.step +1
|
||||
if self.step > 0 then
|
||||
self.step = self.step - 1
|
||||
end
|
||||
elseif command == "shorten_names" then
|
||||
self.small = not self.small
|
||||
elseif command == "show_hidden" then
|
||||
|
Loading…
Reference in New Issue
Block a user