@quenty/sprites 3.4.0 → 3.4.1-canary.238.2c4d310.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/LICENSE.md +1 -1
- package/README.md +2 -2
- package/package.json +7 -7
- package/src/Shared/InputImageLibrary/InputImageLibrary.story.lua +3 -3
- package/src/Shared/InputImageLibrary/Spritesheets/Guestures/All.lua +4 -1
- package/src/Shared/InputImageLibrary/Spritesheets/Keyboard/Dark.lua +4 -1
- package/src/Shared/InputImageLibrary/Spritesheets/Keyboard/Light.lua +4 -1
- package/src/Shared/InputImageLibrary/Spritesheets/XboxOne/Dark.lua +4 -1
- package/src/Shared/InputImageLibrary/Spritesheets/XboxOne/Light.lua +4 -2
- package/src/Shared/InputImageLibrary/init.lua +17 -4
- package/src/Shared/Sprite/AnimatedSpritesheet.lua +3 -3
- package/src/Shared/Sprite/AnimatedSpritesheet.story.lua +3 -3
- package/src/Shared/Sprite/AnimatedSpritesheetPlayer.lua +3 -3
- package/src/Shared/Sprite/Sprite.lua +3 -2
- package/src/Shared/Sprite/Spritesheet.lua +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.4.1-canary.238.2c4d310.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/sprites@3.4.0...@quenty/sprites@3.4.1-canary.238.2c4d310.0) (2021-12-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/sprites
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [3.4.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/sprites@3.3.0...@quenty/sprites@3.4.0) (2021-11-20)
|
|
7
15
|
|
|
8
16
|
|
package/LICENSE.md
CHANGED
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
## Sprites
|
|
2
2
|
<div align="center">
|
|
3
|
-
<a href="http://quenty.github.io/
|
|
3
|
+
<a href="http://quenty.github.io/NevermoreEngine/">
|
|
4
4
|
<img src="https://img.shields.io/badge/docs-website-green.svg" alt="Documentation" />
|
|
5
5
|
</a>
|
|
6
6
|
<a href="https://discord.gg/mhtGUS8">
|
|
7
|
-
<img src="https://img.shields.io/
|
|
7
|
+
<img src="https://img.shields.io/discord/385151591524597761?color=5865F2&label=discord&logo=discord&logoColor=white" alt="Discord" />
|
|
8
8
|
</a>
|
|
9
9
|
<a href="https://github.com/Quenty/NevermoreEngine/actions">
|
|
10
10
|
<img src="https://github.com/Quenty/NevermoreEngine/actions/workflows/build.yml/badge.svg" alt="Build and release status" />
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/sprites",
|
|
3
|
-
"version": "3.4.0",
|
|
3
|
+
"version": "3.4.1-canary.238.2c4d310.0",
|
|
4
4
|
"description": "Spritesheet utility for Roblox including a built-in InputImageLibrary",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
"Quenty"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@quenty/baseobject": "
|
|
30
|
-
"@quenty/loader": "
|
|
31
|
-
"@quenty/maid": "
|
|
32
|
-
"@quenty/uiobjectutils": "
|
|
29
|
+
"@quenty/baseobject": "3.2.1-canary.238.2c4d310.0",
|
|
30
|
+
"@quenty/loader": "3.1.2-canary.238.2c4d310.0",
|
|
31
|
+
"@quenty/maid": "2.0.2-canary.238.2c4d310.0",
|
|
32
|
+
"@quenty/uiobjectutils": "2.0.1-canary.238.2c4d310.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@quenty/string": "
|
|
35
|
+
"@quenty/string": "2.2.1-canary.238.2c4d310.0"
|
|
36
36
|
},
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "2c4d310b84afd0570d89667dc5d4aa69a0ef304a"
|
|
41
41
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
--[=[
|
|
2
|
+
Input image library
|
|
3
|
+
@class InputImageLibrary
|
|
4
|
+
]=]
|
|
3
5
|
|
|
4
6
|
local require = require(script.Parent.loader).load(script)
|
|
5
7
|
|
|
@@ -18,6 +20,11 @@ function InputImageLibrary.new(parentFolder)
|
|
|
18
20
|
return self
|
|
19
21
|
end
|
|
20
22
|
|
|
23
|
+
--[=[
|
|
24
|
+
Retrieves all the asset ids to preload
|
|
25
|
+
|
|
26
|
+
@return { string }
|
|
27
|
+
]=]
|
|
21
28
|
function InputImageLibrary:GetPreloadAssetIds()
|
|
22
29
|
local assets = {}
|
|
23
30
|
for _, platformSheets in pairs(self._spritesheets) do
|
|
@@ -39,8 +46,14 @@ function InputImageLibrary:_loadSpriteSheets(parentFolder)
|
|
|
39
46
|
end
|
|
40
47
|
end
|
|
41
48
|
|
|
42
|
-
|
|
43
|
-
|
|
49
|
+
--[=[
|
|
50
|
+
Retrieves a sprite from the library
|
|
51
|
+
|
|
52
|
+
@param index number -- The sprite index to get
|
|
53
|
+
@param preferredStyle string -- The preferred style type to retrieve this in
|
|
54
|
+
@param preferredPlatform string -- The preferred platform to get the sprite for
|
|
55
|
+
@return Sprite
|
|
56
|
+
]=]
|
|
44
57
|
function InputImageLibrary:GetSprite(index, preferredStyle, preferredPlatform)
|
|
45
58
|
local sheet = self:_pickSheet(index, preferredStyle, preferredPlatform)
|
|
46
59
|
if sheet then
|