@quenty/chatproviderservice 9.25.4-canary.559.9f38947.0 → 9.26.0-canary.0a5db80.0
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 +2 -10
- package/package.json +27 -27
- package/src/Client/Binders/HasChatTagsClient.lua +2 -1
- package/src/Client/ChatProviderServiceClient.lua +4 -8
- package/src/Client/Commands/ChatProviderCommandServiceClient.lua +4 -4
- package/src/Server/Binders/ChatTag.lua +8 -8
- package/src/Server/Binders/HasChatTags.lua +3 -3
- package/src/Server/Commands/ChatProviderCommandService.lua +55 -62
- package/src/Shared/Binders/ChatTagBase.lua +1 -1
- package/src/Shared/Binders/HasChatTagsBase.lua +4 -4
- package/src/Shared/ChatProviderTranslator.lua +4 -4
- package/src/Shared/ChatTagConstants.lua +7 -7
- package/src/Shared/Commands/ChatTagCmdrUtils.lua +3 -3
- package/src/Shared/Data/ChatTagDataUtils.lua +1 -1
- package/src/Shared/HasChatTagsConstants.lua +2 -2
- package/src/Shared/TextChannelUtils.lua +1 -1
- package/test/scripts/Client/ClientMain.client.lua +1 -1
- package/test/scripts/Server/ServerMain.server.lua +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,20 +3,12 @@
|
|
|
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
|
-
|
|
6
|
+
# [9.26.0-canary.0a5db80.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/chatproviderservice@9.25.2...@quenty/chatproviderservice@9.26.0-canary.0a5db80.0) (2025-05-10)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Bug Fixes
|
|
10
10
|
|
|
11
|
-
* Additional type checking updates ([
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
## [9.25.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/chatproviderservice@9.25.2...@quenty/chatproviderservice@9.25.3) (2025-04-10)
|
|
18
|
-
|
|
19
|
-
**Note:** Version bump only for package @quenty/chatproviderservice
|
|
11
|
+
* Additional type checking updates ([7e008c5](https://github.com/Quenty/NevermoreEngine/commit/7e008c58547bd00b5904e56541454a38c8d72ccc))
|
|
20
12
|
|
|
21
13
|
|
|
22
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/chatproviderservice",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.26.0-canary.0a5db80.0",
|
|
4
4
|
"description": "Provide wrapper around chat system to allow tags to be set",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,35 +25,35 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/attributeutils": "14.
|
|
29
|
-
"@quenty/baseobject": "10.
|
|
30
|
-
"@quenty/binder": "14.
|
|
31
|
-
"@quenty/brio": "14.
|
|
32
|
-
"@quenty/clienttranslator": "14.
|
|
33
|
-
"@quenty/cmdrservice": "13.
|
|
34
|
-
"@quenty/color3utils": "11.
|
|
35
|
-
"@quenty/datastore": "13.
|
|
36
|
-
"@quenty/instanceutils": "13.
|
|
37
|
-
"@quenty/loader": "10.
|
|
38
|
-
"@quenty/localizedtextutils": "12.
|
|
39
|
-
"@quenty/maid": "3.
|
|
40
|
-
"@quenty/permissionprovider": "14.
|
|
41
|
-
"@quenty/playerbinder": "14.
|
|
42
|
-
"@quenty/playerutils": "8.
|
|
43
|
-
"@quenty/preferredparentutils": "4.
|
|
44
|
-
"@quenty/promise": "10.
|
|
45
|
-
"@quenty/remoting": "12.
|
|
46
|
-
"@quenty/richtext": "1.3.
|
|
47
|
-
"@quenty/rx": "13.
|
|
48
|
-
"@quenty/rxbinderutils": "14.
|
|
49
|
-
"@quenty/servicebag": "11.
|
|
50
|
-
"@quenty/signal": "7.
|
|
28
|
+
"@quenty/attributeutils": "14.18.0-canary.0a5db80.0",
|
|
29
|
+
"@quenty/baseobject": "10.9.0-canary.0a5db80.0",
|
|
30
|
+
"@quenty/binder": "14.20.0-canary.0a5db80.0",
|
|
31
|
+
"@quenty/brio": "14.18.0-canary.0a5db80.0",
|
|
32
|
+
"@quenty/clienttranslator": "14.20.0-canary.0a5db80.0",
|
|
33
|
+
"@quenty/cmdrservice": "13.23.0-canary.0a5db80.0",
|
|
34
|
+
"@quenty/color3utils": "11.19.0-canary.0a5db80.0",
|
|
35
|
+
"@quenty/datastore": "13.21.0-canary.0a5db80.0",
|
|
36
|
+
"@quenty/instanceutils": "13.18.0-canary.0a5db80.0",
|
|
37
|
+
"@quenty/loader": "10.9.0-canary.0a5db80.0",
|
|
38
|
+
"@quenty/localizedtextutils": "12.18.0-canary.0a5db80.0",
|
|
39
|
+
"@quenty/maid": "3.5.0-canary.0a5db80.0",
|
|
40
|
+
"@quenty/permissionprovider": "14.20.0-canary.0a5db80.0",
|
|
41
|
+
"@quenty/playerbinder": "14.20.0-canary.0a5db80.0",
|
|
42
|
+
"@quenty/playerutils": "8.18.0-canary.0a5db80.0",
|
|
43
|
+
"@quenty/preferredparentutils": "4.4.0-canary.0a5db80.0",
|
|
44
|
+
"@quenty/promise": "10.11.0-canary.0a5db80.0",
|
|
45
|
+
"@quenty/remoting": "12.19.0-canary.0a5db80.0",
|
|
46
|
+
"@quenty/richtext": "1.3.2",
|
|
47
|
+
"@quenty/rx": "13.18.0-canary.0a5db80.0",
|
|
48
|
+
"@quenty/rxbinderutils": "14.20.0-canary.0a5db80.0",
|
|
49
|
+
"@quenty/servicebag": "11.12.0-canary.0a5db80.0",
|
|
50
|
+
"@quenty/signal": "7.11.0-canary.0a5db80.0",
|
|
51
51
|
"@quenty/string": "3.3.3",
|
|
52
|
-
"@quenty/table": "3.
|
|
53
|
-
"@quenty/valueobject": "13.
|
|
52
|
+
"@quenty/table": "3.8.0-canary.0a5db80.0",
|
|
53
|
+
"@quenty/valueobject": "13.18.0-canary.0a5db80.0"
|
|
54
54
|
},
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "0a5db8004684dc3e76fd5944599a22602d48cfa9"
|
|
59
59
|
}
|
|
@@ -9,10 +9,10 @@ local Players = game:GetService("Players")
|
|
|
9
9
|
local TextChatService = game:GetService("TextChatService")
|
|
10
10
|
|
|
11
11
|
local Maid = require("Maid")
|
|
12
|
-
local ServiceBag = require("ServiceBag")
|
|
13
12
|
local Signal = require("Signal")
|
|
14
13
|
local String = require("String")
|
|
15
14
|
local TextChannelUtils = require("TextChannelUtils")
|
|
15
|
+
local ServiceBag = require("ServiceBag")
|
|
16
16
|
|
|
17
17
|
local ChatProviderServiceClient = {}
|
|
18
18
|
ChatProviderServiceClient.ServiceName = "ChatProviderServiceClient"
|
|
@@ -60,7 +60,7 @@ function ChatProviderServiceClient:Start()
|
|
|
60
60
|
end
|
|
61
61
|
end
|
|
62
62
|
|
|
63
|
-
local textSource =
|
|
63
|
+
local textSource = textChatMessage.TextSource
|
|
64
64
|
if not textSource then
|
|
65
65
|
return
|
|
66
66
|
end
|
|
@@ -84,11 +84,7 @@ end
|
|
|
84
84
|
@param encodedMessageData string
|
|
85
85
|
@param channel TextChannel?
|
|
86
86
|
]=]
|
|
87
|
-
function ChatProviderServiceClient:SendSystemMessage(
|
|
88
|
-
message: string,
|
|
89
|
-
encodedMessageData: string?,
|
|
90
|
-
channel: TextChannel?
|
|
91
|
-
)
|
|
87
|
+
function ChatProviderServiceClient:SendSystemMessage(message: string, encodedMessageData: string?, channel: TextChannel?)
|
|
92
88
|
assert(typeof(message) == "string", "[ChatProviderServiceClient.SendSystemMessage] - Bad message")
|
|
93
89
|
|
|
94
90
|
if not channel then
|
|
@@ -122,4 +118,4 @@ function ChatProviderServiceClient:Destroy()
|
|
|
122
118
|
self._maid:DoCleaning()
|
|
123
119
|
end
|
|
124
120
|
|
|
125
|
-
return ChatProviderServiceClient
|
|
121
|
+
return ChatProviderServiceClient
|
|
@@ -7,10 +7,10 @@ local require = require(script.Parent.loader).load(script)
|
|
|
7
7
|
local Players = game:GetService("Players")
|
|
8
8
|
|
|
9
9
|
local ChatTagCmdrUtils = require("ChatTagCmdrUtils")
|
|
10
|
-
local Maid = require("Maid")
|
|
11
|
-
local ServiceBag = require("ServiceBag")
|
|
12
10
|
local Set = require("Set")
|
|
11
|
+
local Maid = require("Maid")
|
|
13
12
|
local String = require("String")
|
|
13
|
+
local ServiceBag = require("ServiceBag")
|
|
14
14
|
|
|
15
15
|
local ChatProviderCommandServiceClient = {}
|
|
16
16
|
ChatProviderCommandServiceClient.ServiceName = "ChatProviderCommandServiceClient"
|
|
@@ -39,7 +39,7 @@ function ChatProviderCommandServiceClient:_registerChatCommand(cmdr)
|
|
|
39
39
|
return
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
-
if String.startsWith(textChatMessage.Text, "/cmdr")
|
|
42
|
+
if String.startsWith(textChatMessage.Text, "/cmdr") then
|
|
43
43
|
cmdr:Show()
|
|
44
44
|
end
|
|
45
45
|
end))
|
|
@@ -54,4 +54,4 @@ function ChatProviderCommandServiceClient:GetChatTagKeyList()
|
|
|
54
54
|
return Set.toList(tagSet)
|
|
55
55
|
end
|
|
56
56
|
|
|
57
|
-
return ChatProviderCommandServiceClient
|
|
57
|
+
return ChatProviderCommandServiceClient
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
local require = require(script.Parent.loader).load(script)
|
|
6
6
|
|
|
7
|
-
local Binder = require("Binder")
|
|
8
7
|
local ChatTagBase = require("ChatTagBase")
|
|
8
|
+
local Binder = require("Binder")
|
|
9
9
|
|
|
10
10
|
local ChatTag = setmetatable({}, ChatTagBase)
|
|
11
11
|
ChatTag.ClassName = "ChatTag"
|
|
@@ -37,18 +37,18 @@ function ChatTag:_loadData()
|
|
|
37
37
|
return
|
|
38
38
|
end
|
|
39
39
|
|
|
40
|
-
self._maid
|
|
41
|
-
:GivePromise(self._playerDataStoreService:PromiseDataStore(player))
|
|
40
|
+
self._maid:GivePromise(self._playerDataStoreService:PromiseDataStore(player))
|
|
42
41
|
:Then(function(dataStore)
|
|
43
42
|
return dataStore:GetSubStore("chatTags"):GetSubStore(tagKey)
|
|
44
43
|
end)
|
|
45
44
|
:Then(function(dataStore)
|
|
46
|
-
return dataStore:Load("UserDisabled", false)
|
|
47
|
-
|
|
45
|
+
return dataStore:Load("UserDisabled", false)
|
|
46
|
+
:Then(function(userDisabled)
|
|
47
|
+
self.UserDisabled.Value = userDisabled
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
self._maid:GiveTask(dataStore:StoreOnValueChange("UserDisabled", self.UserDisabled))
|
|
50
|
+
end)
|
|
51
51
|
end)
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
-
return Binder.new("ChatTag", ChatTag)
|
|
54
|
+
return Binder.new("ChatTag", ChatTag)
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
local require = require(script.Parent.loader).load(script)
|
|
6
6
|
|
|
7
|
-
local BinderUtils = require("BinderUtils")
|
|
8
7
|
local ChatTagConstants = require("ChatTagConstants")
|
|
9
8
|
local ChatTagDataUtils = require("ChatTagDataUtils")
|
|
10
9
|
local HasChatTagsBase = require("HasChatTagsBase")
|
|
11
10
|
local HasChatTagsConstants = require("HasChatTagsConstants")
|
|
12
11
|
local LocalizedTextUtils = require("LocalizedTextUtils")
|
|
13
12
|
local PlayerBinder = require("PlayerBinder")
|
|
14
|
-
local ServiceBag = require("ServiceBag")
|
|
15
13
|
local String = require("String")
|
|
14
|
+
local BinderUtils = require("BinderUtils")
|
|
15
|
+
local ServiceBag = require("ServiceBag")
|
|
16
16
|
|
|
17
17
|
local HasChatTags = setmetatable({}, HasChatTagsBase)
|
|
18
18
|
HasChatTags.ClassName = "HasChatTags"
|
|
@@ -101,4 +101,4 @@ function HasChatTags:ClearTags()
|
|
|
101
101
|
end
|
|
102
102
|
end
|
|
103
103
|
|
|
104
|
-
return PlayerBinder.new("HasChatTags", HasChatTags)
|
|
104
|
+
return PlayerBinder.new("HasChatTags", HasChatTags)
|
|
@@ -8,10 +8,10 @@ local Players = game:GetService("Players")
|
|
|
8
8
|
|
|
9
9
|
local ChatTagCmdrUtils = require("ChatTagCmdrUtils")
|
|
10
10
|
local ChatTagDataUtils = require("ChatTagDataUtils")
|
|
11
|
-
local Maid = require("Maid")
|
|
12
11
|
local PlayerUtils = require("PlayerUtils")
|
|
13
|
-
local ServiceBag = require("ServiceBag")
|
|
14
12
|
local Set = require("Set")
|
|
13
|
+
local Maid = require("Maid")
|
|
14
|
+
local ServiceBag = require("ServiceBag")
|
|
15
15
|
|
|
16
16
|
local ChatProviderCommandService = {}
|
|
17
17
|
ChatProviderCommandService.ServiceName = "ChatProviderCommandService"
|
|
@@ -58,6 +58,7 @@ function ChatProviderCommandService:_createActivateChatCommand()
|
|
|
58
58
|
self._chatProviderService:AddChatCommand(command)
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
+
|
|
61
62
|
function ChatProviderCommandService:GetChatTagKeyList()
|
|
62
63
|
local tagSet = {}
|
|
63
64
|
for chatTag, _ in pairs(self._chatTagBinder:GetAllSet()) do
|
|
@@ -74,61 +75,58 @@ function ChatProviderCommandService:_registerCommands()
|
|
|
74
75
|
end)
|
|
75
76
|
|
|
76
77
|
self._cmdrService:RegisterCommand({
|
|
77
|
-
Name = "add-chat-tag"
|
|
78
|
-
Aliases = {}
|
|
79
|
-
Description = "Adds a tag to a player"
|
|
80
|
-
Group = "ChatTags"
|
|
78
|
+
Name = "add-chat-tag";
|
|
79
|
+
Aliases = { };
|
|
80
|
+
Description = "Adds a tag to a player";
|
|
81
|
+
Group = "ChatTags";
|
|
81
82
|
Args = {
|
|
82
83
|
{
|
|
83
|
-
Name = "Target"
|
|
84
|
-
Type = "player"
|
|
85
|
-
Description = "Player to add a tag for"
|
|
84
|
+
Name = "Target";
|
|
85
|
+
Type = "player";
|
|
86
|
+
Description = "Player to add a tag for";
|
|
86
87
|
},
|
|
87
88
|
{
|
|
88
|
-
Name = "TagText"
|
|
89
|
-
Type = "string"
|
|
90
|
-
Description = "Text for the tag to have"
|
|
89
|
+
Name = "TagText";
|
|
90
|
+
Type = "string";
|
|
91
|
+
Description = "Text for the tag to have";
|
|
91
92
|
},
|
|
92
93
|
{
|
|
93
|
-
Name = "TagColor"
|
|
94
|
-
Type = "color3"
|
|
95
|
-
Description = "Color for the tag to have"
|
|
96
|
-
Optional = true
|
|
97
|
-
Default = Color3.fromRGB(255, 170, 0)
|
|
94
|
+
Name = "TagColor";
|
|
95
|
+
Type = "color3";
|
|
96
|
+
Description = "Color for the tag to have";
|
|
97
|
+
Optional = true;
|
|
98
|
+
Default = Color3.fromRGB(255, 170, 0);
|
|
98
99
|
},
|
|
99
100
|
{
|
|
100
|
-
Name = "TagPriority"
|
|
101
|
-
Type = "number"
|
|
102
|
-
Description = "Priority for the tag to have"
|
|
103
|
-
Optional = true
|
|
104
|
-
Default = 0
|
|
101
|
+
Name = "TagPriority";
|
|
102
|
+
Type = "number";
|
|
103
|
+
Description = "Priority for the tag to have";
|
|
104
|
+
Optional = true;
|
|
105
|
+
Default = 0;
|
|
105
106
|
},
|
|
106
|
-
}
|
|
107
|
+
};
|
|
107
108
|
}, function(_context, player, tagText, tagColor, priority)
|
|
108
|
-
self._chatProviderService:PromiseAddChatTag(
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
TagColor = tagColor or Color3.fromRGB(255, 170, 0),
|
|
114
|
-
})
|
|
115
|
-
)
|
|
109
|
+
self._chatProviderService:PromiseAddChatTag(player, ChatTagDataUtils.createChatTagData({
|
|
110
|
+
TagText = tagText;
|
|
111
|
+
TagPriority = priority or 0;
|
|
112
|
+
TagColor = tagColor or Color3.fromRGB(255, 170, 0);
|
|
113
|
+
}))
|
|
116
114
|
|
|
117
115
|
return string.format("Added tag %q to player %q", tagText, PlayerUtils.formatName(player))
|
|
118
116
|
end)
|
|
119
117
|
|
|
120
118
|
self._cmdrService:RegisterCommand({
|
|
121
|
-
Name = "clear-chat-tags"
|
|
122
|
-
Aliases = {}
|
|
123
|
-
Description = "Clears chat tags on a player"
|
|
124
|
-
Group = "ChatTags"
|
|
119
|
+
Name = "clear-chat-tags";
|
|
120
|
+
Aliases = { };
|
|
121
|
+
Description = "Clears chat tags on a player";
|
|
122
|
+
Group = "ChatTags";
|
|
125
123
|
Args = {
|
|
126
124
|
{
|
|
127
|
-
Name = "Target"
|
|
128
|
-
Type = "player"
|
|
129
|
-
Description = "Player to add a tag for"
|
|
130
|
-
}
|
|
131
|
-
}
|
|
125
|
+
Name = "Target";
|
|
126
|
+
Type = "player";
|
|
127
|
+
Description = "Player to add a tag for";
|
|
128
|
+
}
|
|
129
|
+
};
|
|
132
130
|
}, function(_context, player)
|
|
133
131
|
self._chatProviderService:ClearChatTags(player)
|
|
134
132
|
|
|
@@ -136,28 +134,28 @@ function ChatProviderCommandService:_registerCommands()
|
|
|
136
134
|
end)
|
|
137
135
|
|
|
138
136
|
self._cmdrService:RegisterCommand({
|
|
139
|
-
Name = "set-chat-tag-disabled"
|
|
140
|
-
Aliases = {}
|
|
141
|
-
Description = "Sets if a chat tag is disabled for a player. This will save."
|
|
142
|
-
Group = "ChatTags"
|
|
137
|
+
Name = "set-chat-tag-disabled";
|
|
138
|
+
Aliases = { };
|
|
139
|
+
Description = "Sets if a chat tag is disabled for a player. This will save.";
|
|
140
|
+
Group = "ChatTags";
|
|
143
141
|
Args = {
|
|
144
142
|
{
|
|
145
|
-
Name = "Target"
|
|
146
|
-
Type = "player"
|
|
147
|
-
Description = "Player to disable or enable the tag for"
|
|
143
|
+
Name = "Target";
|
|
144
|
+
Type = "player";
|
|
145
|
+
Description = "Player to disable or enable the tag for";
|
|
148
146
|
},
|
|
149
147
|
{
|
|
150
|
-
Name = "TagKey"
|
|
151
|
-
Type = "chatTagKey"
|
|
152
|
-
Description = "Chat tag to disable"
|
|
148
|
+
Name = "TagKey";
|
|
149
|
+
Type = "chatTagKey";
|
|
150
|
+
Description = "Chat tag to disable";
|
|
153
151
|
},
|
|
154
152
|
{
|
|
155
|
-
Name = "ChatTagDisabled"
|
|
156
|
-
Type = "boolean"
|
|
157
|
-
Description = "Whether or not the tag is disabled"
|
|
158
|
-
Default = true
|
|
153
|
+
Name = "ChatTagDisabled";
|
|
154
|
+
Type = "boolean";
|
|
155
|
+
Description = "Whether or not the tag is disabled";
|
|
156
|
+
Default = true;
|
|
159
157
|
},
|
|
160
|
-
}
|
|
158
|
+
};
|
|
161
159
|
}, function(_context, player, chatTagKey, chatTagDisabled)
|
|
162
160
|
local hasChatTags = self._hasChatTagsBinder:Get(player)
|
|
163
161
|
|
|
@@ -172,12 +170,7 @@ function ChatProviderCommandService:_registerCommands()
|
|
|
172
170
|
|
|
173
171
|
chatTag.UserDisabled.Value = chatTagDisabled
|
|
174
172
|
|
|
175
|
-
return string.format(
|
|
176
|
-
"Chat tag %q on player %q `UserDisabled` set to %s",
|
|
177
|
-
chatTagKey,
|
|
178
|
-
PlayerUtils.formatName(player),
|
|
179
|
-
tostring(chatTagDisabled)
|
|
180
|
-
)
|
|
173
|
+
return string.format("Chat tag %q on player %q `UserDisabled` set to %s", chatTagKey, PlayerUtils.formatName(player), tostring(chatTagDisabled))
|
|
181
174
|
end)
|
|
182
175
|
end
|
|
183
176
|
|
|
@@ -185,4 +178,4 @@ function ChatProviderCommandService:Destroy()
|
|
|
185
178
|
self._maid:DoCleaning()
|
|
186
179
|
end
|
|
187
180
|
|
|
188
|
-
return ChatProviderCommandService
|
|
181
|
+
return ChatProviderCommandService
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
local require = require(script.Parent.loader).load(script)
|
|
7
7
|
|
|
8
8
|
local BaseObject = require("BaseObject")
|
|
9
|
-
local Brio = require("Brio")
|
|
10
|
-
local ChatTagDataUtils = require("ChatTagDataUtils")
|
|
11
|
-
local HasChatTagsConstants = require("HasChatTagsConstants")
|
|
12
|
-
local Observable = require("Observable")
|
|
13
9
|
local RxBinderUtils = require("RxBinderUtils")
|
|
14
10
|
local RxBrioUtils = require("RxBrioUtils")
|
|
15
11
|
local RxInstanceUtils = require("RxInstanceUtils")
|
|
16
12
|
local ValueObject = require("ValueObject")
|
|
13
|
+
local HasChatTagsConstants = require("HasChatTagsConstants")
|
|
14
|
+
local ChatTagDataUtils = require("ChatTagDataUtils")
|
|
15
|
+
local Observable = require("Observable")
|
|
16
|
+
local Brio = require("Brio")
|
|
17
17
|
|
|
18
18
|
local HasChatTagsBase = setmetatable({}, BaseObject)
|
|
19
19
|
HasChatTagsBase.ClassName = "HasChatTagsBase"
|
|
@@ -8,10 +8,10 @@ local require = require(script.Parent.loader).load(script)
|
|
|
8
8
|
local Table = require("Table")
|
|
9
9
|
|
|
10
10
|
return Table.readonly({
|
|
11
|
-
TAG_TEXT_ATTRIBUTE = "TagText"
|
|
12
|
-
TAG_COLOR_ATTRIBUTE = "TagColor"
|
|
13
|
-
TAG_KEY_ATTRIBUTE = "ChatTagKey"
|
|
14
|
-
TAG_LOCALIZED_TEXT_ATTRIBUTE = "TagLocalizedText"
|
|
15
|
-
TAG_PRIORITY_ATTRIBUTE = "TagPriority"
|
|
16
|
-
USER_DISABLED_ATTRIBUTE = "UserDisabled"
|
|
17
|
-
})
|
|
11
|
+
TAG_TEXT_ATTRIBUTE = "TagText";
|
|
12
|
+
TAG_COLOR_ATTRIBUTE = "TagColor";
|
|
13
|
+
TAG_KEY_ATTRIBUTE = "ChatTagKey";
|
|
14
|
+
TAG_LOCALIZED_TEXT_ATTRIBUTE = "TagLocalizedText";
|
|
15
|
+
TAG_PRIORITY_ATTRIBUTE = "TagPriority";
|
|
16
|
+
USER_DISABLED_ATTRIBUTE = "UserDisabled";
|
|
17
|
+
})
|
|
@@ -11,7 +11,7 @@ function ChatTagCmdrUtils.registerChatTagKeys(cmdr, chatProviderService)
|
|
|
11
11
|
local chatTagKeyList = chatProviderService:GetChatTagKeyList()
|
|
12
12
|
local find = cmdr.Util.MakeFuzzyFinder(chatTagKeyList)
|
|
13
13
|
return find(text)
|
|
14
|
-
end
|
|
14
|
+
end;
|
|
15
15
|
Validate = function(keys)
|
|
16
16
|
return #keys > 0, "No chat tag with that key could be found."
|
|
17
17
|
end,
|
|
@@ -20,11 +20,11 @@ function ChatTagCmdrUtils.registerChatTagKeys(cmdr, chatProviderService)
|
|
|
20
20
|
end,
|
|
21
21
|
Parse = function(keys)
|
|
22
22
|
return keys[1]
|
|
23
|
-
end
|
|
23
|
+
end;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
cmdr.Registry:RegisterType("chatTagKey", chatTagKey)
|
|
27
27
|
cmdr.Registry:RegisterType("chatTagKeys", cmdr.Util.MakeListableType(chatTagKey))
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
return ChatTagCmdrUtils
|
|
30
|
+
return ChatTagCmdrUtils
|