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:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.obsidian
|
||||||
17
obsidian/Interactables.md
Normal file
17
obsidian/Interactables.md
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
## Lights
|
||||||
|
#### Properties
|
||||||
|
- Activated #Color3
|
||||||
|
- The color that is shown on the <a>Light Props</a> once
|
||||||
|
- ActivatedMaterial #string / #MaterialName
|
||||||
|
- Deactivated #Color3
|
||||||
|
- DeactivatedMaterial #string / #MaterialName
|
||||||
|
- Enabled #boolean
|
||||||
|
#### Tag
|
||||||
|
* `Interact_LightSwitch_*AreaName*`
|
||||||
|
* `Interact` - *Interact Initializer* [`Not Changable`]
|
||||||
|
* `LightSwitch` - *Interaction Type* [`Not Changable`]
|
||||||
|
* `*AreaName*` - *Area name, must be unique and cannot use the same names* [`Changable`]
|
||||||
|
#### Light Objects
|
||||||
|
|
||||||
|
|
||||||
|
## Elevator
|
||||||
@@ -28,8 +28,6 @@ type GuiDependencies = {
|
|||||||
FrameworkText: TextLabel,
|
FrameworkText: TextLabel,
|
||||||
SandboxText: TextLabel,
|
SandboxText: TextLabel,
|
||||||
DeveloperText: TextLabel,
|
DeveloperText: TextLabel,
|
||||||
Quaternions: ImageLabel,
|
|
||||||
TaylorSeries: ImageLabel,
|
|
||||||
Xframe: Frame,
|
Xframe: Frame,
|
||||||
Yframe: Frame,
|
Yframe: Frame,
|
||||||
Zframe: Frame,
|
Zframe: Frame,
|
||||||
@@ -41,7 +39,6 @@ type GuiDependencies = {
|
|||||||
local RS = game:GetService("RunService")
|
local RS = game:GetService("RunService")
|
||||||
local Storage = game:GetService("ReplicatedStorage")
|
local Storage = game:GetService("ReplicatedStorage")
|
||||||
local TS = game:GetService("TestService")
|
local TS = game:GetService("TestService")
|
||||||
local CoP = game:GetService("ContentProvider")
|
|
||||||
|
|
||||||
local function GuiDependencies(IntroGui: ScreenGui): GuiDependencies
|
local function GuiDependencies(IntroGui: ScreenGui): GuiDependencies
|
||||||
IntroGui.Enabled = true
|
IntroGui.Enabled = true
|
||||||
@@ -54,8 +51,6 @@ local function GuiDependencies(IntroGui: ScreenGui): GuiDependencies
|
|||||||
local SandboxText = Frame:WaitForChild("Sandbox") :: TextLabel
|
local SandboxText = Frame:WaitForChild("Sandbox") :: TextLabel
|
||||||
local DeveloperText = Frame:WaitForChild("Developer") :: TextLabel
|
local DeveloperText = Frame:WaitForChild("Developer") :: TextLabel
|
||||||
local ShadowGradient = TextShadow:WaitForChild("UIGradient") :: UIGradient
|
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 Xframe = Frame:WaitForChild("X") :: Frame
|
||||||
local Yframe = Frame:WaitForChild("Y") :: Frame
|
local Yframe = Frame:WaitForChild("Y") :: Frame
|
||||||
@@ -74,8 +69,6 @@ local function GuiDependencies(IntroGui: ScreenGui): GuiDependencies
|
|||||||
FrameworkText = FrameworkText,
|
FrameworkText = FrameworkText,
|
||||||
SandboxText = SandboxText,
|
SandboxText = SandboxText,
|
||||||
DeveloperText = DeveloperText,
|
DeveloperText = DeveloperText,
|
||||||
Quaternions = Quaternions,
|
|
||||||
TaylorSeries = TaylorSeries,
|
|
||||||
Xframe = Xframe,
|
Xframe = Xframe,
|
||||||
Yframe = Yframe,
|
Yframe = Yframe,
|
||||||
Zframe = Zframe,
|
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, {
|
Tween.constructor(TweenInfo.new(1, Enum.EasingStyle.Linear), Gui.DeveloperText, {
|
||||||
TextTransparency = 1
|
TextTransparency = 1
|
||||||
}):Start()
|
}):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, {
|
Tween.constructor(TweenInfo.new(.5, Enum.EasingStyle.Linear), Gui.Xframe_text, {
|
||||||
TextTransparency = 1
|
TextTransparency = 1
|
||||||
}):Start()
|
}):Start()
|
||||||
@@ -211,11 +197,10 @@ return function(IntroGui: ScreenGui, load_elapse_start: number)
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
task.spawn(function()
|
task.spawn(function()
|
||||||
CoP:PreloadAsync({Gui.TaylorSeries, Gui.Quaternions}) --Try as early as possible
|
|
||||||
|
|
||||||
if not game:IsLoaded() then
|
if not game:IsLoaded() then
|
||||||
game.Loaded:Wait()
|
game.Loaded:Wait()
|
||||||
end
|
end
|
||||||
|
|
||||||
local load_elapse = os.clock()-load_elapse_start
|
local load_elapse = os.clock()-load_elapse_start
|
||||||
TS:Message("Load elapse: "..tostring(load_elapse), game)
|
TS:Message("Load elapse: "..tostring(load_elapse), game)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user