Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Add missing Enums #210

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/luacov.*.out
/luacov.*.out
21 changes: 1 addition & 20 deletions FEATURES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,6 @@ Lemur does not aim to provide full coverage of all Roblox APIs. Coverage progres

This document should remain up-to-date with current API coverage and status.

## Implemented Enums
- ConnectionState
- DataStoreRequestType
- EasingDirection
- EasingStyle
- Font
- HorizontalAlignment
- Platform
- PlaybackState
- ScaleType
- ScrollingDirection
- SizeConstraint
- SortOrder
- TextXAlignment
- TextYAlignment
- ThumbnailSize
- ThumbnailType
- VerticalAlignment
- VirtualInputMode

## Implemented Globals
* require
* script
Expand All @@ -37,6 +17,7 @@ This document should remain up-to-date with current API coverage and status.
* warn

## Implemented Types
* All Enums
* Color3
* Color3.new()
* Color3.new(r, g, b)
Expand Down
9 changes: 9 additions & 0 deletions lib/Enum/ActionType.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
local createEnum = import("../createEnum")

return createEnum("ActionType", {
Nothing = 0,
Pause = 1,
Lose = 2,
Draw = 3,
Win = 4,
})
7 changes: 7 additions & 0 deletions lib/Enum/ActuatorRelativeTo.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
local createEnum = import("../createEnum")

return createEnum("ActuatorRelativeTo", {
Attachment0 = 0,
Attachment1 = 1,
World = 2,
})
7 changes: 7 additions & 0 deletions lib/Enum/ActuatorType.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
local createEnum = import("../createEnum")

return createEnum("ActuatorType", {
None = 0,
Motor = 1,
Servo = 2,
})
6 changes: 6 additions & 0 deletions lib/Enum/AlignType.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
local createEnum = import("../createEnum")

return createEnum("AlignType", {
Parallel = 0,
Perpendicular = 1,
})
8 changes: 8 additions & 0 deletions lib/Enum/AnimationPriority.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
local createEnum = import("../createEnum")

return createEnum("AnimationPriority", {
Idle = 0,
Movement = 1,
Action = 2,
Core = 1000,
})
15 changes: 15 additions & 0 deletions lib/Enum/AppShellActionType.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
local createEnum = import("../createEnum")

return createEnum("AppShellActionType", {
None = 0,
OpenApp = 1,
TapChatTab = 2,
TapConversationEntry = 3,
TapAvatarTab = 4,
ReadConversation = 5,
TapGamePageTab = 6,
TapHomePageTab = 7,
GamePageLoaded = 8,
HomePageLoaded = 9,
AvatarEditorPageLoaded = 10,
})
6 changes: 6 additions & 0 deletions lib/Enum/AspectType.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
local createEnum = import("../createEnum")

return createEnum("AspectType", {
FitWithinMaxSize = 0,
ScaleWithParentSize = 1,
})
6 changes: 6 additions & 0 deletions lib/Enum/AssetFetchStatus.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
local createEnum = import("../createEnum")

return createEnum("AssetFetchStatus", {
Success = 0,
Failure = 1,
})
48 changes: 48 additions & 0 deletions lib/Enum/AssetType.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
local createEnum = import("../createEnum")

return createEnum("AssetType", {
Image = 1,
TeeShirt = 2,
Audio = 3,
Mesh = 4,
Lua = 5,
Hat = 8,
Place = 9,
Model = 10,
Shirt = 11,
Pants = 12,
Decal = 13,
Head = 17,
Face = 18,
Gear = 19,
Badge = 21,
Animation = 24,
Torso = 27,
RightArm = 28,
LeftArm = 29,
LeftLeg = 30,
RightLeg = 31,
Package = 32,
GamePass = 34,
Plugin = 38,
MeshPart = 40,
HairAccessory = 41,
FaceAccessory = 42,
NeckAccessory = 43,
ShoulderAccessory = 44,
FrontAccessory = 45,
BackAccessory = 46,
WaistAccessory = 47,
ClimbAnimation = 48,
DeathAnimation = 49,
FallAnimation = 50,
IdleAnimation = 51,
JumpAnimation = 52,
RunAnimation = 53,
SwimAnimation = 54,
WalkAnimation = 55,
PoseAnimation = 56,
EarAccessory = 57,
EyeAccessory = 58,
EmoteAnimation = 61,
})
8 changes: 8 additions & 0 deletions lib/Enum/AvatarContextMenuOption.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
local createEnum = import("../createEnum")

return createEnum("AvatarContextMenuOption", {
Friend = 0,
Chat = 1,
Emote = 2,
InspectMenu = 3,
})
6 changes: 6 additions & 0 deletions lib/Enum/AvatarJointPositionType.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
local createEnum = import("../createEnum")

return createEnum("AvatarJointPositionType", {
Fixed = 0,
ArtistIntent = 1,
})
7 changes: 7 additions & 0 deletions lib/Enum/Axis.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
local createEnum = import("../createEnum")

return createEnum("Axis", {
X = 0,
Y = 1,
Z = 2,
})
9 changes: 9 additions & 0 deletions lib/Enum/BinType.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
local createEnum = import("../createEnum")

return createEnum("BinType", {
Script = 0,
GameTool = 1,
Grab = 2,
Clone = 3,
Hammer = 4,
})
10 changes: 10 additions & 0 deletions lib/Enum/BodyPart.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
local createEnum = import("../createEnum")

return createEnum("BodyPart", {
Head = 0,
Torso = 1,
LeftArm = 2,
RightArm = 3,
LeftLeg = 4,
RightLeg = 5,
})
21 changes: 21 additions & 0 deletions lib/Enum/BodyPartR15.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
local createEnum = import("../createEnum")

return createEnum("BodyPartR15", {
Head = 0,
UpperTorso = 1,
LowerTorso = 2,
LeftFoot = 3,
LeftLowerLeg = 4,
LeftUpperLeg = 5,
RightFoot = 6,
RightLowerLeg = 7,
RightUpperLeg = 8,
LeftHand = 9,
LeftLowerArm = 10,
LeftUpperArm = 11,
RightHand = 12,
RightLowerArm = 13,
RightUpperArm = 14,
RootPart = 15,
Unknown = 17,
})
7 changes: 7 additions & 0 deletions lib/Enum/BorderMode.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
local createEnum = import("../createEnum")

return createEnum("BorderMode", {
Outline = 0,
Middle = 1,
Inset = 2,
})
8 changes: 8 additions & 0 deletions lib/Enum/BreakReason.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
local createEnum = import("../createEnum")

return createEnum("BreakReason", {
Other = 0,
Error = 1,
UserBreakpoint = 3,
SpecialBreakpoint = 2,
})
6 changes: 6 additions & 0 deletions lib/Enum/Button.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
local createEnum = import("../createEnum")

return createEnum("Button", {
Jump = 32,
Dismount = 8,
})
10 changes: 10 additions & 0 deletions lib/Enum/ButtonStyle.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
local createEnum = import("../createEnum")

return createEnum("ButtonStyle", {
Custom = 0,
RobloxButtonDefault = 1,
RobloxButton = 2,
RobloxRoundButton = 3,
RobloxRoundDefaultButton = 4,
RobloxRoundDropdownButton = 5,
})
6 changes: 6 additions & 0 deletions lib/Enum/CameraMode.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
local createEnum = import("../createEnum")

return createEnum("CameraMode", {
Classic = 0,
LockFirstPerson = 1,
})
6 changes: 6 additions & 0 deletions lib/Enum/CameraPanMode.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
local createEnum = import("../createEnum")

return createEnum("CameraPanMode", {
Classic = 0,
EdgeBump = 1,
})
12 changes: 12 additions & 0 deletions lib/Enum/CameraType.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
local createEnum = import("../createEnum")

return createEnum("CameraType", {
Fixed = 0,
Watch = 2,
Attach = 1,
Track = 3,
Follow = 4,
Custom = 5,
Scriptable = 6,
Orbital = 7,
})
9 changes: 9 additions & 0 deletions lib/Enum/CellBlock.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
local createEnum = import("../createEnum")

return createEnum("CellBlock", {
Solid = 0,
VerticalWedge = 1,
CornerWedge = 2,
InverseCornerWedge = 3,
HorizontalWedge = 4,
})
22 changes: 22 additions & 0 deletions lib/Enum/CellMaterial.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
local createEnum = import("../createEnum")

return createEnum("CellMaterial", {
Empty = 0,
Grass = 1,
Sand = 2,
Brick = 3,
Granite = 4,
Asphalt = 5,
Iron = 6,
Aluminum = 7,
Gold = 8,
WoodPlank = 9,
WoodLog = 10,
Gravel = 11,
CinderBlock = 12,
MossyStone = 13,
Cement = 14,
RedPlastic = 15,
BluePlastic = 16,
Water = 17,
})
8 changes: 8 additions & 0 deletions lib/Enum/CellOrientation.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
local createEnum = import("../createEnum")

return createEnum("CellOrientation", {
NegZ = 0,
X = 1,
Z = 2,
NegX = 3,
})
8 changes: 8 additions & 0 deletions lib/Enum/CenterDialogType.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
local createEnum = import("../createEnum")

return createEnum("CenterDialogType", {
UnsolicitedDialog = 1,
PlayerInitiatedDialog = 2,
ModalDialog = 3,
QuitDialog = 4,
})
8 changes: 8 additions & 0 deletions lib/Enum/ChatCallbackType.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
local createEnum = import("../createEnum")

return createEnum("ChatCallbackType", {
OnCreatingChatWindow = 1,
OnClientSendingMessage = 2,
OnClientFormattingMessage = 3,
OnServerReceivingMessage = 17,
})
8 changes: 8 additions & 0 deletions lib/Enum/ChatColor.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
local createEnum = import("../createEnum")

return createEnum("ChatColor", {
Blue = 0,
Green = 1,
Red = 2,
White = 3,
})
6 changes: 6 additions & 0 deletions lib/Enum/ChatMode.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
local createEnum = import("../createEnum")

return createEnum("ChatMode", {
Menu = 0,
TextAndMenu = 1,
})
7 changes: 7 additions & 0 deletions lib/Enum/ChatPrivacyMode.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
local createEnum = import("../createEnum")

return createEnum("ChatPrivacyMode", {
AllUsers = 0,
NoOne = 1,
Friends = 2,
})
7 changes: 7 additions & 0 deletions lib/Enum/ChatStyle.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
local createEnum = import("../createEnum")

return createEnum("ChatStyle", {
Classic = 0,
Bubble = 1,
ClassicAndBubble = 2,
})
7 changes: 7 additions & 0 deletions lib/Enum/CollisionFidelity.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
local createEnum = import("../createEnum")

return createEnum("CollisionFidelity", {
Default = 0,
Hull = 1,
Box = 2,
})
8 changes: 8 additions & 0 deletions lib/Enum/ComputerCameraMovementMode.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
local createEnum = import("../createEnum")

return createEnum("ComputerCameraMovementMode", {
Default = 0,
Follow = 2,
Classic = 1,
Orbital = 3,
})
Loading