Corentin Cailleaud commited on
Commit
22a9b1b
1 Parent(s): c0cc77a
Files changed (1) hide show
  1. cubzh.lua +8 -3
cubzh.lua CHANGED
@@ -30,13 +30,13 @@ easy_onboarding.next = function(self)
30
  stopCallbackData = steps[currentStep].start(self, currentStep)
31
  end
32
 
33
- local onboarding_config = {
34
  steps = {
35
  {
36
  start = function(onboarding, step)
37
  local ui = require("uikit")
38
  local data = {}
39
- data.ui = ui:createText("Hold click and drag to move camera")
40
  data.ui.pos = { Screen.Width * 0.5 - data.ui.Width * 0.5, Screen.Height * 0.5 - data.ui.Height * 0.5 }
41
  return data
42
  end,
@@ -48,7 +48,7 @@ local onboarding_config = {
48
  start = function(onboarding, step)
49
  local ui = require("uikit")
50
  local data = {}
51
- data.ui = ui:createText("Use WASD/ZQSD to move")
52
  data.ui.pos = { Screen.Width * 0.5 - data.ui.Width * 0.5, Screen.Height * 0.5 - data.ui.Height * 0.5 }
53
  return data
54
  end,
@@ -788,6 +788,11 @@ Client.OnWorldObjectLoad = function(obj)
788
  end
789
 
790
  Client.OnStart = function()
 
 
 
 
 
791
  require("object_skills").addStepClimbing(Player, {
792
  mapScale = MAP_SCALE,
793
  collisionGroups = Map.CollisionGroups,
 
30
  stopCallbackData = steps[currentStep].start(self, currentStep)
31
  end
32
 
33
+ local onboardingConfig = {
34
  steps = {
35
  {
36
  start = function(onboarding, step)
37
  local ui = require("uikit")
38
  local data = {}
39
+ data.ui = ui:createText("Hold click and drag to move camera", Color.White)
40
  data.ui.pos = { Screen.Width * 0.5 - data.ui.Width * 0.5, Screen.Height * 0.5 - data.ui.Height * 0.5 }
41
  return data
42
  end,
 
48
  start = function(onboarding, step)
49
  local ui = require("uikit")
50
  local data = {}
51
+ data.ui = ui:createText("Use WASD/ZQSD to move", Color.White)
52
  data.ui.pos = { Screen.Width * 0.5 - data.ui.Width * 0.5, Screen.Height * 0.5 - data.ui.Height * 0.5 }
53
  return data
54
  end,
 
788
  end
789
 
790
  Client.OnStart = function()
791
+ easy_onboarding:startOnboarding(onboardingConfig)
792
+ Timer(3, function()
793
+ easy_onboarding:next()
794
+ end)
795
+
796
  require("object_skills").addStepClimbing(Player, {
797
  mapScale = MAP_SCALE,
798
  collisionGroups = Map.CollisionGroups,