Skip to content

Commit c3f14ee

Browse files
committed
Update Tour
1 parent 6623169 commit c3f14ee

File tree

3 files changed

+23
-25
lines changed

3 files changed

+23
-25
lines changed

src/lang/en.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,14 @@
126126
"Title": "Language Selector",
127127
"Content": "The <span class='reference'>Language Selector</span> is where you can select which language you want to speak in, scrambling the messages sent while it is active."
128128
},
129-
"LanguageSelectorCheckbox": {
130-
"Title": "Language Selector's Checkbox",
131-
"Content": "The <span class='reference'>Checkbox</span> toggles the scrambling. Any user who unchecks it will speak as if the module was disabled."
132-
},
133129
"LanguageSelectorSelect": {
134130
"Title": "Language Selector's Dropdown",
135131
"Content": "The <span class='reference'>Dropdown</span> contains all the languages in your world.<br>Depending on your game system, the languages may have already been set, while in other game systems, you may need to configure them in the <span class='reference'>Game Settings</span>.<br>It will display languages between the ones Known and Unknown by your players' actors."
136132
},
133+
"LanguageSelectorSelect2": {
134+
"Title": "Language Selector's Dropdown",
135+
"Content": "Right-clicking the <span class='reference'>Dropdown</span> toggles the scrambling, allowing users to speak as if the module was disabled."
136+
},
137137
"LanguageSelectorPips": {
138138
"Title": "Language Selector's Pips",
139139
"Content": "A <span class='reference'>Pip</span>, similar to the ones shown on the Players List, will be displayed right next to known languages for each player who has at least one actor that understands it. Hovering over a Pip will display the user's name and the list of actors providing access to the language."

src/module/hooks.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ export default class PolyglotHooks {
2020
const lang = ev.target.value;
2121
game.polyglot.lastSelection = lang;
2222
});
23-
html.querySelector("input[id='polyglot-checkbox']")?.addEventListener("change", (ev) => {
24-
game.settings.set("polyglot", "checkbox", ev.target.checked);
25-
});
2623
game.polyglot.updateUserLanguages(html);
2724
}
2825

src/module/tour.js

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class PolyglotTour extends Tour {
1717
break;
1818
}
1919
case "user-config": {
20-
await game.user.sheet._render(true);
20+
await game.user.sheet.render(true);
2121
break;
2222
}
2323
case "end": {
@@ -74,73 +74,74 @@ export function registerTours() {
7474
title: "POLYGLOT.TOURS.Main.LanguageSelector.Title",
7575
content: "POLYGLOT.TOURS.Main.LanguageSelector.Content"
7676
},
77-
{
78-
id: "language-selector-checkbox",
79-
selector: ".polyglot-lang-select input[name=\"polyglot-checkbox\"]",
80-
title: "POLYGLOT.TOURS.Main.LanguageSelectorCheckbox.Title",
81-
content: "POLYGLOT.TOURS.Main.LanguageSelectorCheckbox.Content"
82-
},
8377
{
8478
id: "language-selector-dropdown",
85-
selector: ".polyglot-lang-select span.select2-container",
79+
selector: ".polyglot-lang-select .ts-wrapper",
8680
title: "POLYGLOT.TOURS.Main.LanguageSelectorSelect.Title",
8781
content: "POLYGLOT.TOURS.Main.LanguageSelectorSelect.Content"
8882
},
83+
{
84+
id: "language-selector-dropdown",
85+
selector: ".polyglot-lang-select .ts-wrapper",
86+
title: "POLYGLOT.TOURS.Main.LanguageSelectorSelect2.Title",
87+
content: "POLYGLOT.TOURS.Main.LanguageSelectorSelect2.Content"
88+
},
8989
{
9090
id: "language-selector-pips",
91-
selector: ".polyglot-lang-select span.select2-container",
91+
selector: ".polyglot-lang-select .ts-wrapper",
9292
title: "POLYGLOT.TOURS.Main.LanguageSelectorPips.Title",
9393
content: "POLYGLOT.TOURS.Main.LanguageSelectorPips.Content",
9494
actions: ["chat-message"]
9595
},
9696
{
9797
id: "chat-message",
98-
selector: "#chat-log .chat-message:last-of-type",
98+
selector: ".chat-log .chat-message:last-of-type",
9999
title: "POLYGLOT.TOURS.Main.ChatMessage.Title",
100100
content: "POLYGLOT.TOURS.Main.ChatMessage.Content",
101101
},
102102
{
103103
id: "chat-message-scrambled",
104-
selector: "#chat-log .chat-message:last-of-type .polyglot-original-text",
104+
selector: ".chat-log .chat-message:last-of-type .polyglot-original-text",
105105
title: "POLYGLOT.TOURS.Main.ChatMessageScrambled.Title",
106106
content: "POLYGLOT.TOURS.Main.ChatMessageScrambled.Content",
107107
},
108108
{
109109
id: "chat-message-translation",
110-
selector: "#chat-log .chat-message:last-of-type .polyglot-translation-text",
110+
selector: ".chat-log .chat-message:last-of-type .polyglot-translation-text",
111111
title: "POLYGLOT.TOURS.Main.ChatMessageTranslation.Title",
112112
content: "POLYGLOT.TOURS.Main.ChatMessageTranslation.Content",
113113
},
114114
{
115115
id: "chat-message-globe",
116-
selector: "#chat-log .chat-message:last-of-type .polyglot-message-language",
116+
selector: ".chat-log .chat-message:last-of-type .polyglot-message-language",
117117
title: "POLYGLOT.TOURS.Main.ChatMessageGlobe.Title",
118118
content: "POLYGLOT.TOURS.Main.ChatMessageGlobe.Content",
119119
},
120120
{
121121
id: "chat-message-ending",
122-
selector: "#chat-log .chat-message:last-of-type",
122+
selector: ".chat-log .chat-message:last-of-type",
123123
title: "POLYGLOT.TOURS.Main.ChatMessageEnding.Title",
124124
content: "POLYGLOT.TOURS.Main.ChatMessageEnding.Content",
125125
},
126126
{
127127
id: "players-list",
128-
selector: "#ui-left aside#players",
128+
selector: "#ui-left aside#players #players-active",
129129
title: "POLYGLOT.TOURS.Main.PlayersList.Title",
130130
content: "POLYGLOT.TOURS.Main.PlayersList.Content"
131131
},
132132
{
133133
id: "user-config",
134-
selector: ".window-app.user-config",
134+
selector: ".application.user-config",
135135
title: "POLYGLOT.TOURS.Main.UserConfig.Title",
136136
content: "POLYGLOT.TOURS.Main.UserConfig.Content",
137137
actions: ["user-config"]
138138
},
139139
{
140140
id: "user-config-select-character",
141-
selector: ".window-app.user-config .form-group:has(ul#characters)",
141+
selector: ".application.user-config fieldset:has(.form-group.character)",
142142
title: "POLYGLOT.TOURS.Main.UserConfigSelectCharacter.Title",
143-
content: "POLYGLOT.TOURS.Main.UserConfigSelectCharacter.Content"
143+
content: "POLYGLOT.TOURS.Main.UserConfigSelectCharacter.Content",
144+
actions: ["user-config"]
144145
},
145146
{
146147
id: "actor-ownership",

0 commit comments

Comments
 (0)