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

Commit 430236d

Browse files
committed
Added config files and license.
Added config files for each plugin version, Signs and Signs Free. Updated license by adding multi-line commenting to use less characters.
1 parent eecb4b4 commit 430236d

File tree

13 files changed

+1403
-201
lines changed

13 files changed

+1403
-201
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
local choices = {
2+
3+
-- Every font in existance, needs a better loop system for if new font is made. Much as a proof of concept for now.
4+
-- [[<font color="rgb(_COLOR3_)">_COLOR_</font>]]
5+
{Id = "1",
6+
Color = Color3.fromRGB(255, 255, 255),
7+
Text = [[<stroke color="rgb(46, 46, 46)" joins="round" thickness="1" transparency="0.25"><font color="rgb(242, 243, 243)">White</font></stroke>]]},
8+
{Id = "2",
9+
Color = Color3.fromRGB(128, 128, 128),
10+
Text = [[<font color="rgb(128, 128, 128)">Grey</font>]]},
11+
{Id = "3",
12+
Color = Color3.fromRGB(196, 40, 28),
13+
Text = [[<font color="rgb(196, 40, 28)">Red</font>]]},
14+
{Id = "4",
15+
Color = Color3.fromRGB(245, 205, 48),
16+
Text = [[<font color="rgb(245, 205, 48)">Yellow</font>]]},
17+
{Id = "5",
18+
Color = Color3.fromRGB(218, 133, 65),
19+
Text = [[<font color="rgb(218, 133, 65)">Orange</font>]]},
20+
{Id = "6",
21+
Color = Color3.fromRGB(75, 151, 75),
22+
Text = [[<font color="rgb(75, 151, 75)">Green</font>]]},
23+
{Id = "7",
24+
Color = Color3.fromRGB(13, 105, 172),
25+
Text = [[<font color="rgb(13, 105, 172)">Blue</font>]]},
26+
{Id = "8",
27+
Color = Color3.fromRGB(107, 50, 124),
28+
Text = [[<font color="rgb(107, 50, 124)">Violet</font>]]},
29+
{Id = "9",
30+
Color = Color3.fromRGB(170, 0, 170),
31+
Text = [[<font color="rgb(170, 0, 170)">Magenta</font>]]},
32+
{Id = "10",
33+
Color = Color3.fromRGB(27, 42, 53),
34+
Text = [[<stroke color="rgb(255, 255, 255)" joins="round" thickness="1" transparency="0.75"><font color="rgb(27, 42, 53)">Black</font></stroke>]]},
35+
{Id = "11",
36+
Color = Color3.fromRGB(17, 17, 17),
37+
Text = [[<stroke color="rgb(255, 255, 255)" joins="round" thickness="1" transparency="0.75"><font color="rgb(17, 17, 17)">Really black</font></stroke>]]}
38+
39+
} -- Array of fonts, please fix this. I really hate this.
40+
41+
return choices
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
local FontFace = {
2+
3+
-- Every font in existance, needs a better loop system for if fromName font is made. Much as a proof of concept for now.
4+
-- [[<font family="rbxasset://fonts/families/_FAMILY_.json">_NAME_</font>]]
5+
6+
{Id = "AccanthisADFStd",
7+
Font = Font.fromName("AccanthisADFStd"),
8+
Text = [[<font family="rbxasset://fonts/families/AccanthisADFStd.json">Accanthis</font>]]},
9+
{Id = "AmaticSC",
10+
Font = Font.fromName("AmaticSC"),
11+
Text = [[<font family="rbxasset://fonts/families/AmaticSC.json">Amatic SC</font>]]},
12+
{Id = "Arial",
13+
Font = Font.fromName("Arial"),
14+
Text = [[<font family="rbxasset://fonts/families/Arial.json">Arial</font>]]},
15+
{Id = "Balthazar",
16+
Font = Font.fromName("Balthazar"),
17+
Text = [[<font family="rbxasset://fonts/families/Balthazar.json">Balthazar</font>]]},
18+
{Id = "Bangers",
19+
Font = Font.fromName("Bangers"),
20+
Text = [[<font family="rbxasset://fonts/families/Bangers.json">Bangers</font>]]},
21+
{Id = "ComicNeueAngular",
22+
Font = Font.fromName("ComicNeueAngular"),
23+
Text = [[<font family="rbxasset://fonts/families/ComicNeueAngular.json">Comic Neue</font>]]},
24+
{Id = "Creepster",
25+
Font = Font.fromName("Creepster"),
26+
Text = [[<font family="rbxasset://fonts/families/Creepster.json">Creepster</font>]]},
27+
{Id = "DenkOne",
28+
Font = Font.fromName("DenkOne"),
29+
Text = [[<font family="rbxasset://fonts/families/DenkOne.json">DenkOne</font>]]},
30+
{Id = "Fondamento",
31+
Font = Font.fromName("Fondamento"),
32+
Text = [[<font family="rbxasset://fonts/families/Fondamento.json">Fondamento</font>]]},
33+
{Id = "FredokaOne",
34+
Font = Font.fromName("FredokaOne"),
35+
Text = [[<font family="rbxasset://fonts/families/FredokaOne.json">FredokaOne</font>]]},
36+
{Id = "GothamSSm",
37+
Font = Font.fromName("GothamSSm"),
38+
Text = [[<font family="rbxasset://fonts/families/GothamSSm.json">Gotham SSm</font>]]},
39+
{Id = "GrenzeGotisch",
40+
Font = Font.fromName("GrenzeGotisch"),
41+
Text = [[<font family="rbxasset://fonts/families/GrenzeGotisch.json">Grenze Gotisch </font>]]},
42+
{Id = "Guru",
43+
Font = Font.fromName("Guru"),
44+
Text = [[<font family="rbxasset://fonts/families/Guru.json">Guru</font>]]},
45+
{Id = "HighwayGothic",
46+
Font = Font.fromName("HighwayGothic"),
47+
Text = [[<font family="rbxasset://fonts/families/HighwayGothic.json">Highway Gothic</font>]]},
48+
{Id = "Inconsolata",
49+
Font = Font.fromName("Inconsolata"),
50+
Text = [[<font family="rbxasset://fonts/families/Inconsolata.json">Inconsolata</font>]]},
51+
{Id = "IndieFlower",
52+
Font = Font.fromName("IndieFlower"),
53+
Text = [[<font family="rbxasset://fonts/families/IndieFlower.json">Indie Flower</font>]]},
54+
{Id = "JosefinSans",
55+
Font = Font.fromName("JosefinSans"),
56+
Text = [[<font family="rbxasset://fonts/families/JosefinSans.json">Josefin Sans</font>]]},
57+
{Id = "Jura",
58+
Font = Font.fromName("Jura"),
59+
Text = [[<font family="rbxasset://fonts/families/Jura.json">Jura</font>]]},
60+
{Id = "Kalam",
61+
Font = Font.fromName("Kalam"),
62+
Text = [[<font family="rbxasset://fonts/families/Kalam.json">Kalam</font>]]},
63+
{Id = "LuckiestGuy",
64+
Font = Font.fromName("LuckiestGuy"),
65+
Text = [[<font family="rbxasset://fonts/families/LuckiestGuy.json">Luckiest Guy</font>]]},
66+
{Id = "Merriweather",
67+
Font = Font.fromName("Merriweather"),
68+
Text = [[<font family="rbxasset://fonts/families/Merriweather.json">Merriweather</font>]]},
69+
{Id = "Michroma",
70+
Font = Font.fromName("Michroma"),
71+
Text = [[<font family="rbxasset://fonts/families/Michroma.json">Michroma</font>]]},
72+
{Id = "Nunito",
73+
Font = Font.fromName("Nunito"),
74+
Text = [[<font family="rbxasset://fonts/families/Nunito.json">Nunito</font>]]},
75+
{Id = "Oswald",
76+
Font = Font.fromName("Oswald"),
77+
Text = [[<font family="rbxasset://fonts/families/Oswald.json">Oswald</font>]]},
78+
{Id = "PatrickHand",
79+
Font = Font.fromName("PatrickHand"),
80+
Text = [[<font family="rbxasset://fonts/families/PatrickHand.json">Patrick Hand</font>]]},
81+
{Id = "PermanentMarker",
82+
Font = Font.fromName("PermanentMarker"),
83+
Text = [[<font family="rbxasset://fonts/families/PermanentMarker.json">Preduring Marker</font>]]},
84+
{Id = "PressStart2P",
85+
Font = Font.fromName("PressStart2P"),
86+
Text = [[<font family="rbxasset://fonts/families/PressStart2P.json">PressStart2P</font>]]},
87+
{Id = "Roboto",
88+
Font = Font.fromName("Roboto"),
89+
Text = [[<font family="rbxasset://fonts/families/Roboto.json">Roboto</font>]]},
90+
{Id = "RobotoCondensed",
91+
Font = Font.fromName("RobotoCondensed"),
92+
Text = [[<font family="rbxasset://fonts/families/RobotoCondensed.json">Roboto Condensed</font>]]},
93+
{Id = "RobotoMono",
94+
Font = Font.fromName("RobotoMono"),
95+
Text = [[<font family="rbxasset://fonts/families/RobotoMono.json">Roboto Mono</font>]]},
96+
{Id = "Sarpanch",
97+
Font = Font.fromName("Sarpanch"),
98+
Text = [[<font family="rbxasset://fonts/families/Sarpanch.json">Sarpanch</font>]]},
99+
{Id = "SourceSansPro",
100+
Font = Font.fromName("SourceSansPro"),
101+
Text = [[<font family="rbxasset://fonts/families/SourceSansPro.json">Source Sans Pro</font>]]},
102+
{Id = "SpecialElite",
103+
Font = Font.fromName("SpecialElite"),
104+
Text = [[<font size="12" family="rbxasset://fonts/families/SpecialElite.json">Special Elite</font>]]},
105+
{Id = "TitilliumWeb",
106+
Font = Font.fromName("TitilliumWeb"),
107+
Text = [[<font family="rbxasset://fonts/families/TitilliumWeb.json">Titillium Web</font>]]},
108+
{Id = "Ubuntu",
109+
Font = Font.fromName("Ubuntu"),
110+
Text = [[<font family="rbxasset://fonts/families/Ubuntu.json">Ubuntu</font>]]},
111+
{Id = "Zekton",
112+
Font = Font.fromName("Zekton"),
113+
Text = [[<font family="rbxasset://fonts/families/Zekton.json">Zekton</font>]]}
114+
115+
} -- Array of fonts, please fix this. I really hate this.
116+
117+
return FontFace
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
----------------------------------------
2+
--
3+
-- InsertGuiObject.lua
4+
--
5+
-- Creates a part from a GuiObject.
6+
--
7+
----------------------------------------
8+
9+
local ChangeHistoryService = game:GetService("ChangeHistoryService")
10+
local Selection = game:GetService("Selection")
11+
12+
GuiObjectPart = {}
13+
GuiObjectPart.__index = GuiObjectPart
14+
15+
function GuiObjectPart.new(label: GuiObject, lightInfluence: number, alwaysOnTop: boolean, autoLocalize: boolean)
16+
local self = {}
17+
setmetatable(self, GuiObjectPart)
18+
19+
local camera = workspace.CurrentCamera or Instance.new("Camera")
20+
21+
local part = Instance.new("Part")
22+
part.Name = "SignPart"
23+
part.Anchored = true
24+
part.Parent = workspace
25+
part.Transparency = 1
26+
part.Size = Vector3.new(4, 4, 0)
27+
part.Position = (camera.CFrame + camera.CFrame.LookVector * 15).Position
28+
local yCameraRotation = camera.CFrame.Rotation.Y
29+
local yRotation = math.floor(yCameraRotation/90 + 0.5) * 90
30+
part.Rotation = Vector3.new(0, yRotation, 0)
31+
32+
local surfaceGui = Instance.new("SurfaceGui")
33+
surfaceGui.SizingMode = Enum.SurfaceGuiSizingMode.PixelsPerStud
34+
surfaceGui.LightInfluence = lightInfluence or 0
35+
surfaceGui.AlwaysOnTop = alwaysOnTop or false
36+
surfaceGui.AutoLocalize = autoLocalize or true
37+
surfaceGui.Parent = part
38+
39+
local guiObject = label:Clone()
40+
guiObject.Parent = surfaceGui
41+
42+
Selection:Set({part})
43+
44+
ChangeHistoryService:SetWaypoint("Insert new SignPart")
45+
46+
self._part = part
47+
self._surfaceGui = surfaceGui
48+
self._guiObject = guiObject
49+
50+
return self
51+
end
52+
53+
function GuiObjectPart:GetPart()
54+
return self._part
55+
end
56+
57+
function GuiObjectPart:GetSurfaceGui()
58+
return self._surfaceGui
59+
end
60+
61+
function GuiObjectPart:GetGuiObject()
62+
return self._guiObject
63+
end
64+
65+
return GuiObjectPart

0 commit comments

Comments
 (0)