@rbxts/touch-button 1.0.9 → 1.0.10
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.
|
@@ -9,7 +9,7 @@ local remotes = TS.import(script, script.Parent.Parent, "shared", "remotes").rem
|
|
|
9
9
|
local _charm = TS.import(script, TS.getModule(script, "@rbxts", "charm"))
|
|
10
10
|
local atom = _charm.atom
|
|
11
11
|
local effect = _charm.effect
|
|
12
|
-
local Trove = TS.import(script, TS.getModule(script, "@rbxts", "trove").
|
|
12
|
+
local Trove = TS.import(script, TS.getModule(script, "@rbxts", "sleitnick-trove").src)
|
|
13
13
|
local localPlayer = Players.LocalPlayer
|
|
14
14
|
local camera = Workspace.CurrentCamera
|
|
15
15
|
local touchGui
|
|
@@ -148,7 +148,7 @@ do
|
|
|
148
148
|
resizeBtn.Position = UDim2.fromScale(0.82, 0.82)
|
|
149
149
|
resizeBtn.Size = UDim2.fromOffset(18, 18)
|
|
150
150
|
resizeBtn.Parent = touchBtn
|
|
151
|
-
editingTrove:
|
|
151
|
+
editingTrove:Add(resizeBtn)
|
|
152
152
|
resizeBtn.InputBegan:Connect(function(input)
|
|
153
153
|
if (input.UserInputType ~= Enum.UserInputType.MouseButton1) and (input.UserInputType ~= Enum.UserInputType.Touch) then
|
|
154
154
|
return nil
|
|
@@ -179,7 +179,7 @@ do
|
|
|
179
179
|
endConn:Disconnect()
|
|
180
180
|
end)
|
|
181
181
|
end)
|
|
182
|
-
editingTrove:
|
|
182
|
+
editingTrove:Add(touchBtn.InputBegan:Connect(function(input)
|
|
183
183
|
if (input.UserInputType ~= Enum.UserInputType.MouseButton1) and (input.UserInputType ~= Enum.UserInputType.Touch) then
|
|
184
184
|
return nil
|
|
185
185
|
end
|
|
@@ -208,7 +208,7 @@ do
|
|
|
208
208
|
end)
|
|
209
209
|
end))
|
|
210
210
|
else
|
|
211
|
-
editingTrove:
|
|
211
|
+
editingTrove:Clean()
|
|
212
212
|
touchBtn.Active = lastActive
|
|
213
213
|
touchBtn.ImageColor3 = Color3.fromRGB(255, 255, 255)
|
|
214
214
|
iconImage.ImageColor3 = Color3.fromRGB(255, 255, 255)
|
|
@@ -254,7 +254,7 @@ do
|
|
|
254
254
|
btn.TextColor3 = Color3.new(1, 1, 1)
|
|
255
255
|
btn.TextSize = 16
|
|
256
256
|
btn.Parent = touchGui
|
|
257
|
-
editingTrove:
|
|
257
|
+
editingTrove:Add(btn)
|
|
258
258
|
local UICorner = Instance.new("UICorner")
|
|
259
259
|
UICorner.CornerRadius = UDim.new(0, 5)
|
|
260
260
|
UICorner.Parent = btn
|
|
@@ -279,7 +279,7 @@ do
|
|
|
279
279
|
self.configEditingMode(false)
|
|
280
280
|
end)
|
|
281
281
|
else
|
|
282
|
-
editingTrove:
|
|
282
|
+
editingTrove:Clean()
|
|
283
283
|
end
|
|
284
284
|
end)
|
|
285
285
|
end
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rbxts/touch-button",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "out/init.lua",
|
|
6
6
|
"scripts": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@rbxts/roblox-observers": "^1.0.10",
|
|
33
33
|
"@rbxts/services": "^1.5.5",
|
|
34
34
|
"@rbxts/sleitnick-signal": "^1.0.8",
|
|
35
|
-
"@rbxts/
|
|
36
|
-
"@rbxts/
|
|
35
|
+
"@rbxts/sleitnick-trove": "^1.0.0",
|
|
36
|
+
"@rbxts/t": "^3.2.1"
|
|
37
37
|
}
|
|
38
38
|
}
|