Skip to content
This repository was archived by the owner on Aug 20, 2024. It is now read-only.

Commit 0263de9

Browse files
committed
Major changes is visuals and config.
1 parent e7b3216 commit 0263de9

16 files changed

+916
-369
lines changed

src/SignsInternal/PluginGui/GuiObjectPart.lua

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ local Selection = game:GetService("Selection")
1313
local GuiObjectPart = {}
1414
GuiObjectPart.__index = GuiObjectPart
1515

16+
-- Creates a new GuiObjectPart
1617
function GuiObjectPart.new(
1718
label: GuiObject,
1819
autoLocalize: boolean?,
@@ -34,9 +35,6 @@ function GuiObjectPart.new(
3435
part.Transparency = 1
3536
part.Size = Vector3.new(partSizeX, partSizeY, 0)
3637
part.Position = (camera.CFrame + camera.CFrame.LookVector * 10).Position
37-
local yCameraRotation = camera.CFrame.Rotation.Y
38-
local yRotation = math.floor(yCameraRotation / 90 + 0.5) * 90
39-
part.Rotation = Vector3.new(0, yRotation, 0)
4038

4139
CollectionService:AddTag(part, "_Sign")
4240

@@ -62,15 +60,18 @@ function GuiObjectPart.new(
6260
return self
6361
end
6462

65-
function GuiObjectPart:GetPart()
63+
-- Gets the GuiObjectPart
64+
function GuiObjectPart:GetPart(): Part
6665
return self._part
6766
end
6867

69-
function GuiObjectPart:GetSurfaceGui()
68+
-- Gets the SurfaceGui
69+
function GuiObjectPart:GetSurfaceGui(): SurfaceGui
7070
return self._surfaceGui
7171
end
7272

73-
function GuiObjectPart:GetGuiObject()
73+
-- Gets the GuiObject
74+
function GuiObjectPart:GetGuiObject(): GuiObject
7475
return self._guiObject
7576
end
7677

0 commit comments

Comments
 (0)