@quenty/gamescalingutils 13.18.2 → 13.18.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.18.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/gamescalingutils@13.18.2...@quenty/gamescalingutils@13.18.3) (2025-04-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/gamescalingutils
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [13.18.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/gamescalingutils@13.18.0...@quenty/gamescalingutils@13.18.2) (2025-04-07)
|
|
7
15
|
|
|
8
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/gamescalingutils",
|
|
3
|
-
"version": "13.18.
|
|
3
|
+
"version": "13.18.3",
|
|
4
4
|
"description": "Scale ratios for the UI on different devices",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@quenty/baseobject": "^10.8.
|
|
32
|
-
"@quenty/blend": "^12.18.
|
|
33
|
-
"@quenty/instanceutils": "^13.17.
|
|
34
|
-
"@quenty/loader": "^10.8.
|
|
35
|
-
"@quenty/rx": "^13.17.
|
|
36
|
-
"@quenty/valueobject": "^13.17.
|
|
31
|
+
"@quenty/baseobject": "^10.8.3",
|
|
32
|
+
"@quenty/blend": "^12.18.3",
|
|
33
|
+
"@quenty/instanceutils": "^13.17.3",
|
|
34
|
+
"@quenty/loader": "^10.8.3",
|
|
35
|
+
"@quenty/rx": "^13.17.3",
|
|
36
|
+
"@quenty/valueobject": "^13.17.3"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "b06c070ae91d5dab7bd8de6e290ad2caabb15d8f"
|
|
39
39
|
}
|
|
@@ -18,14 +18,13 @@ GameScalingHelper.__index = GameScalingHelper
|
|
|
18
18
|
|
|
19
19
|
export type GameScalingHelper = typeof(setmetatable(
|
|
20
20
|
{} :: {
|
|
21
|
-
_maid: _Maid.Maid,
|
|
22
21
|
_absoluteSize: ValueObject.ValueObject<Vector2>,
|
|
23
22
|
_isVertical: ValueObject.ValueObject<boolean>,
|
|
24
23
|
_isSmall: ValueObject.ValueObject<boolean>,
|
|
25
24
|
_screenGui: ScreenGui?,
|
|
26
25
|
},
|
|
27
|
-
{ __index = GameScalingHelper }
|
|
28
|
-
))
|
|
26
|
+
{} :: typeof({ __index = GameScalingHelper })
|
|
27
|
+
)) & BaseObject.BaseObject
|
|
29
28
|
|
|
30
29
|
function GameScalingHelper.new(screenGui: ScreenGui): GameScalingHelper
|
|
31
30
|
local self = setmetatable(BaseObject.new() :: any, GameScalingHelper)
|
|
@@ -82,15 +82,15 @@ end
|
|
|
82
82
|
Blend equivalent of rendering a UI Scale
|
|
83
83
|
|
|
84
84
|
@param props { Parent: Instance?, ScreenGui: ScreenGui }
|
|
85
|
-
@return Observable<
|
|
85
|
+
@return Observable<UIScale>
|
|
86
86
|
]=]
|
|
87
|
-
function GameScalingUtils.renderUIScale(props: Props): _Observable.Observable<
|
|
87
|
+
function GameScalingUtils.renderUIScale(props: Props): _Observable.Observable<UIScale>
|
|
88
88
|
assert(props.ScreenGui, "No screenGui")
|
|
89
89
|
|
|
90
90
|
return Blend.New("UIScale")({
|
|
91
91
|
Parent = props.Parent,
|
|
92
92
|
Scale = GameScalingUtils.observeUIScale(props.ScreenGui),
|
|
93
|
-
})
|
|
93
|
+
}) :: any
|
|
94
94
|
end
|
|
95
95
|
|
|
96
96
|
--[=[
|
|
@@ -108,7 +108,7 @@ function GameScalingUtils.renderDialogPadding(props: Props): _Observable.Observa
|
|
|
108
108
|
PaddingBottom = GameScalingUtils.observeDialogPadding(props.ScreenGui),
|
|
109
109
|
PaddingLeft = GameScalingUtils.observeDialogPadding(props.ScreenGui),
|
|
110
110
|
PaddingRight = GameScalingUtils.observeDialogPadding(props.ScreenGui),
|
|
111
|
-
})
|
|
111
|
+
}) :: any
|
|
112
112
|
end
|
|
113
113
|
|
|
114
114
|
--[=[
|