Skip to content

Commit 06a2484

Browse files
committed
Foundry v14.362
1 parent 7cc1cf0 commit 06a2484

4 files changed

Lines changed: 83 additions & 12 deletions

File tree

en/en.json

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,6 +1405,7 @@
14051405
"TitleImageVideo": "Image or Video Browser",
14061406
"TitleImage": "Image Browser",
14071407
"TitleVideo": "Video Browser",
1408+
"TitleTexture": "Texture Browser",
14081409
"TitleAudio": "Audio Browser",
14091410
"TitleText": "Document Browser",
14101411
"TitleGraphics": "3D Browser",
@@ -1828,7 +1829,10 @@
18281829
"MODMANAGE": {
18291830
"Bugs": "Bug or Issue Reports",
18301831
"DeactivateAll": "Deactivate All Modules",
1831-
"Readme": "Module Documentation",
1832+
"Readme": "Documentation",
1833+
"Author": "Author",
1834+
"Authors": "Authors",
1835+
"URL": "URL",
18321836
"Title": "Module Management",
18331837
"Instructions": "Use this form to configure which Modules are active within your current World. Submitting changes to active modules will cause the current session to reload.",
18341838
"View": "The Modules listed below are currently active within this World.",
@@ -1947,6 +1951,7 @@
19471951
"PLAYLIST.SoundPreload": "Preload Sound",
19481952
"PLAYLIST.SoundResume": "Resume Sound",
19491953
"PLAYLIST.SoundStop": "Sound Stop",
1954+
"PLAYLIST.Preload": "Preload Sounds",
19501955
"PLAYLIST.BulkImport": {
19511956
"Title": "Bulk Import Sounds",
19521957
"Hint": "Select a folder containing the sounds to be imported.",
@@ -2037,11 +2042,12 @@
20372042
"SCENE.Loading": "Loading {name}",
20382043
"SCENE.Notes": "Scene Notes",
20392044
"SCENE.Perception": "Perception",
2040-
"SCENE.Preload": "Preload Scene",
2045+
"SCENE.Preload": "Preload",
20412046
"SCENE.Presentation": "Presentation",
20422047
"SCENE.Properties": "Scene Properties",
20432048
"SCENE.View": "View",
20442049
"SCENE.ShiftBG": "Shift",
2050+
"SCENE.PullEveryone": "Pull Everyone",
20452051
"SCENE.ToggleNav": "Toggle Navigation",
20462052
"SCENE.FogModeChangeMessage": "Fog exploration mode has changed. This will reload fog exploration and reset vision.",
20472053
"SCENE.Transition": {
@@ -2234,8 +2240,7 @@
22342240
"label": "Add Level"
22352241
},
22362242
"Edit": "Edit Level",
2237-
"Delete": "Delete Level",
2238-
"View": "View"
2243+
"Delete": "Delete Level"
22392244
},
22402245
"FIELDS": {
22412246
"background": {
@@ -3552,6 +3557,10 @@
35523557
"exposure": {
35533558
"label": "Reveal Elevated Surface",
35543559
"hint": "Partially reveal the visible area of this elevated surface to observers below and outside of it. The revealed area depends on the angle between the observer and the surface boundary, this area decreases as the angle becomes steeper. This option is useful for roofs, balconies, or other overhead platforms."
3560+
},
3561+
"culling": {
3562+
"label": "Cull Tokens",
3563+
"hint": "Hide uncontrolled Tokens outside the currently viewed Level in the GM view or when Token Vision is disabled. Surfaces in the background hide Tokens below them, while surfaces in the foreground hide Tokens on or above them."
35553564
}
35563565
},
35573566
"PLACEMENTS": {
@@ -4049,6 +4058,7 @@
40494058
"TOKEN.ImageCycleNext": "Next Token Image",
40504059
"TOKEN.ImageCyclePrev": "Previous Token Image",
40514060
"TOKEN.ImagePreview": "Token Image Preview",
4061+
"TOKEN.ImagePathOverridden": "This image is overridden by the Dynamic Token Ring subject texture.",
40524062
"TOKEN.Mirror": "Mirror Image",
40534063
"TOKEN.MirrorX": "Horizontally",
40544064
"TOKEN.MirrorY": "Vertically",

lang/pl.json

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"ImportSubmit": "Importuj przygodę",
55
"ImportProgress": "Importowanie",
66
"ImportHeaderOverview": "Przegląd",
7-
"ImportHeaderContents": "Zawartosć",
7+
"ImportHeaderContents": "Zawartość",
88
"ImportHeaderOptions": "Opcje",
99
"ImportOverwriteTitle": "Nadpisać istniejącą treść?",
1010
"ImportOverwriteWarning": "Niektóre treści z przygody <strong>{name}</strong> istnieją już w twoim świecie. Jeśli zaimportujesz przygodę te treści zostaną nadpisane. Chcesz kontynuować?",
@@ -51,7 +51,7 @@
5151

5252
"TABS": {
5353
"summary": "Podsumowanie",
54-
"contents": "Zawartosć"
54+
"contents": "Zawartość"
5555
},
5656

5757
"ACTIONS": {
@@ -1405,6 +1405,7 @@
14051405
"TitleImageVideo": "Przeglądarka obrazów lub wideo",
14061406
"TitleImage": "Przeglądarka obrazów",
14071407
"TitleVideo": "Przeglądarka wideo",
1408+
"TitleTexture": "Przeglądarka tekstur",
14081409
"TitleAudio": "Przeglądarka dźwięku",
14091410
"TitleText": "Przeglądarka dokumentów",
14101411
"TitleGraphics": "Przeglądarka 3D",
@@ -1828,7 +1829,10 @@
18281829
"MODMANAGE": {
18291830
"Bugs": "Zgłoszenia bugów lub problemów",
18301831
"DeactivateAll": "Dezaktywuj wszystkie moduły",
1831-
"Readme": "Dokumentacja modułu",
1832+
"Readme": "Dokumentacja",
1833+
"Author": "Autor",
1834+
"Authors": "Autorzy",
1835+
"URL": "URL",
18321836
"Title": "Zarządzanie modułami",
18331837
"Instructions": "Użyj tego formularza, aby skonfigurować, które moduły są aktywne w aktualnym świecie. Wprowadzanie zmian w aktywnych modułach spowoduje przeładowanie bieżącej sesji.",
18341838
"View": "Moduły wymienione poniżej są obecnie aktywne w tym świecie.",
@@ -1947,6 +1951,7 @@
19471951
"PLAYLIST.SoundPreload": "Wstępnie załaduj dźwięk",
19481952
"PLAYLIST.SoundResume": "Wznów dźwięk",
19491953
"PLAYLIST.SoundStop": "Zatrzymaj dźwięk",
1954+
"PLAYLIST.Preload": "Dźwięki wstępnie załadowane",
19501955
"PLAYLIST.BulkImport": {
19511956
"Title": "Masowy import dźwięków",
19521957
"Hint": "Wybierz folder zawierający dźwięki do zaimportowania.",
@@ -2037,11 +2042,12 @@
20372042
"SCENE.Loading": "Ładowanie {name}",
20382043
"SCENE.Notes": "Notatki sceny",
20392044
"SCENE.Perception": "Percepcja",
2040-
"SCENE.Preload": "Wczytaj Wstępnie",
2045+
"SCENE.Preload": "Załaduj wstępnie",
20412046
"SCENE.Presentation": "Prezentacja",
20422047
"SCENE.Properties": "Właściwości sceny",
20432048
"SCENE.View": "Widok",
20442049
"SCENE.ShiftBG": "Przesunięcie",
2050+
"SCENE.PullEveryone": "Wciągnij wszystkich",
20452051
"SCENE.ToggleNav": "Panel nawigacji",
20462052
"SCENE.FogModeChangeMessage": "Tryb eksploracji mgły uległ zmianie. Spowoduje to ponowne załadowanie eksploracji mgły i zresetowanie widoczności.",
20472053
"SCENE.Transition": {
@@ -2234,8 +2240,7 @@
22342240
"label": "Dodaj poziom"
22352241
},
22362242
"Edit": "Edytuj poziom",
2237-
"Delete": "Usuń poziom",
2238-
"View": "Widok"
2243+
"Delete": "Usuń poziom"
22392244
},
22402245
"FIELDS": {
22412246
"background": {
@@ -3552,6 +3557,10 @@
35523557
"exposure": {
35533558
"label": "Odkryj podwyższoną powierzchnię",
35543559
"hint": "Częściowo odsłaniaj widoczny obszar tej podwyższonej powierzchni dla obserwatorów znajdujących się poniżej i poza nią. Odsłonięty obszar zależy od kąta między obserwatorem a granicą powierzchni, obszar ten zmniejsza się wraz ze wzrostem kąta. Ta opcja jest przydatna w przypadku dachów, balkonów lub innych platform nad głową."
3560+
},
3561+
"culling": {
3562+
"label": "Ukrywaj tokeny",
3563+
"hint": "Ukryj niekontrolowane tokeny znajdujące się poza aktualnie wyświetlanym poziomem w widoku MG lub gdy funkcja „Widzenie Tokena jest wyłączona. Powierzchnie w tle ukrywają tokeny znajdujące się pod nimi, natomiast powierzchnie na pierwszym planie ukrywają tokeny znajdujące się na nich lub nad nimi."
35553564
}
35563565
},
35573566
"PLACEMENTS": {
@@ -4049,6 +4058,7 @@
40494058
"TOKEN.ImageCycleNext": "Następny obraz tokena",
40504059
"TOKEN.ImageCyclePrev": "Poprzedni obraz tokena",
40514060
"TOKEN.ImagePreview": "Podgląd obrazu tokenu",
4061+
"TOKEN.ImagePathOverridden": "Ten obraz jest zastępowany przez teksturę obiektu Dynamicznego pierścienia tokenu.",
40524062
"TOKEN.Mirror": "Odbicie lustrzane",
40534063
"TOKEN.MirrorX": "Poziomo",
40544064
"TOKEN.MirrorY": "Pionowo",

module.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
"styles/style.css"
88
],
99
"esmodules": [
10-
"scripts/script.js"
10+
"scripts/script.js",
11+
"scripts/setting-scope-icons.js"
1112
],
1213
"compatibility": {
1314
"minimum": "14",
14-
"verified": "14.360"
15+
"verified": "14.362"
1516
},
1617
"authors": [
1718
{

scripts/setting-scope-icons.js

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
const MOD_ID = "PolishCore";
2+
3+
Hooks.on("renderSettingsConfig", (settings, htmlEl) => {
4+
const html = $(htmlEl);
5+
6+
html.find(".form-group").each((_, group) => {
7+
const $group = $(group);
8+
9+
const input = $group.find("input[name], select[name], textarea[name], range-picker[name]").first();
10+
if (input.length) {
11+
const id = input.attr("name");
12+
const setting = game.settings.settings.get(id);
13+
if (setting) addScopeIcon($group, setting.scope ?? "client", setting.requiresReload);
14+
return;
15+
}
16+
17+
const button = $group.find("button[data-key]").first();
18+
if (button.length) {
19+
const key = button.data("key");
20+
const menu = game.settings.menus.get(key);
21+
if (menu) addScopeIcon($group, menu.restricted ? "world" : "client", false);
22+
}
23+
});
24+
});
25+
26+
/**
27+
* @param {JQuery} group - .form-group
28+
* @param {"client" | "world"} scope
29+
* @param {boolean} requiresReload
30+
*/
31+
function addScopeIcon(group, scope, requiresReload) {
32+
const scopeIcon =
33+
scope === "world"
34+
? `<i class="setting-scope-icon fa-duotone fa-solid fa-earth-americas" title="Ustawienie globalne (World)"></i>`
35+
: `<i class="setting-scope-icon fa-duotone fa-solid fa-user" title="Ustawienie lokalne (Client)"></i>`;
36+
37+
const reloadIcon = requiresReload
38+
? `<i class="setting-reload-icon fa-duotone fa-solid fa-triangle-exclamation" title="Wymaga ponownego uruchomienia"></i>`
39+
: "";
40+
41+
const label = group.find("label").first();
42+
43+
if (label.length) {
44+
// Usuń poprzednie nasze ikony
45+
label.find(".setting-scope-icon, .setting-reload-icon").remove();
46+
// Dodaj ikony na początek
47+
label.prepend(`${scopeIcon}${reloadIcon} `);
48+
}
49+
}
50+

0 commit comments

Comments
 (0)