Corentin Cailleaud
commited on
Commit
·
ea91329
1
Parent(s):
a02d65e
cubzh.lua
CHANGED
@@ -36,10 +36,18 @@ local onboardingConfig = {
|
|
36 |
local data = {}
|
37 |
data.ui = ui:createText("Hold click and drag to move camera", Color.White)
|
38 |
data.ui.pos = { Screen.Width * 0.5 - data.ui.Width * 0.5, Screen.Height * 0.5 - data.ui.Height * 0.5 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
return data
|
40 |
end,
|
41 |
-
stop = function(
|
42 |
-
data:remove()
|
|
|
43 |
end,
|
44 |
},
|
45 |
{
|
@@ -48,10 +56,18 @@ local onboardingConfig = {
|
|
48 |
local data = {}
|
49 |
data.ui = ui:createText("Use WASD/ZQSD to move", Color.White)
|
50 |
data.ui.pos = { Screen.Width * 0.5 - data.ui.Width * 0.5, Screen.Height * 0.5 - data.ui.Height * 0.5 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
return data
|
52 |
end,
|
53 |
-
stop = function(
|
54 |
-
data:remove()
|
|
|
55 |
end,
|
56 |
},
|
57 |
},
|
|
|
36 |
local data = {}
|
37 |
data.ui = ui:createText("Hold click and drag to move camera", Color.White)
|
38 |
data.ui.pos = { Screen.Width * 0.5 - data.ui.Width * 0.5, Screen.Height * 0.5 - data.ui.Height * 0.5 }
|
39 |
+
|
40 |
+
data.listener = LocalEvent:Listen(LocalEvent.Name.PointerDrag, function()
|
41 |
+
Timer(1, function()
|
42 |
+
onboarding:next()
|
43 |
+
end)
|
44 |
+
end)
|
45 |
+
|
46 |
return data
|
47 |
end,
|
48 |
+
stop = function(_, data)
|
49 |
+
data.ui:remove()
|
50 |
+
data.listener:Remove()
|
51 |
end,
|
52 |
},
|
53 |
{
|
|
|
56 |
local data = {}
|
57 |
data.ui = ui:createText("Use WASD/ZQSD to move", Color.White)
|
58 |
data.ui.pos = { Screen.Width * 0.5 - data.ui.Width * 0.5, Screen.Height * 0.5 - data.ui.Height * 0.5 }
|
59 |
+
|
60 |
+
data.listener = LocalEvent:Listen(LocalEvent.Name.KeyboardInput, function()
|
61 |
+
Timer(1, function()
|
62 |
+
onboarding:next()
|
63 |
+
end)
|
64 |
+
end)
|
65 |
+
|
66 |
return data
|
67 |
end,
|
68 |
+
stop = function(_, data)
|
69 |
+
data.ui:remove()
|
70 |
+
data.listener:Remove()
|
71 |
end,
|
72 |
},
|
73 |
},
|