mirror of
https://github.com/unixtensor/Roblox-Elevator-Game.git
synced 2025-12-14 14:51:55 +00:00
obsidian docs and remove intro gui imagelabels
This commit is contained in:
@@ -28,8 +28,6 @@ type GuiDependencies = {
|
||||
FrameworkText: TextLabel,
|
||||
SandboxText: TextLabel,
|
||||
DeveloperText: TextLabel,
|
||||
Quaternions: ImageLabel,
|
||||
TaylorSeries: ImageLabel,
|
||||
Xframe: Frame,
|
||||
Yframe: Frame,
|
||||
Zframe: Frame,
|
||||
@@ -41,7 +39,6 @@ type GuiDependencies = {
|
||||
local RS = game:GetService("RunService")
|
||||
local Storage = game:GetService("ReplicatedStorage")
|
||||
local TS = game:GetService("TestService")
|
||||
local CoP = game:GetService("ContentProvider")
|
||||
|
||||
local function GuiDependencies(IntroGui: ScreenGui): GuiDependencies
|
||||
IntroGui.Enabled = true
|
||||
@@ -54,8 +51,6 @@ local function GuiDependencies(IntroGui: ScreenGui): GuiDependencies
|
||||
local SandboxText = Frame:WaitForChild("Sandbox") :: TextLabel
|
||||
local DeveloperText = Frame:WaitForChild("Developer") :: TextLabel
|
||||
local ShadowGradient = TextShadow:WaitForChild("UIGradient") :: UIGradient
|
||||
local Quaternions = Frame:WaitForChild("Quaternions") :: ImageLabel
|
||||
local TaylorSeries = Frame:WaitForChild("TaylorSeries") :: ImageLabel
|
||||
|
||||
local Xframe = Frame:WaitForChild("X") :: Frame
|
||||
local Yframe = Frame:WaitForChild("Y") :: Frame
|
||||
@@ -74,8 +69,6 @@ local function GuiDependencies(IntroGui: ScreenGui): GuiDependencies
|
||||
FrameworkText = FrameworkText,
|
||||
SandboxText = SandboxText,
|
||||
DeveloperText = DeveloperText,
|
||||
Quaternions = Quaternions,
|
||||
TaylorSeries = TaylorSeries,
|
||||
Xframe = Xframe,
|
||||
Yframe = Yframe,
|
||||
Zframe = Zframe,
|
||||
@@ -99,13 +92,6 @@ local function GUI_LoadFinish(Gui: GuiDependencies) --We can now access the fram
|
||||
Tween.constructor(TweenInfo.new(1, Enum.EasingStyle.Linear), Gui.DeveloperText, {
|
||||
TextTransparency = 1
|
||||
}):Start()
|
||||
Tween.constructor(TweenInfo.new(1, Enum.EasingStyle.Linear), Gui.TaylorSeries, {
|
||||
ImageTransparency = 1
|
||||
}):Start()
|
||||
Tween.constructor(TweenInfo.new(1, Enum.EasingStyle.Linear), Gui.Quaternions, {
|
||||
ImageTransparency = 1
|
||||
}):Start()
|
||||
|
||||
Tween.constructor(TweenInfo.new(.5, Enum.EasingStyle.Linear), Gui.Xframe_text, {
|
||||
TextTransparency = 1
|
||||
}):Start()
|
||||
@@ -211,11 +197,10 @@ return function(IntroGui: ScreenGui, load_elapse_start: number)
|
||||
end)
|
||||
|
||||
task.spawn(function()
|
||||
CoP:PreloadAsync({Gui.TaylorSeries, Gui.Quaternions}) --Try as early as possible
|
||||
|
||||
if not game:IsLoaded() then
|
||||
game.Loaded:Wait()
|
||||
end
|
||||
|
||||
local load_elapse = os.clock()-load_elapse_start
|
||||
TS:Message("Load elapse: "..tostring(load_elapse), game)
|
||||
|
||||
|
||||
@@ -233,7 +233,7 @@ local function FloorLeveled(self: ClassConstructor, RequestedLevel: number)
|
||||
Attributes.Moving.Value = false
|
||||
Attributes.CurrentFloor.Value = RequestedLevel
|
||||
self.BoxAlignPosition.MaxVelocity = Otis1960.MaxVelocity
|
||||
|
||||
|
||||
self.LanternsConstructor:Reset(Attributes.CurrentFloor.Value)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user