-
Notifications
You must be signed in to change notification settings - Fork 4
/
mainView.xml
155 lines (140 loc) · 15.2 KB
/
mainView.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<?xml version="1.0"?>
<view icon="25984" title="TownCrier" width="600" height="400">
<control progid="DecalControls.Notebook" name="nbMain">
<page label="Webhooks">
<control progid="DecalControls.FixedLayout" clipped="">
<control progid="DecalControls.StaticText" name="txtName" left="5" top="10" width="60" height="18" text="Name" />
<control progid="DecalControls.Edit" name="edtName" left="80" top="10" width="100" height="18" />
<control progid="DecalControls.PushButton" name="btnWebhookRefresh" left="540" top="10" width="60" height="18" text="Refresh" />
<control progid="DecalControls.StaticText" name="txtURL" left="5" top="30" width="60" height="18" text="URL" />
<control progid="DecalControls.Edit" name="edtURL" left="80" top="30" width="515" height="18" />
<control progid="DecalControls.StaticText" name="txtMethod" left="5" top="50" width="160" height="18" text="Method" />
<control progid="DecalControls.Choice" name="chcMethod" left="80" top="50" width="60" height="18" />
<control progid="DecalControls.StaticText" name="txtUsage" left="150" top="50" width="300" height="18" text="Leave JSON blank if Method is GET." />
<control progid="DecalControls.StaticText" name="txtPayload" left="5" top="70" width="160" height="18" text="JSON" />
<control progid="DecalControls.Edit" name="edtPayload" left="80" top="70" width="515" height="18" />
<control progid="DecalControls.PushButton" name="btnWebhookAdd" left="5" top="100" width="100" height="18" text="Add Webhook" />
<control progid="DecalControls.StaticText" name="txtUsage" left="120" top="100" width="500" height="18" text="Put an @ symbol in your URL/JSON and they'll get replaced with your message." />
<control progid="DecalControls.StaticText" name="txtColName" left="8" top="130" width="80" height="18" text="Name" />
<control progid="DecalControls.StaticText" name="txtColURL" left="95" top="130" width="160" height="18" text="URL" />
<control progid="DecalControls.StaticText" name="txtColMethod" left="262" top="130" width="40" height="18" text="Method" />
<control progid="DecalControls.StaticText" name="txtColPayload" left="310" top="130" width="160" height="18" text="Payload" />
<control progid="DecalControls.StaticText" name="txtColTest" left="505" top="130" width="40" height="18" text="Test" />
<control progid="DecalControls.StaticText" name="txtColDelete" left="550" top="130" width="60" height="18" text="Delete" />
<control progid="DecalControls.List" name="lstWebhooks" left="5" top="150" width="590" height="200">
<column progid="DecalControls.TextColumn" name="colName" fixedwidth="80" />
<column progid="DecalControls.TextColumn" name="colURL" fixedwidth="160" />
<column progid="DecalControls.TextColumn" name="colMethod" fixedwidth="40" />
<column progid="DecalControls.TextColumn" name="colPayload" fixedwidth="190" />
<column progid="DecalControls.TextColumn" name="colTest" fixedwidth="40" />
<column progid="DecalControls.IconColumn" name="colDelete" fixedwidth="18" />
</control>
</control>
</page>
<page label="Triggers">
<control progid="DecalControls.Notebook" name="nbTriggers">
<page label="Events">
<control progid="DecalControls.FixedLayout" clipped="">
<control progid="DecalControls.StaticText" name="txtEventsEvent" left="5" top="10" width="60" height="18" text="Event" />
<control progid="DecalControls.Choice" name="chcEventTriggerEvent" left="80" top="10" width="200" height="18" />
<control progid="DecalControls.StaticText" name="txtEventsFilter" left="300" top="10" width="60" height="18" text="Filter" />
<control progid="DecalControls.Edit" name="edtEventsFilter" left="360" top="10" width="220" height="18" />
<control progid="DecalControls.StaticText" name="txtEventsWebhook" left="5" top="30" width="60" height="18" text="Webhook" />
<control progid="DecalControls.Choice" name="chcEventsWebhook" left="80" top="30" width="140" height="18" />
<control progid="DecalControls.PushButton" name="btnEventsWebhookRefresh" left="230" top="30" width="60" height="18" text="Refresh" />
<control progid="DecalControls.StaticText" name="txtEventsMessage" left="5" top="50" width="160" height="18" text="Message" />
<control progid="DecalControls.Edit" name="edtEventsMessage" left="80" top="50" width="515" height="18" />
<control progid="DecalControls.PushButton" name="btnEventTriggerAdd" left="5" top="80" width="120" height="18" text="Add Event Trigger" />
<control progid="DecalControls.StaticText" name="txtEventTriggerMessage" left="140" top="80" width="390" height="18" text="Leave Message blank for default. See Variables tab for more details." />
<control progid="DecalControls.StaticText" name="txtColEnabled" left="5" top="110" width="20" height="18" text="On?" />
<control progid="DecalControls.StaticText" name="txtColEvent" left="30" top="110" width="100" height="18" text="Event" />
<control progid="DecalControls.StaticText" name="txtColWebhook" left="135" top="110" width="100" height="18" text="Webhook" />
<control progid="DecalControls.StaticText" name="txtColMessage" left="230" top="110" width="100" height="18" text="Message" />
<control progid="DecalControls.StaticText" name="txtColDelete" left="555" top="110" width="60" height="18" text="Delete" />
<control progid="DecalControls.List" name="lstEventTriggers" left="5" top="130" width="590" height="200">
<column progid="DecalControls.CheckColumn" name="colEnabled" fixedwidth="20" />
<column progid="DecalControls.TextColumn" name="colEvent" fixedwidth="100" />
<column progid="DecalControls.TextColumn" name="colWebhook" fixedwidth="80" />
<column progid="DecalControls.TextColumn" name="colMessage" fixedwidth="325" />
<column progid="DecalControls.IconColumn" name="colDelete" fixedwidth="18" />
</control>
</control>
</page>
<page label="Timed">
<control progid="DecalControls.FixedLayout" clipped="">
<control progid="DecalControls.StaticText" name="txtTimersMinutes" left="5" top="10" width="60" height="18" text="Every" />
<control progid="DecalControls.Edit" name="edtTimedTriggerMinutes" left="80" top="10" width="40" height="18" />
<control progid="DecalControls.StaticText" name="txtTimersMinutes" left="130" top="10" width="60" height="18" text="minute(s)" />
<control progid="DecalControls.StaticText" name="txtTimersWebhook" left="5" top="30" width="60" height="18" text="Webhook" />
<control progid="DecalControls.Choice" name="chcTimedTriggerWebhook" left="80" top="30" width="140" height="18" />
<control progid="DecalControls.PushButton" name="btnTimedTriggerWebhookRefresh" left="230" top="30" width="60" height="18" text="Refresh" />
<control progid="DecalControls.StaticText" name="txtTimersMessage" left="5" top="50" width="100" height="18" text="Message" />
<control progid="DecalControls.Edit" name="edtTimedTriggerMessage" left="80" top="50" width="515" height="18" />
<control progid="DecalControls.PushButton" name="btnTimedTriggerAdd" left="5" top="80" width="120" height="18" text="Add Timer" />
<control progid="DecalControls.StaticText" name="txtTimedTriggerMessage" left="140" top="80" width="390" height="18" text="See Variables tab for more details on how to use the Message field." />
<control progid="DecalControls.StaticText" name="txtColEnabled" left="5" top="110" width="20" height="18" text="On?" />
<control progid="DecalControls.StaticText" name="txtColMinutes" left="30" top="110" width="40" height="18" text="Every" />
<control progid="DecalControls.StaticText" name="txtColWebhook" left="75" top="110" width="100" height="18" text="Webhook" />
<control progid="DecalControls.StaticText" name="txtColMessage" left="180" top="110" width="300" height="18" text="Message" />
<control progid="DecalControls.StaticText" name="txtColDelete" left="555" top="110" width="60" height="18" text="Delete" />
<control progid="DecalControls.List" name="lstTimedTriggers" left="5" top="130" width="590" height="200">
<column progid="DecalControls.CheckColumn" name="colEnabled" fixedwidth="20" />
<column progid="DecalControls.TextColumn" name="colMinutes" fixedwidth="40" />
<column progid="DecalControls.TextColumn" name="colWebhook" fixedwidth="100" />
<column progid="DecalControls.TextColumn" name="colMessage" fixedwidth="370" />
<column progid="DecalControls.IconColumn" name="colDelete" fixedwidth="18" />
</control>
</control>
</page>
<page label="Chat">
<control progid="DecalControls.FixedLayout" clipped="">
<control progid="DecalControls.StaticText" name="txtChatTriggerPattern" left="5" top="10" width="515" height="18" text="RegEx" />
<control progid="DecalControls.Edit" name="edtChatTriggerPattern" left="80" top="10" width="515" height="18" />
<control progid="DecalControls.StaticText" name="txtChatTriggerWebhook" left="5" top="30" width="60" height="18" text="Webhook" />
<control progid="DecalControls.Choice" name="chcChatTriggerWebhook" left="80" top="30" width="140" height="18" />
<control progid="DecalControls.PushButton" name="chcChatTriggerWebhookRefresh" left="230" top="30" width="60" height="18" text="Refresh" />
<control progid="DecalControls.StaticText" name="txtChatTriggerMessage" left="5" top="50" width="160" height="18" text="Message" />
<control progid="DecalControls.Edit" name="edtChatTriggerMessage" left="80" top="50" width="515" height="18" />
<control progid="DecalControls.PushButton" name="btnChatTriggerAdd" left="5" top="80" width="120" height="18" text="Add Chat Trigger" />
<control progid="DecalControls.StaticText" name="txtChatTriggerMessage" left="140" top="80" width="390" height="18" text="Leave Message blank for default. See Variables tab for more details." />
<control progid="DecalControls.StaticText" name="txtColEnabled" left="5" top="110" width="20" height="18" text="On?" />
<control progid="DecalControls.StaticText" name="txtColPattern" left="30" top="110" width="100" height="18" text="Pattern" />
<control progid="DecalControls.StaticText" name="txtColWebhook" left="135" top="110" width="100" height="18" text="Webhook" />
<control progid="DecalControls.StaticText" name="txtColMessage" left="230" top="110" width="100" height="18" text="Message" />
<control progid="DecalControls.StaticText" name="txtColDelete" left="555" top="110" width="60" height="18" text="Delete" />
<control progid="DecalControls.List" name="lstChatTriggers" left="5" top="130" width="590" height="200">
<column progid="DecalControls.CheckColumn" name="colEnabled" fixedwidth="20" />
<column progid="DecalControls.TextColumn" name="colPattern" fixedwidth="100" />
<column progid="DecalControls.TextColumn" name="colWebhook" fixedwidth="80" />
<column progid="DecalControls.TextColumn" name="colMessage" fixedwidth="325" />
<column progid="DecalControls.IconColumn" name="colDelete" fixedwidth="18" />
</control>
</control>
</page>
<page label="Profiles">
<control progid="DecalControls.FixedLayout" clipped="">
<control progid="DecalControls.StaticText" name="txtProfile" left="5" top="10" width="50" height="18" text="Profile" />
<control progid="DecalControls.Choice" name="chcProfile" left="50" top="10" width="120" height="18" />
<control progid="DecalControls.PushButton" name="btnProfileRefresh" left="175" top="10" width="60" height="18" text="Refresh" />
<control progid="DecalControls.PushButton" name="btnProfileCopyTo" left="50" top="30" width="70" height="18" text="Copy To" />
<control progid="DecalControls.PushButton" name="btnProfileClear" left="50" top="50" width="70" height="18" text="Clear" />
</control>
</page>
<page label="Variables">
<control progid="DecalControls.FixedLayout" clipped="">
<control progid="DecalControls.StaticText" name="txtVariablesMessage" left="10" top="10" width="580" height="200" text="In the Message field, you can make use of special variables to send yourself information about your character. You can use as many variables as you want in each Message and each variable starts with a '$' (e.g., $LOC gives your coordinates)." />
<control progid="DecalControls.StaticText" name="txtVariablesMessage" left="10" top="70" width="580" height="200" text="Available variables are $NAME, $SERVER, $LEVEL, $UXP (unassigned xp), $TXP (total XP), $HEALTH, $STAMINA, $MANA, $VITAE, $LOC (Your location), $DATETIME, $DATE, and $TIME. Example: 'Hello, $NAME' would print 'Hello, ' followed by your character's name." />
<control progid="DecalControls.StaticText" name="txtVariablesMessage" left="10" top="130" width="580" height="200" text="Event and Chat Triggers can also make use of a special variable, $EVENT, that lets you print the text of the event or chat message that triggered the webhook. For example, a Chat trigger with the Pattern 'You say' and a Message of '$EVENT' will send everything you say to your webhook. $EVENT does not work for TimedTriggers." />
<control progid="DecalControls.StaticText" name="txtVariablesMessage" left="10" top="210" width="580" height="200" text="If you use capture groups in your regular expressions, you can use numbered backreferences ($1 for first capture) as variables too." />
<control progid="DecalControls.StaticText" name="txtVariablesMessage" left="10" top="270" width="580" height="200" text="Variables also work in Chat Triggers' RegEx field. For example, to trigger a webhook when your exact name shows up in chat, set your RegEx to '$NAME'. The advantage to doing this is that it will work across characters if you used shared profiles." />
</control>
</page>
</control>
</page>
<page label="Help">
<control progid="DecalControls.FixedLayout" clipped="">
<control progid="DecalControls.StaticText" name="txtAbout" left="10" top="10" width="400" height="200" text="TownCrier was created by Kolth. For detailed information about how to use this plugin, visit https://github.com/amoeba/TownCrier. I'm also on most of the AC Discord servers as petridish and also on the TreeStats (https://treestats.net/) Discord. For settings and logs, navigate to C:\Users\{you}\Documents\Decal Plugins\TownCrier." />
</control>
</page>
</control>
</view>