diff --git a/index.php b/index.php index 997f0139..d6e97269 100644 --- a/index.php +++ b/index.php @@ -1498,6 +1498,20 @@ class="joystickBase" /> +
diff --git a/init.js b/init.js index a013f141..0ab11632 100644 --- a/init.js +++ b/init.js @@ -870,6 +870,8 @@ function loadOrInitConfig(configObj, global, configName) { break; case 'rulesReviewed': break; + case 'warningsReviewed': + break; } } else { switch (key) { diff --git a/lang/ar.json b/lang/ar.json index ec4fd272..b2904899 100644 --- a/lang/ar.json +++ b/lang/ar.json @@ -574,6 +574,13 @@ "rule5": "لا غش من أي نوع ولأي سبب", "rule6": "في حالة وجود مشكلة يرجى إبلاغ المشرفين" }, + "warnings": { + "title": "Warnings", + "subtitle": "Some games may contain the following content. Viewer discretion is advised.", + "warning1": "Flashing light sequences or patterns that may affect photosensitive viewers.", + "warning2": "References to self-harm or suicide.", + "warning3": "Disturbing imagery." + }, "explorerUndiscoveredLocations": { "title": "اماكن غير مكتشفة", "complete": "لقد قمت باكتشاف جميع الاماكن المتاحة :)" @@ -638,7 +645,8 @@ "placeholders": { "scheduleDescription": "Markdown syntax is accepted, use {\\{l:World,optional link name}} to insert a link to yume.wiki" }, - "reviewRules": "مراجعة القواعد" + "reviewRules": "مراجعة القواعد", + "reviewWarnings": "Review Warnings" }, "messages": { "games": { diff --git a/lang/de.json b/lang/de.json index e1c18d4d..43652b0a 100644 --- a/lang/de.json +++ b/lang/de.json @@ -574,6 +574,13 @@ "rule5": "Kein cheaten jeglicher Art.", "rule6": "Sollte es Probleme geben, kontaktiere die Moderatoren." }, + "warnings": { + "title": "Warnings", + "subtitle": "Some games may contain the following content. Viewer discretion is advised.", + "warning1": "Flashing light sequences or patterns that may affect photosensitive viewers.", + "warning2": "References to self-harm or suicide.", + "warning3": "Disturbing imagery." + }, "explorerUndiscoveredLocations": { "title": "Unentdeckte Orte", "complete": "Du hast jeden verfügbaren Standort gefunden! Gut gemacht!" @@ -638,7 +645,8 @@ "placeholders": { "scheduleDescription": "Markdown Syntax ist akzeptiert, benutze {\\{l:Welt,optionaler Linkname}} um einen Link auf yume.wiki einzufügen." }, - "reviewRules": "Regeln nochmal anzeigen" + "reviewRules": "Regeln nochmal anzeigen", + "reviewWarnings": "Review Warnings" }, "messages": { "games": { diff --git a/lang/en.json b/lang/en.json index e6f53b77..a9f09291 100644 --- a/lang/en.json +++ b/lang/en.json @@ -574,6 +574,13 @@ "rule5": "No cheating of any kind for any reason.", "rule6": "If there's trouble, please inform the moderators." }, + "warnings": { + "title": "Warnings", + "subtitle": "Some games may contain the following content. Viewer discretion is advised.", + "warning1": "Flashing light sequences or patterns that may affect photosensitive viewers.", + "warning2": "References to self-harm or suicide.", + "warning3": "Disturbing imagery." + }, "explorerUndiscoveredLocations": { "title": "Undiscovered Locations", "complete": "You've discovered every available location! Congrats!!" @@ -638,7 +645,8 @@ "placeholders": { "scheduleDescription": "Markdown syntax is accepted, use {\\{l:World,optional link name}} to insert a link to yume.wiki" }, - "reviewRules": "Review Rules" + "reviewRules": "Review Rules", + "reviewWarnings": "Review Warnings" }, "messages": { "games": { diff --git a/lang/eo.json b/lang/eo.json index 77146fa2..9ca11c58 100644 --- a/lang/eo.json +++ b/lang/eo.json @@ -574,6 +574,13 @@ "rule5": "Ne trompu ial ajn.", "rule6": "Se estas problemoj, bonvolu sciigi la kontrolantojn." }, + "warnings": { + "title": "Warnings", + "subtitle": "Some games may contain the following content. Viewer discretion is advised.", + "warning1": "Flashing light sequences or patterns that may affect photosensitive viewers.", + "warning2": "References to self-harm or suicide.", + "warning3": "Disturbing imagery." + }, "explorerUndiscoveredLocations": { "title": "Nemalkovritaj Lokoj", "complete": "Vi malkovris ĉiujn disponeblajn lokojn! Gratulon!!" @@ -638,7 +645,8 @@ "placeholders": { "scheduleDescription": "Markdown syntax is accepted, use {\\{l:World,optional link name}} to insert a link to yume.wiki" }, - "reviewRules": "Montri Regulojn" + "reviewRules": "Montri Regulojn", + "reviewWarnings": "Review Warnings" }, "messages": { "games": { diff --git a/lang/es.json b/lang/es.json index cb605d39..a336a6f3 100644 --- a/lang/es.json +++ b/lang/es.json @@ -574,6 +574,13 @@ "rule5": "No trampas de ningún tipo por ningún motivo.", "rule6": "Si hay problemas, por favor informa a los moderadores." }, + "warnings": { + "title": "Warnings", + "subtitle": "Some games may contain the following content. Viewer discretion is advised.", + "warning1": "Flashing light sequences or patterns that may affect photosensitive viewers.", + "warning2": "References to self-harm or suicide.", + "warning3": "Disturbing imagery." + }, "explorerUndiscoveredLocations": { "title": "Ubicaciones sin Descubrir", "complete": "¡Has descubierto todas las Ubicaciones Disponibles! ¡¡Felicidades!!" @@ -638,7 +645,8 @@ "placeholders": { "scheduleDescription": "Sintaxis Markdown aceptada, usa {\\{l:Mundo,nombre de link opcional}} para insertar un link hacia yume.wiki" }, - "reviewRules": "Ver Reglas" + "reviewRules": "Ver Reglas", + "reviewWarnings": "Review Warnings" }, "messages": { "games": { diff --git a/lang/fr.json b/lang/fr.json index 47953dff..cf19e708 100644 --- a/lang/fr.json +++ b/lang/fr.json @@ -574,6 +574,13 @@ "rule5": "Pas de triche de toute sorte, qu'importe la raison.", "rule6": "Si il y a des problèmes, veuillez en informer les modérateurs." }, + "warnings": { + "title": "Warnings", + "subtitle": "Some games may contain the following content. Viewer discretion is advised.", + "warning1": "Flashing light sequences or patterns that may affect photosensitive viewers.", + "warning2": "References to self-harm or suicide.", + "warning3": "Disturbing imagery." + }, "explorerUndiscoveredLocations": { "title": "Lieux non découverts", "complete": "Vous avez découvert tous les lieux disponibles ! Félicitations !!" @@ -638,7 +645,8 @@ "placeholders": { "scheduleDescription": "La syntaxe Markdown est acceptée, utilisez {\\{l:Monde,nom de lien optionnel}} pour insérer un lien vers yume.wiki" }, - "reviewRules": "Relire les règles" + "reviewRules": "Relire les règles", + "reviewWarnings": "Review Warnings" }, "messages": { "games": { diff --git a/lang/id.json b/lang/id.json index 5415549e..7f2da475 100644 --- a/lang/id.json +++ b/lang/id.json @@ -574,6 +574,13 @@ "rule5": "No cheating of any kind for any reason.", "rule6": "If there's trouble, please inform the moderators." }, + "warnings": { + "title": "Warnings", + "subtitle": "Some games may contain the following content. Viewer discretion is advised.", + "warning1": "Flashing light sequences or patterns that may affect photosensitive viewers.", + "warning2": "References to self-harm or suicide.", + "warning3": "Disturbing imagery." + }, "explorerUndiscoveredLocations": { "title": "Undiscovered Locations", "complete": "You've discovered every available location! Congrats!!" @@ -638,7 +645,8 @@ "placeholders": { "scheduleDescription": "Markdown syntax is accepted, use {\\{l:World,optional link name}} to insert a link to yume.wiki" }, - "reviewRules": "Review Rules" + "reviewRules": "Review Rules", + "reviewWarnings": "Review Warnings" }, "messages": { "games": { diff --git a/lang/it.json b/lang/it.json index d93e2093..c116aff5 100644 --- a/lang/it.json +++ b/lang/it.json @@ -574,6 +574,13 @@ "rule5": "Niente trucchi di nessun genere per nessun motivo.", "rule6": "If there's trouble, please inform the moderators." }, + "warnings": { + "title": "Warnings", + "subtitle": "Some games may contain the following content. Viewer discretion is advised.", + "warning1": "Flashing light sequences or patterns that may affect photosensitive viewers.", + "warning2": "References to self-harm or suicide.", + "warning3": "Disturbing imagery." + }, "explorerUndiscoveredLocations": { "title": "Undiscovered Locations", "complete": "You've discovered every available location! Congrats!!" @@ -638,7 +645,8 @@ "placeholders": { "scheduleDescription": "Markdown syntax is accepted, use {\\{l:World,optional link name}} to insert a link to yume.wiki" }, - "reviewRules": "Riguarda le Regole" + "reviewRules": "Riguarda le Regole", + "reviewWarnings": "Review Warnings" }, "messages": { "games": { diff --git a/lang/ja.json b/lang/ja.json index bacf82cc..13aad0d9 100644 --- a/lang/ja.json +++ b/lang/ja.json @@ -574,6 +574,13 @@ "rule5": "いかなる理由であれ、不正行為は禁止です。", "rule6": "トラブルが発生した場合は、モデレーターにお知らせください。" }, + "warnings": { + "title": "注意事項", + "subtitle": "一部の作品には、以下の内容が含まれる場合があります。\nご注意ください。", + "warning1": "激しい光の点滅を伴う場面が、光過敏症のある方に影響を与える可能性があります。", + "warning2": "自傷行為や自殺についての表現。", + "warning3": "不快に感じる表現。" + }, "explorerUndiscoveredLocations": { "title": "未発見の場所", "complete": "あなたは到達可能なすべての場所を発見しました!おめでとう!!" @@ -638,7 +645,8 @@ "placeholders": { "scheduleDescription": "Markdown記法が使用可能で、{\\{l:英名,和名}}を使ってyume.wikiへのマップURLを記入する" }, - "reviewRules": "ルールを見る" + "reviewRules": "ルールを見る", + "reviewWarnings": "注意事項を見る" }, "messages": { "games": { diff --git a/lang/ko.json b/lang/ko.json index 4794ebe0..c7dcc952 100644 --- a/lang/ko.json +++ b/lang/ko.json @@ -574,6 +574,13 @@ "rule5": "어느 경우더라도 치트는 사용하지 마십시오.", "rule6": "문제가 있으면 운영진에게 알려 주십시오." }, + "warnings": { + "title": "Warnings", + "subtitle": "Some games may contain the following content. Viewer discretion is advised.", + "warning1": "Flashing light sequences or patterns that may affect photosensitive viewers.", + "warning2": "References to self-harm or suicide.", + "warning3": "Disturbing imagery." + }, "explorerUndiscoveredLocations": { "title": "미발견 장소", "complete": "축하합니다!! 방문할 수 있는 모든 장소를 발견하셨습니다!" @@ -638,7 +645,8 @@ "placeholders": { "scheduleDescription": "하이퍼 링크 삽입이 가능합니다. {\\{l:월드, 세부 맵 링크}}를 입력하여 yume wiki 속 링크를 삽입하실 수 있습니다." }, - "reviewRules": "규칙 다시 보기" + "reviewRules": "규칙 다시 보기", + "reviewWarnings": "Review Warnings" }, "messages": { "games": { diff --git a/lang/pl.json b/lang/pl.json index c1611d5f..ff940c54 100644 --- a/lang/pl.json +++ b/lang/pl.json @@ -574,6 +574,13 @@ "rule5": "Zakaz używania cheatów z jakiegokolwiek powodu.", "rule6": "Jeżeli wystąpi zamieszanie w czacie, poinformuj moderatorów." }, + "warnings": { + "title": "Warnings", + "subtitle": "Some games may contain the following content. Viewer discretion is advised.", + "warning1": "Flashing light sequences or patterns that may affect photosensitive viewers.", + "warning2": "References to self-harm or suicide.", + "warning3": "Disturbing imagery." + }, "explorerUndiscoveredLocations": { "title": "Nieodkryte lokalizacje", "complete": "Odkryto wszystkie lokalizacje! Gratulacje!" @@ -638,7 +645,8 @@ "placeholders": { "scheduleDescription": "Markdown syntax is accepted, use {\\{l:World,optional link name}} to insert a link to yume.wiki" }, - "reviewRules": "Sprawdź zasady" + "reviewRules": "Sprawdź zasady", + "reviewWarnings": "Review Warnings" }, "messages": { "games": { diff --git a/lang/pt.json b/lang/pt.json index efb441b8..da8e912e 100644 --- a/lang/pt.json +++ b/lang/pt.json @@ -574,6 +574,13 @@ "rule5": "Sem trapaças de qualquer tipo por qualquer motivo.", "rule6": "Se houver problemas, favor informar os moderadores." }, + "warnings": { + "title": "Warnings", + "subtitle": "Some games may contain the following content. Viewer discretion is advised.", + "warning1": "Flashing light sequences or patterns that may affect photosensitive viewers.", + "warning2": "References to self-harm or suicide.", + "warning3": "Disturbing imagery." + }, "explorerUndiscoveredLocations": { "title": "Locais ainda Não Descobertos", "complete": "Você descobriu todos os locais disponíveis! Parabéns!!!" @@ -638,7 +645,8 @@ "placeholders": { "scheduleDescription": "Syntax Markdown é aceito, use {\\{l:World,optional link name}} para inserir um link a yume.wiki" }, - "reviewRules": "Ver Regras" + "reviewRules": "Ver Regras", + "reviewWarnings": "Review Warnings" }, "messages": { "games": { diff --git a/lang/ro.json b/lang/ro.json index 9f49e7cc..6e47ea2f 100644 --- a/lang/ro.json +++ b/lang/ro.json @@ -574,6 +574,13 @@ "rule5": "Fără trișat în orice fel, din oricare motiv.", "rule6": "Dacă sunt probleme, te rugăm să informezi moderatorii." }, + "warnings": { + "title": "Warnings", + "subtitle": "Some games may contain the following content. Viewer discretion is advised.", + "warning1": "Flashing light sequences or patterns that may affect photosensitive viewers.", + "warning2": "References to self-harm or suicide.", + "warning3": "Disturbing imagery." + }, "explorerUndiscoveredLocations": { "title": "Locații Nedescoperite", "complete": "Ai descoperit toate locațiile valabile! Felicitări!!" @@ -638,7 +645,8 @@ "placeholders": { "scheduleDescription": "Sintaxa Markdown este acceptată, folosește {\\{l:World,optional link name}} pentru a insera un link către yume.wiki" }, - "reviewRules": "Revizionează Regulile" + "reviewRules": "Revizionează Regulile", + "reviewWarnings": "Review Warnings" }, "messages": { "games": { diff --git a/lang/ru.json b/lang/ru.json index c63adb5e..fc863e0d 100644 --- a/lang/ru.json +++ b/lang/ru.json @@ -574,6 +574,13 @@ "rule5": "Запрещено читерство в любом виде под каким-бы то ни было предлогом.", "rule6": "При возникновении проблем, пожалуйста, свяжитесь с модераторами." }, + "warnings": { + "title": "Warnings", + "subtitle": "Some games may contain the following content. Viewer discretion is advised.", + "warning1": "Flashing light sequences or patterns that may affect photosensitive viewers.", + "warning2": "References to self-harm or suicide.", + "warning3": "Disturbing imagery." + }, "explorerUndiscoveredLocations": { "title": "Неисследованная локация", "complete": "Вы исследовали все доступные локации! Поздравляем!!!" @@ -638,7 +645,8 @@ "placeholders": { "scheduleDescription": "Доступен Markdown, используйте {\\{l:World,имя ссылки (опционально)}} чтобы вставить ссылку на yume.wiki" }, - "reviewRules": "Просмотреть правила" + "reviewRules": "Просмотреть правила", + "reviewWarnings": "Review Warnings" }, "messages": { "games": { diff --git a/lang/tr.json b/lang/tr.json index 0a131fac..31e121e4 100644 --- a/lang/tr.json +++ b/lang/tr.json @@ -574,6 +574,13 @@ "rule5": "Herhangi bir sebepten ötürü hile kullanmak yasak.", "rule6": "Herhangi bir huzursuzluk varsa, bir moderatöre haber verin." }, + "warnings": { + "title": "Warnings", + "subtitle": "Some games may contain the following content. Viewer discretion is advised.", + "warning1": "Flashing light sequences or patterns that may affect photosensitive viewers.", + "warning2": "References to self-harm or suicide.", + "warning3": "Disturbing imagery." + }, "explorerUndiscoveredLocations": { "title": "Keşfedilmeyen Konumlar", "complete": "Mevcut her konumu keşfettiniz! Tebrikler!!" @@ -638,7 +645,8 @@ "placeholders": { "scheduleDescription": "Gömülü Bağlantılar desteklenir, yume.wiki'den bir link yapıştırmak için {\\{l:World,optional link name}} kullanabilirsin" }, - "reviewRules": "Kuralları Göster" + "reviewRules": "Kuralları Göster", + "reviewWarnings": "Review Warnings" }, "messages": { "games": { diff --git a/lang/uk.json b/lang/uk.json index bad4c610..e571316c 100644 --- a/lang/uk.json +++ b/lang/uk.json @@ -574,6 +574,13 @@ "rule5": "Заборонено чити незалежно від форми та причини.", "rule6": "Якщо виникли проблеми, будьласка зв'яжіться з модератором." }, + "warnings": { + "title": "Warnings", + "subtitle": "Some games may contain the following content. Viewer discretion is advised.", + "warning1": "Flashing light sequences or patterns that may affect photosensitive viewers.", + "warning2": "References to self-harm or suicide.", + "warning3": "Disturbing imagery." + }, "explorerUndiscoveredLocations": { "title": "Невідомі локації", "complete": "Ви відкрили всі доступні локації! Вітаємо!" @@ -638,7 +645,8 @@ "placeholders": { "scheduleDescription": "Підтримується синтаксис Markdown, використовуйте {{l:World,назва посилання (необов'язково)}} для вставки посилання на yume.wiki" }, - "reviewRules": "Переглянути правила" + "reviewRules": "Переглянути правила", + "reviewWarnings": "Review Warnings" }, "messages": { "games": { diff --git a/lang/vi.json b/lang/vi.json index 59cb809a..1f3cd5af 100644 --- a/lang/vi.json +++ b/lang/vi.json @@ -574,6 +574,13 @@ "rule5": "Không gian lận bằng bất kỳ lý do nào.", "rule6": "Nếu gặp vấn đề, thông báo cho các kiểm duyệt viên." }, + "warnings": { + "title": "Warnings", + "subtitle": "Some games may contain the following content. Viewer discretion is advised.", + "warning1": "Flashing light sequences or patterns that may affect photosensitive viewers.", + "warning2": "References to self-harm or suicide.", + "warning3": "Disturbing imagery." + }, "explorerUndiscoveredLocations": { "title": "Địa điểm chưa khám phá", "complete": "Bạn đã khám phá hết tất cả địa điểm! Chúc mừng!!" @@ -638,7 +645,8 @@ "placeholders": { "scheduleDescription": "Có thể dùng ký hiệu định dạng văn bản. Bạn có thể dùng {\\{l:World,tên tùy chọn cho liên kết}} để chèn liên kết đến yume.wiki" }, - "reviewRules": "Xem Nội quy" + "reviewRules": "Xem Nội quy", + "reviewWarnings": "Review Warnings" }, "messages": { "games": { diff --git a/lang/zh.json b/lang/zh.json index fe3f4295..e8dab6b6 100644 --- a/lang/zh.json +++ b/lang/zh.json @@ -574,6 +574,13 @@ "rule5": "不要在游戏中作弊。", "rule6": "如遇到问题,请联系管理员。" }, + "warnings": { + "title": "Warnings", + "subtitle": "Some games may contain the following content. Viewer discretion is advised.", + "warning1": "Flashing light sequences or patterns that may affect photosensitive viewers.", + "warning2": "References to self-harm or suicide.", + "warning3": "Disturbing imagery." + }, "explorerUndiscoveredLocations": { "title": "未探索地域", "complete": "您已探索完所有可到达的地域!恭喜!" @@ -638,7 +645,8 @@ "placeholders": { "scheduleDescription": "支持Markdown格式符。使用 {\\{l:世界名,可选链接名}} 可链接至yume.wiki词条页" }, - "reviewRules": "多人游戏守则" + "reviewRules": "多人游戏守则", + "reviewWarnings": "Review Warnings" }, "messages": { "games": { diff --git a/play.css b/play.css index fdf068cd..2d37bcbe 100644 --- a/play.css +++ b/play.css @@ -3875,6 +3875,11 @@ html[dir="rtl"] #layout:fullscreen #chatboxContainer { margin-bottom: 8px; } + .modalSubtitle { + margin: 0; + margin-bottom: 8px; + } + .imageControls { width: 112px; } diff --git a/play.js b/play.js index 16332014..580d0c7b 100644 --- a/play.js +++ b/play.js @@ -95,6 +95,7 @@ let globalConfig = { preloads: false, questionablePreloads: false, rulesReviewed: false, + warningsReviewed: false, badgeToolsData: null, pushNotificationToastDismissed: false, unicodeFont: false, @@ -3061,7 +3062,26 @@ if (!loadedLang) { } if (!globalConfig.rulesReviewed) { - openModal('rulesModal'); + if (!globalConfig.warningsReviewed) { + openModal('rulesModal', undefined, 'warningsModal'); + const warningsModal = document.getElementById('warningsModal'); + if (warningsModal) { + const observer = new MutationObserver((mutations) => { + if (!warningsModal.classList.contains('hidden') && !warningsModal.classList.contains('fadeIn') && !globalConfig.warningsReviewed) { + globalConfig.warningsReviewed = true; + updateConfig(globalConfig, true); + observer.disconnect(); + } + }); + observer.observe(warningsModal, { attributes: true, attributeFilter: ['class'] }); + } + } else { + openModal('rulesModal'); + } globalConfig.rulesReviewed = true; updateConfig(globalConfig, true); -} +} else if (!globalConfig.warningsReviewed) { + openModal('warningsModal'); + globalConfig.warningsReviewed = true; + updateConfig(globalConfig, true); +} \ No newline at end of file