This repository was archived by the owner on Feb 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Overlay
7GrandDadPGN edited this page Dec 21, 2024
·
1 revision
local overlay = vape:CreateCustom({
Name = 'Text GUI',
Icon = getcustomasset('newvape/assets/textguiicon.png'),
Size = UDim2.fromOffset(16, 12),
Position = UDim2.fromOffset(12, 14)
})
Name | Type | Required | Description |
---|---|---|---|
Name | string | Yes | The name used for the overlay |
Icon | string | Yes | A rbxasset path used for the icon of the overlay |
Size | UDim2 | Yes | The size of the icon used in the overlay |
Position | UDim2 | No | The position of the icon used in the overlay |
Name | Returns | Description | Example |
---|---|---|---|
Expand | None | Toggles the collapsed state of the overlay | overlay:Expand() |
Pin | None | Toggles the pinned state of the overlay | overlay:Pin() |
Clean | None | A garbage clone of maid used to clean up connections & Instances when the overlay toggle state is set to false, use this inside of the callback | overlay:Clean(Instance.new('Part')); overlay:Clean(game.Loaded:Connect(function() end)) |
Name | Type | Description |
---|---|---|
Expanded | boolean | The current expanded state overlay.Expanded
|
Button | Toggle | The current overlay toggle overlay.Button.Enabled
|
Pinned | boolean | The current pinned state overlay.Pinned
|
Object | Instance | Returns the overlay tab that displays onscreen component.Object
|