@rbxts/touch-button 1.0.0 → 1.0.1
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.
|
@@ -73,6 +73,11 @@ do
|
|
|
73
73
|
end
|
|
74
74
|
function TouchButton:constructor(options)
|
|
75
75
|
self.configUpdateScheduled = false
|
|
76
|
+
for _1, otherTouchBtn in TouchButton.touchButtons do
|
|
77
|
+
local _arg0 = otherTouchBtn.name ~= options.name
|
|
78
|
+
local _arg1 = `A TouchButton with the name {options.name} already exists`
|
|
79
|
+
assert(_arg0, _arg1)
|
|
80
|
+
end
|
|
76
81
|
self.name = options.name
|
|
77
82
|
self.defaultConfig = {
|
|
78
83
|
position = options.position,
|