Возвращение приложения 3DPrint #8

This commit is contained in:
Igor Timofeev 2018-06-08 16:42:40 +03:00
parent 3e2183aca0
commit c3fb8e05ab

View File

@ -402,15 +402,19 @@ view.eventHandler = function(mainContainer, view, e1, e2, e3, e4, e5)
elseif e1 == "drop" then elseif e1 == "drop" then
touchX, touchY = nil, nil touchX, touchY = nil, nil
elseif e1 == "scroll" then elseif e1 == "scroll" then
currentLayer = currentLayer + e5 if e5 > 0 then
if currentLayer < 0 then if currentLayer < 15 then
currentLayer = 0 currentLayer = currentLayer + 1
elseif currentLayer > 15 then mainContainer:drawOnScreen()
currentLayer = 15 updateOnHologram()
end
else
if currentLayer > 0 then
currentLayer = currentLayer - 1
mainContainer:drawOnScreen()
updateOnHologram()
end
end end
mainContainer:drawOnScreen()
updateOnHologram()
elseif e1 == "component_added" or e1 == "component_removed" then elseif e1 == "component_added" or e1 == "component_removed" then
updateProxies() updateProxies()
end end
@ -555,8 +559,8 @@ tintColorSelector.onColorSelected = updateModelFromWidgets
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
if (args.o or args.open) and args[1] then if (options.o or options.open) and args[1] then
load(path) load(args[1])
else else
newButton.onTouch() newButton.onTouch()
end end