@rbxts/touch-button 1.0.4 → 1.0.5

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.
@@ -13,6 +13,7 @@ export declare class TouchButton {
13
13
  icon: string;
14
14
  size: UDim2;
15
15
  position: UDim2;
16
+ sinkInput?: boolean;
16
17
  onPress?: () => void;
17
18
  onRelease?: () => void;
18
19
  });
@@ -87,7 +87,7 @@ do
87
87
  local configPromise = remotes.getTouchButtonConfig:request(options.name)
88
88
  local touchBtn = Instance.new("ImageButton")
89
89
  touchBtn.Name = "TouchButton"
90
- touchBtn.Active = false
90
+ touchBtn.Active = not not options.sinkInput
91
91
  touchBtn.Image = "http://www.roblox.com/asset/?id=15340864550"
92
92
  touchBtn.ImageColor3 = Color3.fromRGB(255, 255, 255)
93
93
  touchBtn.ImageTransparency = 0.5
package/package.json CHANGED
@@ -1,38 +1,38 @@
1
- {
2
- "name": "@rbxts/touch-button",
3
- "version": "1.0.4",
4
- "description": "",
5
- "main": "out/init.lua",
6
- "scripts": {
7
- "build": "rbxtsc",
8
- "watch": "rbxtsc -w",
9
- "prepublishOnly": "npm run build"
10
- },
11
- "keywords": [],
12
- "author": "CriShoux",
13
- "license": "ISC",
14
- "type": "commonjs",
15
- "types": "out/index.d.ts",
16
- "files": [
17
- "out",
18
- "!**/*.tsbuildinfo"
19
- ],
20
- "publishConfig": {
21
- "access": "public"
22
- },
23
- "devDependencies": {
24
- "@rbxts/compiler-types": "^3.0.0-types.0",
25
- "@rbxts/types": "^1.0.848",
26
- "roblox-ts": "^3.0.0",
27
- "typescript": "^5.8.3"
28
- },
29
- "dependencies": {
30
- "@rbxts/charm": "^0.10.0",
31
- "@rbxts/remo": "^1.5.1",
32
- "@rbxts/roblox-observers": "^1.0.7",
33
- "@rbxts/services": "^1.5.5",
34
- "@rbxts/sleitnick-signal": "^1.0.8",
35
- "@rbxts/t": "^3.2.1",
36
- "@rbxts/trove": "^1.3.0"
37
- }
38
- }
1
+ {
2
+ "name": "@rbxts/touch-button",
3
+ "version": "1.0.5",
4
+ "description": "",
5
+ "main": "out/init.lua",
6
+ "scripts": {
7
+ "build": "rbxtsc",
8
+ "watch": "rbxtsc -w",
9
+ "prepublishOnly": "npm run build"
10
+ },
11
+ "keywords": [],
12
+ "author": "CriShoux",
13
+ "license": "ISC",
14
+ "type": "commonjs",
15
+ "types": "out/index.d.ts",
16
+ "files": [
17
+ "out",
18
+ "!**/*.tsbuildinfo"
19
+ ],
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
23
+ "devDependencies": {
24
+ "@rbxts/compiler-types": "^3.0.0-types.0",
25
+ "@rbxts/types": "^1.0.848",
26
+ "roblox-ts": "^3.0.0",
27
+ "typescript": "^5.8.3"
28
+ },
29
+ "dependencies": {
30
+ "@rbxts/charm": "^0.10.0",
31
+ "@rbxts/remo": "^1.5.1",
32
+ "@rbxts/roblox-observers": "^1.0.7",
33
+ "@rbxts/services": "^1.5.5",
34
+ "@rbxts/sleitnick-signal": "^1.0.8",
35
+ "@rbxts/t": "^3.2.1",
36
+ "@rbxts/trove": "^1.3.0"
37
+ }
38
+ }