Corentin Cailleaud commited on
Commit
a02d65e
1 Parent(s): cf5f023
Files changed (1) hide show
  1. cubzh.lua +8 -3
cubzh.lua CHANGED
@@ -28,13 +28,13 @@ easy_onboarding.next = function(self)
28
  stopCallbackData = steps[currentStep].start(self, currentStep)
29
  end
30
 
31
- local onboarding_config = {
32
  steps = {
33
  {
34
  start = function(onboarding, step)
35
  local ui = require("uikit")
36
  local data = {}
37
- data.ui = ui:createText("Hold click and drag to move camera")
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,
@@ -46,7 +46,7 @@ local onboarding_config = {
46
  start = function(onboarding, step)
47
  local ui = require("uikit")
48
  local data = {}
49
- data.ui = ui:createText("Use WASD/ZQSD to move")
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,
@@ -786,6 +786,11 @@ Client.OnWorldObjectLoad = function(obj)
786
  end
787
 
788
  Client.OnStart = function()
 
 
 
 
 
789
  require("object_skills").addStepClimbing(Player, {
790
  mapScale = MAP_SCALE,
791
  collisionGroups = Map.CollisionGroups,
 
28
  stopCallbackData = steps[currentStep].start(self, currentStep)
29
  end
30
 
31
+ local onboardingConfig = {
32
  steps = {
33
  {
34
  start = function(onboarding, step)
35
  local ui = require("uikit")
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,
 
46
  start = function(onboarding, step)
47
  local ui = require("uikit")
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,
 
786
  end
787
 
788
  Client.OnStart = function()
789
+ easy_onboarding:startOnboarding(onboardingConfig)
790
+ Timer(3, function()
791
+ easy_onboarding:next()
792
+ end)
793
+
794
  require("object_skills").addStepClimbing(Player, {
795
  mapScale = MAP_SCALE,
796
  collisionGroups = Map.CollisionGroups,