@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 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
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2014 Quenty
3
+ Copyright (c) 2014-2021 Quenty
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  ## Sprites
2
2
  <div align="center">
3
- <a href="http://quenty.github.io/api/">
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/badge/discord-nevermore-blue.svg" alt="Discord" />
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": "^3.2.0",
30
- "@quenty/loader": "^3.1.1",
31
- "@quenty/maid": "^2.0.1",
32
- "@quenty/uiobjectutils": "^2.0.0"
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": "^2.2.0"
35
+ "@quenty/string": "2.2.1-canary.238.2c4d310.0"
36
36
  },
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "87ab1435a59a05e7dd745db1dfcec26116d1d71d"
40
+ "gitHead": "2c4d310b84afd0570d89667dc5d4aa69a0ef304a"
41
41
  }
@@ -1,6 +1,6 @@
1
- ---
2
- -- @module DialogSlider.story
3
- -- @author Quenty
1
+ --[=[
2
+ @class DialogSlider.story
3
+ ]=]
4
4
 
5
5
  local require = require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).load(script)
6
6
 
@@ -1,4 +1,7 @@
1
- --- Generated Gestures with Python
1
+ --[=[
2
+ Generated Gestures with Python
3
+ @class Gestures
4
+ ]=]
2
5
 
3
6
  local parent = script:FindFirstAncestorWhichIsA("ModuleScript")
4
7
  local require = require(parent.Parent.loader).load(parent)
@@ -1,4 +1,7 @@
1
- --- Generated KeyboardDark with Python
1
+ --[=[
2
+ Generated KeyboardDark with Python
3
+ @class KeyboardDark
4
+ ]=]
2
5
 
3
6
  local parent = script:FindFirstAncestorWhichIsA("ModuleScript")
4
7
  local require = require(parent.Parent.loader).load(parent)
@@ -1,4 +1,7 @@
1
- --- Generated KeyboardLight with Python
1
+ --[=[
2
+ Generated KeyboardLight with Python
3
+ @class KeyboardLight
4
+ ]=]
2
5
 
3
6
  local parent = script:FindFirstAncestorWhichIsA("ModuleScript")
4
7
  local require = require(parent.Parent.loader).load(parent)
@@ -1,4 +1,7 @@
1
- --- Generated XboxOneDark with Python
1
+ --[=[
2
+ Generated XboxOneDark with Python
3
+ @class XboxOneDark
4
+ ]=]
2
5
 
3
6
  local parent = script:FindFirstAncestorWhichIsA("ModuleScript")
4
7
  local require = require(parent.Parent.loader).load(parent)
@@ -1,5 +1,7 @@
1
- --- Generated XboxOneLight with Python
2
- -- @author Quenty
1
+ --[=[
2
+ Generated XboxOneLight with Python
3
+ @class XboxOneLight
4
+ ]=]
3
5
 
4
6
  local parent = script:FindFirstAncestorWhichIsA("ModuleScript")
5
7
  local require = require(parent.Parent.loader).load(parent)
@@ -1,5 +1,7 @@
1
- --- Input image library
2
- -- @module InputImageLibrary
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
- -- @treturn Sprite
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
@@ -1,6 +1,6 @@
1
- ---
2
- -- @classmod AnimatedSpritesheet
3
- -- @author Quenty
1
+ --[=[
2
+ @class AnimatedSpritesheet
3
+ ]=]
4
4
 
5
5
  local require = require(script.Parent.loader).load(script)
6
6
 
@@ -1,6 +1,6 @@
1
- ---
2
- -- @module DialogSlider.story
3
- -- @author Quenty
1
+ --[=[
2
+ @class DialogSlider.story
3
+ ]=]
4
4
 
5
5
  local require = require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).load(script)
6
6
 
@@ -1,6 +1,6 @@
1
- ---
2
- -- @classmod AnimatedSpritesheetPlayer
3
- -- @author Quenty
1
+ --[=[
2
+ @class AnimatedSpritesheetPlayer
3
+ ]=]
4
4
 
5
5
  local require = require(script.Parent.loader).load(script)
6
6
 
@@ -1,5 +1,6 @@
1
- ---
2
- -- @classmod Sprite
1
+ --[=[
2
+ @class Sprite
3
+ ]=]
3
4
 
4
5
  local Sprite = {}
5
6
  Sprite.ClassName = "Sprite"
@@ -1,5 +1,7 @@
1
- --- Data model for sprite sheets
2
- -- @classmod Spritesheet
1
+ --[=[
2
+ Data model for sprite sheets
3
+ @class Spritesheet
4
+ ]=]
3
5
 
4
6
  local require = require(script.Parent.loader).load(script)
5
7