@quenty/sprites 13.16.2 → 13.16.3

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
+ ## [13.16.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/sprites@13.16.2...@quenty/sprites@13.16.3) (2025-04-10)
7
+
8
+ **Note:** Version bump only for package @quenty/sprites
9
+
10
+
11
+
12
+
13
+
6
14
  ## [13.16.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/sprites@13.16.0...@quenty/sprites@13.16.2) (2025-04-07)
7
15
 
8
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/sprites",
3
- "version": "13.16.2",
3
+ "version": "13.16.3",
4
4
  "description": "Spritesheet utility for Roblox including a built-in InputImageLibrary",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -26,10 +26,10 @@
26
26
  "Quenty"
27
27
  ],
28
28
  "dependencies": {
29
- "@quenty/baseobject": "^10.8.2",
30
- "@quenty/loader": "^10.8.2",
31
- "@quenty/maid": "^3.4.2",
32
- "@quenty/uiobjectutils": "^6.16.2"
29
+ "@quenty/baseobject": "^10.8.3",
30
+ "@quenty/loader": "^10.8.3",
31
+ "@quenty/maid": "^3.4.3",
32
+ "@quenty/uiobjectutils": "^6.16.3"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@quenty/string": "^3.3.3"
@@ -37,5 +37,5 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "64def70499ec067077ee39f279936b620b217847"
40
+ "gitHead": "b06c070ae91d5dab7bd8de6e290ad2caabb15d8f"
41
41
  }
@@ -4,20 +4,6 @@
4
4
  @class Sprite
5
5
  ]=]
6
6
 
7
- local Sprite = {}
8
- Sprite.ClassName = "Sprite"
9
- Sprite.__index = Sprite
10
-
11
- export type Sprite = typeof(setmetatable(
12
- {} :: {
13
- Texture: string,
14
- Size: Vector2,
15
- Position: Vector2,
16
- Name: string,
17
- },
18
- Sprite
19
- ))
20
-
21
7
  --[=[
22
8
  Data used to construct a sprite.
23
9
  @interface SpriteData
@@ -34,6 +20,20 @@ export type SpriteData = {
34
20
  Name: string,
35
21
  }
36
22
 
23
+ local Sprite = {}
24
+ Sprite.ClassName = "Sprite"
25
+ Sprite.__index = Sprite
26
+
27
+ export type Sprite = typeof(setmetatable(
28
+ {} :: {
29
+ Texture: string,
30
+ Size: Vector2,
31
+ Position: Vector2,
32
+ Name: string,
33
+ },
34
+ {} :: typeof({ __index = Sprite })
35
+ ))
36
+
37
37
  --[=[
38
38
  Constructs a new sprite
39
39
  @param data SpriteData
@@ -56,12 +56,14 @@ end
56
56
  @return Instance
57
57
  ]=]
58
58
  function Sprite:Style(gui: ImageLabel | ImageButton)
59
- assert(typeof(gui) == "Instance" and (gui:IsA("ImageLabel") or gui:IsA("ImageButton")), "Bad gui");
60
- (gui :: ImageLabel).Image = self.Texture;
61
- (gui :: ImageLabel).ImageRectOffset = self.Position;
62
- (gui :: ImageLabel).ImageRectSize = self.Size
59
+ assert(typeof(gui) == "Instance" and (gui:IsA("ImageLabel") or gui:IsA("ImageButton")), "Bad gui")
63
60
 
64
- return gui
61
+ local castGui: any = gui
62
+ castGui.Image = self.Texture
63
+ castGui.ImageRectOffset = self.Position
64
+ castGui.ImageRectSize = self.Size
65
+
66
+ return castGui
65
67
  end
66
68
 
67
69
  --[=[
@@ -17,7 +17,7 @@ export type Spritesheet = typeof(setmetatable(
17
17
  _texture: string,
18
18
  _sprites: { [any]: Sprite.Sprite },
19
19
  },
20
- Spritesheet
20
+ {} :: typeof({ __index = Spritesheet })
21
21
  ))
22
22
 
23
23
  --[=[