mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2025-12-20 19:19:21 +01:00
Возвращение приложения 3DPrint #8
This commit is contained in:
parent
3e2183aca0
commit
c3fb8e05ab
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user