-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
134 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
Satchel is a reskin of the default BackpackGui located in [CoreGui](https://create.roblox.com/docs/reference/engine/classes/CoreGui). Satchel acts very similar to the default backpack and is based on a fork on the default backpack. Behaviors between the two should remain the same with both of them managing the [Backpack](https://create.roblox.com/docs/reference/engine/classes/Backpack). | ||
|
||
## Summary | ||
|
||
### Attributes | ||
|
||
| Attribute | Description | Default | | ||
| :--- | :--- | :--- | | ||
| BackgroundColor3: [`Color3`](https://create.roblox.com/docs/reference/engine/datatypes/Color3) | Determines the background color of the default inventory window and slots. | `[25, 27, 29]` | | ||
| BackgroundTransparency: [`number`](https://create.roblox.com/docs/scripting/luau/numbers) | Determines the background transparency of the default inventory window and slots. | 0.3 | | ||
| CornerRadius: [`UDim`](https://create.roblox.com/docs/reference/engine/datatypes/UDim) | Determines the radius, in pixels, of the default inventory window and slots. | `0, 8` | | ||
| EquipBorderColor3: [`Color3`](https://create.roblox.com/docs/reference/engine/datatypes/Color3) | Determines the color of the equip border when a slot is equipped. | `[255, 255, 255]` | | ||
| EquipBorderSizePixel: [`number`](https://create.roblox.com/docs/scripting/luau/numbers) | Determines the pixel width of the equip border when a slot is equipped. | `5` | | ||
| InsetIconPadding: [`boolean`](https://create.roblox.com/docs/scripting/luau/booleans) | Determines whether or not the tool icon is padded in the default inventory window and slots. | True | | ||
| OutlineEquipBorder: [`boolean`](https://create.roblox.com/docs/scripting/luau/booleans) | Determines whether or not the equip border is outline or inset when a slot is equipped. | True | | ||
| TextColor3: [`Color3`](https://create.roblox.com/docs/reference/engine/datatypes/Color3) | Determines the color of the text in default inventory window and slots. | `[255, 255, 255]` | | ||
| TextSize: [`number`](https://create.roblox.com/docs/scripting/luau/numbers) | Determines the size of the text in the default inventory window and slots. | `14` | | ||
| TextStrokeColor3: [`Color3`](https://create.roblox.com/docs/reference/engine/datatypes/Color3) | Determines the color of the text stroke of text in default inventory window and slots. | `[0, 0, 0]` | | ||
| TextStrokeTransparency: [`number`](https://create.roblox.com/docs/scripting/luau/numbers) | Determines the transparency of the text stroke of text in default chat window and slots. | 0.5 | | ||
|
||
### Methods | ||
|
||
| IsOpened(): [`boolean`](https://create.roblox.com/docs/scripting/luau/booleans) | | ||
| :--- | | ||
| Returns whether the inventory is opened or not. | | ||
|
||
| SetBackpackEnabled(enabled: boolean): `void` | | ||
| :--- | | ||
| Sets whether the backpack gui is enabled or disabled. | | ||
|
||
| GetBackpackEnabled(): [`boolean`](https://create.roblox.com/docs/scripting/luau/booleans) | | ||
| :--- | | ||
| Returns whether the backpack gui is enabled or disabled. | | ||
|
||
| GetStateChangedEvent(): [`RBXScriptSignal`](https://create.roblox.com/docs/reference/engine/datatypes/RBXScriptSignal) | | ||
| :--- | | ||
| Returns a signal that fires when the inventory is opened or closed. | | ||
|
||
## Attributes | ||
|
||
### BackgroundColor3 | ||
|
||
Determines the background color of the default inventory window and slots. Changing this will update the background color for all elements excluding the search box background for visibility purposes. | ||
|
||
### BackgroundTransparency | ||
|
||
Determines the background transparency of the default inventory window and slots. This will change how the hot bar looks in its locked state and the inventory background. | ||
|
||
### CornerRadius | ||
|
||
Determines the radius, in pixels, of the default inventory window and slots. This will affect all elements with a visible rounded corner. The corner radius for the search bar is calculated automatically based on this value. | ||
|
||
### EquipBorderColor3 | ||
|
||
Determines the color of the equip border when a slot is equipped. The drag outline color of the slot will not changed by this. | ||
|
||
### EquipBorderSizePixel | ||
|
||
Determines the pixel width of the equip border when a slot is equipped. This additionally controls the padding of tool icons. | ||
|
||
### InsetIconPadding | ||
|
||
Determines whether or not the tool icon is padded in the default inventory window and slots. Changing this will change how the tool icon is padded in the slot or not. | ||
|
||
### OutlineEquipBorder | ||
|
||
Determines whether or not the equip border is outline or inset when a slot is equipped. Changing this will make the equip border either border will outline or inset the slot. | ||
|
||
### TextColor3 | ||
|
||
Determines the color of the text in default inventory window and slots. This will change the color of all text. | ||
|
||
### TextSize | ||
|
||
Determines the size of the text in the default inventory window and slots. This will change the text size of the tool names and will not change other text like search text, hotkey number, and gamepad hints. | ||
|
||
### TextStrokeColor3 | ||
|
||
Determines the color of the text stroke of text in default inventory window and slots. This will change the color of all text strokes which are visible. | ||
|
||
### TextStrokeTransparency | ||
|
||
Determines the transparency of the text stroke of text in default chat window and slots. This will change all text strokes in which text strokes are visible. | ||
|
||
## Methods | ||
|
||
### IsOpened | ||
|
||
Returns whether the inventory is opened or not. | ||
|
||
#### Returns | ||
|
||
``` | ||
boolean | ||
``` | ||
|
||
### SetBackpackEnabled | ||
|
||
Sets whether the backpack gui is enabled or disabled. | ||
|
||
#### Parameters | ||
|
||
``` | ||
enabled: boolean | ||
``` | ||
|
||
#### Returns | ||
|
||
``` | ||
void | ||
``` | ||
|
||
### GetBackpackEnabled | ||
|
||
Returns whether the backpack gui is enabled or disabled. | ||
|
||
#### Returns | ||
|
||
``` | ||
boolean | ||
``` | ||
|
||
### GetStateChangedEvent | ||
|
||
Returns a signal that fires when the inventory is opened or closed. | ||
|
||
#### Returns | ||
|
||
``` | ||
RBXScriptSignal | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters