diff --git a/.changelog/lang_ar.json b/.changelog/lang_ar.json index f61f83f5..802cb972 100644 --- a/.changelog/lang_ar.json +++ b/.changelog/lang_ar.json @@ -215,9 +215,9 @@ "دعم تحليل التخطيط لتبديل النوافذ (راجع إلى [Auto.js Pro](https://g.pro.autojs.org/))", "طريقة auto.clearCache، تدعم مسح ذاكرة الكاش (راجع إلى [Auto.js Pro](https://g.pro.autojs.org/))", "طريقة threads.pool، تدعم تطبيق بسيط للمؤشرات (راجع إلى [Auto.js Pro](https://g.pro.autojs.org/))", - "طريقة images.matchTemplate تضيف خيار useTransparentMask لدعم البحث الشفاف عن الصور (راجع إلى [Auto.js Pro](https://g.pro.autojs.org/))", + "تدعم الدالة images.matchTemplate وسيط الخيار useTransparentMask، مع دعم البحث عن الصور مع الشفافية (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "طريقة images.requestScreenCaptureAsync، تُستخدم لطلب إذن لالتقاط الشاشة بشكل غير متزامن في وضع UI (راجع إلى [Auto.js Pro](https://g.pro.autojs.org/))", - "طريقة images.requestScreenCapture تضيف خيار isAsync لدعم الحصول على لقطة الشاشة بشكل غير متزامن (راجع إلى [Auto.js Pro](https://g.pro.autojs.org/))", + "تدعم الدالة images.requestScreenCapture وسيط الخيار isAsync، مع دعم التقاط لقطة الشاشة بطريقة غير متزامنة (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "طرق مراقبة الأحداث مثل images.on('screen_capture', callback)، تدعم مراقبة توافر لقطة الشاشة (راجع إلى [Auto.js Pro](https://g.pro.autojs.org/))", "طريقة images.stopScreenCapture، تدعم تحرير الموارد المتعلقة بطلب لقطة الشاشة (راجع إلى [Auto.js Pro](https://g.pro.autojs.org/))", "طرق images.psnr/mse/ssim/mssim/hist/ncc وimages.getSimilarity، تُستخدم للحصول على مقادير تشابه الصور", @@ -371,7 +371,7 @@ "v6.4.2": { "released_date": "2023/11/15", "feature": [ - "خصائص خيار المعلمة inputSingleLine في dialogs.build()", + "تدعم الدالة dialogs.build وسيط الخيار inputSingleLine", "طريقة console.setTouchable _[`issue #122`](http://issues.autojs6.com/122)_" ], "fix": [ @@ -840,10 +840,10 @@ "طرق automator.lockScreen() وما إلى ذلك (راجع أمثلة الكود > خدمات ذوي الاحتياجات الخاصة > جديد في Android 9)", "طرق automator.headsethook() وما إلى ذلك (راجع أمثلة الكود > خدمات ذوي الاحتياجات الخاصة > جديد في Android 11)", "طريقة automator.captureScreen() (راجع أمثلة الكود > خدمات ذوي الاحتياجات الخاصة > التقاط الشاشة)", - "خصائص الخيار في dialogs.build() مثل animation و linkify وما إلى ذلك (راجع أمثلة الكود > حوار > حوار مخصص)" + "تدعم الدالة dialogs.build وسائط خيارات مثل animation و linkify وغيرها. (راجع أمثلة الكود > حوار > حوار مخصص)" ], "fix": [ - "خصائص الخيار في dialogs.build() مثل inputHint و itemsSelectedIndex وما إلى ذلك تعاني من خلل", + "توجد مشكلة في عمل وسائط الخيارات مثل inputHint و itemsSelectedIndex وغيرها في dialogs.build", "خلل في استدعاء المعاملات في JsDialog#on('multi_choice')", "مشكلة في UiObject#parent().indexInParent() الذي دائمًا يعيد القيمة -1 _[`issue #16`](http://issues.autojs6.com/16)_", "مشكلة في Promise.resolve() التي قد تعود بقيم غير مستدعاة عندما يكون النص البرمجي قريبًا من الانتهاء", diff --git a/.changelog/lang_en.json b/.changelog/lang_en.json index 8e2ce038..39488819 100644 --- a/.changelog/lang_en.json +++ b/.changelog/lang_en.json @@ -215,9 +215,9 @@ "Layout analysis supports window switching (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "auto.clearCache method supports clearing control caches (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "threads.pool method supports simple application of thread pools (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", - "images.matchTemplate method adds useTransparentMask option parameter to support transparent image search (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", + "images.matchTemplate method supports the useTransparentMask option parameter, enabling transparent template matching (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "images.requestScreenCaptureAsync method for asynchronously requesting screenshot permissions in UI mode (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", - "images.requestScreenCapture method adds isAsync option parameter to support asynchronous screenshot capture (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", + "images.requestScreenCapture method supports the isAsync option parameter, enabling asynchronous screen capture (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "images.on('screen_capture', callback) and other event listener methods support listening for screen capture availability events (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "images.stopScreenCapture method supports actively releasing resources related to screenshot applications (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "Images.psnr/mse/ssim/mssim/hist/ncc and images.getSimilarity methods for obtaining image similarity metrics", @@ -371,7 +371,7 @@ "v6.4.2": { "released_date": "2023/11/15", "feature": [ - "Added inputSingleLine option parameter property to dialogs.build()", + "dialogs.build method supports the inputSingleLine option parameter", "Added console.setTouchable method _[`issue #122`](http://issues.autojs6.com/122)_" ], "fix": [ @@ -840,10 +840,10 @@ "automator.lockScreen() and other methods (refer to Example Code > Accessibility Service > Android 9 New Additions)", "automator.headsethook() and other methods (refer to Example Code > Accessibility Service > Android 11 New Additions)", "automator.captureScreen() method (refer to Example Code > Accessibility Service > Take Screenshots)", - "dialogs.build() option parameter properties animation, linkify, etc. (refer to Example Code > Dialogs > Customized Dialogs)" + "dialogs.build method supports option parameters such as animation, linkify, etc. (refer to Example Code > Dialogs > Customized Dialogs)" ], "fix": [ - "Issues with dialogs.build() option parameter properties like inputHint, itemsSelectedIndex, etc.", + "inputHint, itemsSelectedIndex, and other option parameters of dialogs.build behave abnormally", "Issue with JsDialog#on('multi_choice') callback parameters", "Issue with UiObject#parent().indexInParent() always returning -1 _[`issue #16`](http://issues.autojs6.com/16)_", "Issue with Promise.resolve() returned Thenable not being called near the end of the script", diff --git a/.changelog/lang_es.json b/.changelog/lang_es.json index 870d8be2..f4785b2f 100644 --- a/.changelog/lang_es.json +++ b/.changelog/lang_es.json @@ -215,9 +215,9 @@ "El análisis de diseño admite el cambio de ventanas (Ref a [Auto.js Pro](https://g.pro.autojs.org/))", "El método auto.clearCache admite la limpieza de cachés de control (Ref a [Auto.js Pro](https://g.pro.autojs.org/))", "El método threads.pool admite la aplicación simple de grupos de hilos (Ref a [Auto.js Pro](https://g.pro.autojs.org/))", - "El método images.matchTemplate agrega el parámetro de opción useTransparentMask para soportar la búsqueda de imágenes transparentes (Ref a [Auto.js Pro](https://g.pro.autojs.org/))", + "El método images.matchTemplate admite el parámetro de opción useTransparentMask, compatible con la búsqueda de imágenes con transparencia (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "El método images.requestScreenCaptureAsync se usa para solicitar permisos de captura de pantalla de manera asíncrona en el modo UI (Ref a [Auto.js Pro](https://g.pro.autojs.org/))", - "El método images.requestScreenCapture agrega el parámetro de opción isAsync para soportar la captura de pantalla de manera asíncrona (Ref a [Auto.js Pro](https://g.pro.autojs.org/))", + "El método images.requestScreenCapture admite el parámetro de opción isAsync, compatible con la captura de pantalla de forma asíncrona (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "images.on('screen_capture', callback) y otros métodos de escucha de eventos admiten la escucha de eventos de disponibilidad de captura de pantalla (Ref a [Auto.js Pro](https://g.pro.autojs.org/))", "El método images.stopScreenCapture soporta la liberación activa de recursos relacionados con la aplicación de captura de pantalla (Ref a [Auto.js Pro](https://g.pro.autojs.org/))", "Los métodos Images.psnr/mse/ssim/mssim/hist/ncc y images.getSimilarity se utilizan para obtener métricas de similitud de imágenes", @@ -371,7 +371,7 @@ "v6.4.2": { "released_date": "2023/11/15", "feature": [ - "Propiedad inputSingleLine añadida a la opción de parámetros de dialogs.build()", + "El método dialogs.build admite el parámetro de opción inputSingleLine", "Método console.setTouchable _[`issue #122`](http://issues.autojs6.com/122)_" ], "fix": [ @@ -840,10 +840,10 @@ "Métodos automator.lockScreen() y similares (ver Código de Ejemplo > Servicios de Accesibilidad > Nuevo en Android 9)", "Métodos automator.headsethook() y similares (ver Código de Ejemplo > Servicios de Accesibilidad > Nuevo en Android 11)", "Método automator.captureScreen() (ver Código de Ejemplo > Servicios de Accesibilidad > Captura de Pantalla)", - "Opciones de propiedad animation y linkify en dialogs.build() (ver Código de Ejemplo > Cuadros de diálogo > Personalización del cuadro de diálogo)" + "El método dialogs.build admite parámetros de opción como animation, linkify, etc. (ver Código de Ejemplo > Cuadros de diálogo > Personalización del cuadro de diálogo)" ], "fix": [ - "Solución a las anomalías en las propiedades inputHint y itemsSelectedIndex en dialogs.build()", + "Los parámetros de opción inputHint, itemsSelectedIndex, etc. de dialogs.build presentan un comportamiento anómalo", "Solución a problemas con el parámetro de callback de JsDialog#on('multi_choice')", "Corrección del problema donde UiObject#parent().indexInParent() siempre devolvía -1 _[`issue #16`](http://issues.autojs6.com/16)_", "Resolución del problema donde las promesas Thenable de Promise.resolve() podrían no ser llamadas cerca del final del script", diff --git a/.changelog/lang_fr.json b/.changelog/lang_fr.json index 94262043..788d017c 100644 --- a/.changelog/lang_fr.json +++ b/.changelog/lang_fr.json @@ -215,9 +215,9 @@ "L'analyse de la mise en page prend en charge le changement de fenêtre (Réf. à [Auto.js Pro](https://g.pro.autojs.org/))", "La méthode auto.clearCache prend en charge le nettoyage des caches de contrôle (Réf. à [Auto.js Pro](https://g.pro.autojs.org/))", "La méthode threads.pool prend en charge l'application simple des pools de threads (Réf. à [Auto.js Pro](https://g.pro.autojs.org/))", - "La méthode images.matchTemplate ajoute le paramètre d'option useTransparentMask pour prendre en charge la recherche d'image transparente (Réf. à [Auto.js Pro](https://g.pro.autojs.org/))", + "La méthode images.matchTemplate prend en charge le paramètre d'option useTransparentMask, prenant en charge la recherche d'images avec transparence (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "La méthode images.requestScreenCaptureAsync permet de demander des permissions de capture d'écran de manière asynchrone en mode UI (Réf. à [Auto.js Pro](https://g.pro.autojs.org/))", - "La méthode images.requestScreenCapture ajoute le paramètre d'option isAsync pour prendre en charge la capture d'écran asynchrone (Réf. à [Auto.js Pro](https://g.pro.autojs.org/))", + "La méthode images.requestScreenCapture prend en charge le paramètre d'option isAsync, prenant en charge la capture d'écran de manière asynchrone (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "images.on('screen_capture', callback) et d'autres méthodes d'écoute d'événements prennent en charge l'écoute des événements de disponibilité de capture d'écran (Réf. à [Auto.js Pro](https://g.pro.autojs.org/))", "La méthode images.stopScreenCapture soutient la libération active des ressources liées aux applications de capture d'écran (Réf. à [Auto.js Pro](https://g.pro.autojs.org/))", "Les méthodes Images.psnr/mse/ssim/mssim/hist/ncc et images.getSimilarity pour obtenir des mesures de similarité d'image", @@ -371,7 +371,7 @@ "v6.4.2": { "released_date": "2023/11/15", "feature": [ - "Propriété de paramètre d'option inputSingleLine pour dialogs.build()", + "La méthode dialogs.build prend en charge le paramètre d'option inputSingleLine", "Méthode console.setTouchable _[`issue #122`](http://issues.autojs6.com/122)_" ], "fix": [ @@ -840,10 +840,10 @@ "Méthodes automator.lockScreen() etc. (voir des exemples de code > Services d'accessibilité > Android 9)", "Méthodes automator.headsethook() etc. (voir des exemples de code > Services d'accessibilité > Android 11)", "Méthode automator.captureScreen() (voir des exemples de code > Services d'accessibilité > Capture d'écran)", - "Options des paramètres d'animation, de mise en lien etc. dans dialogs.build() (voir des exemples de code > Dialogues > Dialogues personnalisés)" + "La méthode dialogs.build prend en charge des paramètres d'option tels que animation, linkify, etc. (voir des exemples de code > Dialogues > Dialogues personnalisés)" ], "fix": [ - "Anomalies des options des paramètres d'inputHint, des itemsSelectedIndex etc. dans dialogs.build()", + "Les paramètres d'option inputHint, itemsSelectedIndex, etc. de dialogs.build ne fonctionnent pas correctement", "Anomalies des paramètres de rappel dans JsDialog#on('multi_choice')", "Problème de retour constant de -1 par UiObject#parent().indexInParent() _[`issue #16`](http://issues.autojs6.com/16)_", "Problème de non-exécution des Thenable retournées par Promise.resolve() à la fin du script", diff --git a/.changelog/lang_ja.json b/.changelog/lang_ja.json index d0694064..4a0511bc 100644 --- a/.changelog/lang_ja.json +++ b/.changelog/lang_ja.json @@ -215,9 +215,9 @@ "レイアウト解析はウィンドウの切り替えをサポートしています (Auto.js Pro)", "auto.clearCache メソッド, コントロールキャッシュをクリアすることをサポートします (Auto.js Pro)", "threads.pool メソッド, シンプルなスレッドプールアプリケーションをサポートします (Auto.js Pro)", - "images.matchTemplate メソッドは useTransparentMask オプションパラメーターを追加し, 透明画像検索をサポートします (Auto.js Pro)", + "images.matchTemplate メソッドは useTransparentMask オプション引数をサポートし, 透過画像での画像検索に対応します (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "images.requestScreenCaptureAsync メソッド, UI モードで非同期にスクリーンキャプチャの許可を要求するために使用されます (Auto.js Pro)", - "images.requestScreenCapture メソッドは isAsync オプションパラメーターを追加し, 非同期でスクリーンキャプチャを取得することをサポートします (Auto.js Pro)", + "images.requestScreenCapture メソッドは isAsync オプション引数をサポートし, 非同期でスクリーンショットを取得できます (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "images.on('screen_capture', callback) などのイベントリスニングメソッドは, スクリーンキャプチャが使用可能なイベントをモニターすることをサポートします (Auto.js Pro)", "images.stopScreenCapture メソッドは, スクリーンキャプチャ要求に関連するリソースを積極的に解放することをサポートします (Auto.js Pro)", "images.psnr/mse/ssim/mssim/hist/ncc および images.getSimilarity メソッドは, 画像類似度測定値を取得するために使用されます", @@ -371,7 +371,7 @@ "v6.4.2": { "released_date": "2023/11/15", "feature": [ - "dialogs.build() オプションパラメータ属性 inputSingleLine", + "dialogs.build メソッドは inputSingleLine オプション引数をサポートします", "console.setTouchable メソッド _[`issue #122`](http://issues.autojs6.com/122)_" ], "fix": [ @@ -840,10 +840,10 @@ "automator.lockScreen() などのメソッド (サンプルコード > アクセシビリティサービス > Android 9 の新機能を参照)", "automator.headsethook() などのメソッド (サンプルコード > アクセシビリティサービス > Android 11 の新機能を参照)", "automator.captureScreen() メソッド (サンプルコード > アクセシビリティサービス > スクリーンショットの取得を参照)", - "dialogs.build() のオプションパラメータプロパティ animation, linkify など (サンプルコード > ダイアログ > カスタムダイアログを参照)" + "dialogs.build メソッドは animation, linkify などのオプション引数をサポートします (サンプルコード > ダイアログ > カスタムダイアログを参照)" ], "fix": [ - "dialogs.build() のオプションパラメータプロパティ inputHint, itemsSelectedIndex などの機能異常", + "dialogs.build の inputHint, itemsSelectedIndex などのオプション引数の動作が異常です", "JsDialog#on('multi_choice') コールバックパラメータの機能異常", "UiObject#parent().indexInParent() が常に -1 を返す問題 _[`issue #16`](http://issues.autojs6.com/16)_", "Promise.resolve() で返される Thenable がスクリプトの終了時に呼び出されない可能性のある問題", diff --git a/.changelog/lang_ko.json b/.changelog/lang_ko.json index 193401d1..dae6a80f 100644 --- a/.changelog/lang_ko.json +++ b/.changelog/lang_ko.json @@ -215,9 +215,9 @@ "레이아웃 분석은 창 전환을 지원합니다 (Auto.js Pro", "auto.clearCache 메소드는 제어 캐시를 지우는 것을 지원합니다 (Auto.js Pro", "threads.pool 메소드는 간단한 스레드 풀 응용 프로그램을 지원합니다 (Auto.js Pro", - "images.matchTemplate 메소드는 useTransparentMask 옵션 매개변수를 추가하여 투명 이미지 검색을 지원합니다 (Auto.js Pro", + "images.matchTemplate 메서드는 useTransparentMask 옵션 매개변수를 지원하며, 투명 이미지 검색을 지원합니다 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "images.requestScreenCaptureAsync 메소드는 UI 모드에서 비동기적으로 스크린 캡처 권한을 요청하는 데 사용됩니다 (Auto.js Pro", - "images.requestScreenCapture 메소드는 isAsync 옵션 매개변수를 추가하여 비동기적으로 스크린 캡처를 획득하는 것을 지원합니다 (Auto.js Pro", + "images.requestScreenCapture 메서드는 isAsync 옵션 매개변수를 지원하며, 비동기 방식으로 화면 캡처를 가져오는 것을 지원합니다 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "images.on('screen_capture', callback) 등의 이벤트 리스닝 메소드는 스크린 캡처가 사용 가능 이벤트를 모니터링하는 것을 지원합니다 (Auto.js Pro", "images.stopScreenCapture 메소드는 스크린 캡처 요청과 관련된 리소스를 적극 해제하는 것을 지원합니다 (Auto.js Pro", "images.psnr/mse/ssim/mssim/hist/ncc 및 images.getSimilarity 메소드는 이미지 유사성 측정값을 얻는 데 사용됩니다", @@ -371,7 +371,7 @@ "v6.4.2": { "released_date": "2023/11/15", "feature": [ - "dialogs.build() 옵션 매개변수 속성 inputSingleLine", + "dialogs.build 메서드는 inputSingleLine 옵션 매개변수를 지원합니다", "console.setTouchable 메서드 _[`issue #122`](http://issues.autojs6.com/122)_" ], "fix": [ @@ -840,10 +840,10 @@ "automator.lockScreen() 등 메서드 (샘플 코드 > 접근성 서비스 > Android 9 추가 참조)", "automator.headsethook() 등 메서드 (샘플 코드 > 접근성 서비스 > Android 11 추가 참조)", "automator.captureScreen() 메서드 (샘플 코드 > 접근성 서비스 > 스크린샷 가져오기 참조)", - "dialogs.build() 옵션 매개변수 속성 animation, linkify 등 (샘플 코드 > 대화상자 > 맞춤형 대화상자 참조)" + "dialogs.build 메서드는 animation, linkify 등의 옵션 매개변수를 지원합니다 (샘플 코드 > 대화상자 > 맞춤형 대화상자 참조)" ], "fix": [ - "dialogs.build() 옵션 매개변수 속성 inputHint, itemsSelectedIndex 등 기능 오류", + "dialogs.build 의 inputHint, itemsSelectedIndex 등의 옵션 매개변수가 비정상적으로 동작합니다", "JsDialog#on('multi_choice') 콜백 매개변수 기능 오류", "UiObject#parent().indexInParent() 항상 -1 을 반환하는 문제 _[`issue #16`](http://issues.autojs6.com/16)_", "Promise.resolve() 가 반환하는 Thenable 이 스크립트 종료 시 호출되지 않을 수 있는 문제", diff --git a/.changelog/lang_ru.json b/.changelog/lang_ru.json index a33988fb..59407136 100644 --- a/.changelog/lang_ru.json +++ b/.changelog/lang_ru.json @@ -215,9 +215,9 @@ "Анализ макета поддерживает изменение окна (Ссылка на [Auto.js Pro](https://g.pro.autojs.org/))", "Метод auto.clearCache поддерживает очистку кешей управления (Ссылка на [Auto.js Pro](https://g.pro.autojs.org/))", "Метод threads.pool поддерживает простое применение пулов потоков (Ссылка на [Auto.js Pro](https://g.pro.autojs.org/))", - "Метод images.matchTemplate добавляет параметр опции useTransparentMask для поддержки поиска прозрачного изображения (Ссылка на [Auto.js Pro](https://g.pro.autojs.org/))", + "Метод images.matchTemplate поддерживает параметр-опцию useTransparentMask, поддерживается поиск изображений с прозрачностью (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "Метод images.requestScreenCaptureAsync позволяет запрашивать разрешения на запись экрана асинхронно в режиме интерфейса (Ссылка на [Auto.js Pro](https://g.pro.autojs.org/))", - "Метод images.requestScreenCapture добавляет параметр опции isAsync для поддержки асинхронного захвата экрана (Ссылка на [Auto.js Pro](https://g.pro.autojs.org/))", + "Метод images.requestScreenCapture поддерживает параметр-опцию isAsync, поддерживается асинхронное получение снимка экрана (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "images.on('screen_capture', callback) и другие методы прослушивания событий поддерживают прослушивание событий доступности захвата экрана (Ссылка на [Auto.js Pro](https://g.pro.autojs.org/))", "Метод images.stopScreenCapture поддерживает активное освобождение ресурсов, связанных с приложениями захвата экрана (Ссылка на [Auto.js Pro](https://g.pro.autojs.org/))", "Методы Images.psnr/mse/ssim/mssim/hist/ncc и images.getSimilarity для получения метрик сходства изображений", @@ -371,7 +371,7 @@ "v6.4.2": { "released_date": "2023/11/15", "feature": [ - "Параметр опции inputSingleLine для dialogs.build()", + "Метод dialogs.build поддерживает параметр-опцию inputSingleLine", "Метод console.setTouchable _[`issue #122`](http://issues.autojs6.com/122)_" ], "fix": [ @@ -840,10 +840,10 @@ "Методы automator.lockScreen() и другие (см. Примеры > Сервисы доступности > Новое в Android 9)", "Методы automator.headsethook() и другие (см. Примеры > Сервисы доступности > Новое в Android 11)", "Метод automator.captureScreen() (см. Примеры > Сервисы доступности > Получение скриншотов)", - "Параметры опций метода dialogs.build() animation, linkify и другие (см. Примеры > Диалоги > Персонализированные диалоги)" + "Метод dialogs.build поддерживает параметры-опции, такие как animation, linkify и т. д. (см. Примеры > Диалоги > Персонализированные диалоги)" ], "fix": [ - "Неисправность параметров опций метода dialogs.build() inputHint, itemsSelectedIndex и другие", + "Параметры-опции inputHint, itemsSelectedIndex и т. д. в dialogs.build работают некорректно", "Неисправность параметров обратного вызова метода JsDialog#on('multi_choice')", "Проблема, в которой UiObject#parent().indexInParent() всегда возвращает -1 _[`issue #16`](http://issues.autojs6.com/16)_", "Возможная проблема с невызывающимся Thenable в Promise.resolve() в конце скрипта", diff --git a/.changelog/lang_zh-Hans.json b/.changelog/lang_zh-Hans.json index 780b24d2..2ac2bf42 100644 --- a/.changelog/lang_zh-Hans.json +++ b/.changelog/lang_zh-Hans.json @@ -1,7 +1,7 @@ { "$data": { "v6.7.0": { - "released_date": "2026/01/12", + "released_date": "2026/01/14", "feature": [ "插件中心功能, 支持插件的安装/卸载/更新等操作 (入口: 主页抽屉按钮)", "cvt 模块, 用于数据单位转换 (参阅 项目文档 > [单位转换](https://docs.autojs6.com/#/cvt))", @@ -14,6 +14,7 @@ "app.isDualInstalled 方法, 用于检测双开应用是否已安装 (需要 Shizuku 或 Root 权限) _[`issue #450`](http://issues.autojs6.com/450)_", "device.getSharedDeviceId 方法, 用于跨应用获取统一共享设备 ID _[`issue #455`](http://issues.autojs6.com/455)_", "device.setPointerLocation 等 Toggleablle 系列方法, 用于设置或获取指针位置系统设置项 _[`issue #381`](http://issues.autojs6.com/381)_", + "dialogs.build 方法支持 textAllCaps/(positive/negative/neutral)TextAllCaps 选项参数, 用于控制按钮文本是否全部大写", "images.loadAsync 方法, 用于异步获取网络图像资源 _[`issue #327`](http://issues.autojs6.com/327)_", "ui.getNavigationBarHeight 方法/navigationBarHeight 属性 (getter), 用于获取导航栏高度 _[`issue #456`](http://issues.autojs6.com/456)_", "ui.getVisible(Status/Navigation)BarHeight 方法/visible(Status/Navigation)BarHeight 属性 (getter), 用于快捷获取状态栏或导航栏可见高度 _[`issue #456`](http://issues.autojs6.com/456)_", @@ -56,6 +57,8 @@ "无法使用 console/toast 等方法显示 BigInt 数据类型的问题", "部分全局对象可能丢失 JavaScript 原型属性及方法的问题", "使用 XML 语法将 JavaScript 表达式作为属性值时, this 对象可能出现指向错误的问题", + "dialogs.build 方法无法使用 MaterialDialog.Builder 原生选项参数的问题", + "dialogs.build 方法可能破坏对象参数原有数据的问题", "canvas 元素控件 setMaxFps 方法内部帧率计算错误", "images.concat 方法纵向拼接时宽度值计算错误", "images.requestScreenCapture 方法调用时用户取消授权可能导致应用崩溃的问题", @@ -364,9 +367,9 @@ "布局分析支持切换窗口 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "auto.clearCache 方法, 支持清除控件缓存 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "threads.pool 方法, 支持线程池简单应用 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", - "images.matchTemplate 方法增加 useTransparentMask 选项参数, 支持透明找图 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", + "images.matchTemplate 方法支持 useTransparentMask 选项参数, 支持透明找图 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "images.requestScreenCaptureAsync 方法, 用于 UI 模式异步方式申请截图权限 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", - "images.requestScreenCapture 方法增加 isAsync 选项参数, 支持异步方式获取屏幕截图 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", + "images.requestScreenCapture 方法支持 isAsync 选项参数, 支持异步方式获取屏幕截图 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "images.on('screen_capture', callback) 等事件监听方法, 支持监听屏幕截图可用事件 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "images.stopScreenCapture 方法, 支持主动释放截图申请的相关资源 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "images.psnr/mse/ssim/mssim/hist/ncc 及 images.getSimilarity 方法, 用于获取图像相似性度量值", @@ -520,7 +523,7 @@ "v6.4.2": { "released_date": "2023/11/15", "feature": [ - "dialogs.build() 选项参数属性 inputSingleLine", + "dialogs.build 方法支持 inputSingleLine 选项参数", "console.setTouchable 方法 _[`issue #122`](http://issues.autojs6.com/122)_" ], "fix": [ @@ -989,10 +992,10 @@ "automator.lockScreen() 等方法 (参阅 示例代码 > 无障碍服务 > Android 9 新增)", "automator.headsethook() 等方法 (参阅 示例代码 > 无障碍服务 > Android 11 新增)", "automator.captureScreen() 方法 (参阅 示例代码 > 无障碍服务 > 获取屏幕截图)", - "dialogs.build() 选项参数属性 animation, linkify 等 (参阅 示例代码 > 对话框 > 个性化对话框)" + "dialogs.build 方法支持 animation, linkify 等选项参数 (参阅 示例代码 > 对话框 > 个性化对话框)" ], "fix": [ - "dialogs.build() 选项参数属性 inputHint, itemsSelectedIndex 等功能异常", + "dialogs.build 方法 inputHint, itemsSelectedIndex 等选项参数功能异常", "JsDialog#on('multi_choice') 回调参数功能异常", "UiObject#parent().indexInParent() 总是返回 -1 的问题 _[`issue #16`](http://issues.autojs6.com/16)_", "Promise.resolve() 返回的 Thenable 在临近脚本结束时可能不被调用的问题", diff --git a/.changelog/lang_zh-Hant-HK.json b/.changelog/lang_zh-Hant-HK.json index 1afca57a..535aec23 100644 --- a/.changelog/lang_zh-Hant-HK.json +++ b/.changelog/lang_zh-Hant-HK.json @@ -215,9 +215,9 @@ "佈局分析支持切換窗口 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "auto.clearCache 方法, 支持清除控件緩存 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "threads.pool 方法, 支持線程池簡單應用 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", - "images.matchTemplate 方法增加 useTransparentMask 選項參數, 支持透明找圖 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", + "images.matchTemplate 方法支持 useTransparentMask 選項參數, 支持透明找圖 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "images.requestScreenCaptureAsync 方法, 用於 UI 模式異步方式申請截圖權限 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", - "images.requestScreenCapture 方法增加 isAsync 選項參數, 支持異步方式獲取屏幕截圖 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", + "images.requestScreenCapture 方法支持 isAsync 選項參數, 支持異步方式獲取屏幕截圖 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "images.on('screen_capture', callback) 等事件監聽方法, 支持監聽屏幕截圖可用事件 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "images.stopScreenCapture 方法, 支持主動釋放截圖申請的相關資源 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "images.psnr/mse/ssim/mssim/hist/ncc 及 images.getSimilarity 方法, 用於獲取圖像相似性度量值", @@ -371,7 +371,7 @@ "v6.4.2": { "released_date": "2023/11/15", "feature": [ - "dialogs.build() 選項參數屬性 inputSingleLine", + "dialogs.build 方法支持 inputSingleLine 選項參數", "console.setTouchable 方法 _[`issue #122`](http://issues.autojs6.com/122)_" ], "fix": [ @@ -840,10 +840,10 @@ "automator.lockScreen() 等方法 (參閲 示例代碼 > 無障礙服務 > Android 9 新增)", "automator.headsethook() 等方法 (參閲 示例代碼 > 無障礙服務 > Android 11 新增)", "automator.captureScreen() 方法 (參閲 示例代碼 > 無障礙服務 > 獲取屏幕截圖)", - "dialogs.build() 選項參數屬性 animation, linkify 等 (參閲 示例代碼 > 對話框 > 個性化對話框)" + "dialogs.build 方法支持 animation, linkify 等選項參數 (參閲 示例代碼 > 對話框 > 個性化對話框)" ], "fix": [ - "dialogs.build() 選項參數屬性 inputHint, itemsSelectedIndex 等功能異常", + "dialogs.build 方法 inputHint, itemsSelectedIndex 等選項參數功能異常", "JsDialog#on('multi_choice') 回調參數功能異常", "UiObject#parent().indexInParent() 總是返回 -1 的問題 _[`issue #16`](http://issues.autojs6.com/16)_", "Promise.resolve() 返回的 Thenable 在臨近腳本結束時可能不被調用的問題", diff --git a/.changelog/lang_zh-Hant-TW.json b/.changelog/lang_zh-Hant-TW.json index 83c0ba19..c271daa4 100644 --- a/.changelog/lang_zh-Hant-TW.json +++ b/.changelog/lang_zh-Hant-TW.json @@ -215,9 +215,9 @@ "佈局分析支援切換視窗 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "auto.clearCache 方法, 支援清除控制元件快取 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "threads.pool 方法, 支援執行緒池簡單應用 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", - "images.matchTemplate 方法增加 useTransparentMask 選項引數, 支援透明找圖 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", + "images.matchTemplate 方法支援 useTransparentMask 選項引數, 支援透明找圖 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "images.requestScreenCaptureAsync 方法, 用於 UI 模式非同步方式申請截圖許可權 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", - "images.requestScreenCapture 方法增加 isAsync 選項引數, 支援非同步方式獲取螢幕截圖 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", + "images.requestScreenCapture 方法支援 isAsync 選項引數, 支援非同步方式獲取螢幕截圖 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "images.on('screen_capture', callback) 等事件監聽方法, 支援監聽螢幕截圖可用事件 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "images.stopScreenCapture 方法, 支援主動釋放截圖申請的相關資源 (Ref to [Auto.js Pro](https://g.pro.autojs.org/))", "images.psnr/mse/ssim/mssim/hist/ncc 及 images.getSimilarity 方法, 用於獲取影象相似性度量值", @@ -371,7 +371,7 @@ "v6.4.2": { "released_date": "2023/11/15", "feature": [ - "dialogs.build() 選項引數屬性 inputSingleLine", + "dialogs.build 方法支援 inputSingleLine 選項引數", "console.setTouchable 方法 _[`issue #122`](http://issues.autojs6.com/122)_" ], "fix": [ @@ -840,10 +840,10 @@ "automator.lockScreen() 等方法 (參閱 示例程式碼 > 無障礙服務 > Android 9 新增)", "automator.headsethook() 等方法 (參閱 示例程式碼 > 無障礙服務 > Android 11 新增)", "automator.captureScreen() 方法 (參閱 示例程式碼 > 無障礙服務 > 獲取螢幕截圖)", - "dialogs.build() 選項引數屬性 animation, linkify 等 (參閱 示例程式碼 > 對話方塊 > 個性化對話方塊)" + "dialogs.build 方法支援 animation, linkify 等選項引數 (參閱 示例程式碼 > 對話方塊 > 個性化對話方塊)" ], "fix": [ - "dialogs.build() 選項引數屬性 inputHint, itemsSelectedIndex 等功能異常", + "dialogs.build 方法 inputHint, itemsSelectedIndex 等選項引數功能異常", "JsDialog#on('multi_choice') 回撥引數功能異常", "UiObject#parent().indexInParent() 總是返回 -1 的問題 _[`issue #16`](http://issues.autojs6.com/16)_", "Promise.resolve() 返回的 Thenable 在臨近指令碼結束時可能不被呼叫的問題", diff --git a/app/src/main/java/org/autojs/autojs/runtime/api/augment/dialogs/Dialogs.kt b/app/src/main/java/org/autojs/autojs/runtime/api/augment/dialogs/Dialogs.kt index 24241a7a..199dfd9c 100644 --- a/app/src/main/java/org/autojs/autojs/runtime/api/augment/dialogs/Dialogs.kt +++ b/app/src/main/java/org/autojs/autojs/runtime/api/augment/dialogs/Dialogs.kt @@ -26,7 +26,6 @@ import org.autojs.autojs.runtime.ScriptRuntime import org.autojs.autojs.runtime.api.augment.Augmentable import org.autojs.autojs.runtime.api.augment.colors.Colors import org.autojs.autojs.runtime.api.augment.ui.UI -import org.autojs.autojs.runtime.exception.ShouldNeverHappenException import org.autojs.autojs.runtime.exception.WrappedIllegalArgumentException import org.autojs.autojs.util.RhinoUtils import org.autojs.autojs.util.RhinoUtils.NOT_CONSTRUCTABLE @@ -46,6 +45,7 @@ import org.mozilla.javascript.BaseFunction import org.mozilla.javascript.Context import org.mozilla.javascript.NativeArray import org.mozilla.javascript.NativeObject +import org.mozilla.javascript.Scriptable class Dialogs(scriptRuntime: ScriptRuntime) : Augmentable(scriptRuntime) { @@ -112,12 +112,15 @@ class Dialogs(scriptRuntime: ScriptRuntime) : Augmentable(scriptRuntime) { @JvmStatic @RhinoRuntimeFunctionInterface fun build(scriptRuntime: ScriptRuntime, args: Array): JsDialog = ensureArgumentsAtMost(args, 1) { argList -> - var (properties) = argList - if (properties.isJsNullish()) { - properties = newNativeObject().also { o -> o.defineProp("preset", true) } + val (propertiesRaw) = argList + require(propertiesRaw is NativeObject || propertiesRaw.isJsNullish()) { + "Argument properties ${propertiesRaw.jsBrief()} must be a JavaScript Object for dialogs.build" } - require(properties is NativeObject) { - "Argument properties ${properties.jsBrief()} must be a JavaScript Object for dialogs.build" + val properties = when { + propertiesRaw.isJsNullish() -> { + newNativeObject().also { o -> o.defineProp("preset", true) } + } + else -> RhinoUtils.js_object_assign(newNativeObject(), propertiesRaw as Scriptable) as NativeObject } if (properties.inquire("preset", ::coerceBoolean, false)) { checkPreset(properties, "title", R.string.text_preset_dialog_title) @@ -129,7 +132,7 @@ class Dialogs(scriptRuntime: ScriptRuntime) : Augmentable(scriptRuntime) { val builder = scriptRuntime.dialogs.newBuilder().also { it.thread = scriptRuntime.threads.currentThread() } - properties.forEach { entry -> + properties.minus("preset").forEach { entry -> val (nameArg) = entry val name = coerceString(nameArg) applyDialogProperty(builder, name, properties.prop(name)) @@ -452,7 +455,6 @@ class Dialogs(scriptRuntime: ScriptRuntime) : Augmentable(scriptRuntime) { } private fun applyDialogProperty(builder: JsDialogBuilder, name: String, value: Any?) { - if (!propertySetterMap.containsKey(name)) return when (val propertySetter = propertySetterMap[name]) { CVT_DEFAULT -> invokeMethod(builder, name, arrayOf(value)) CVT_DEFAULT_STRICT_BOOLEAN -> { @@ -470,7 +472,7 @@ class Dialogs(scriptRuntime: ScriptRuntime) : Augmentable(scriptRuntime) { } else -> invokeMethod(builder, propertySetter, arrayOf(value)) } - else -> throw ShouldNeverHappenException() + else -> invokeMethod(builder, name, arrayOf(value)) } } diff --git a/modules/material-dialogs/src/main/java/com/afollestad/materialdialogs/DialogInit.java b/modules/material-dialogs/src/main/java/com/afollestad/materialdialogs/DialogInit.java index 1c2b0fa1..f3d94aa5 100644 --- a/modules/material-dialogs/src/main/java/com/afollestad/materialdialogs/DialogInit.java +++ b/modules/material-dialogs/src/main/java/com/afollestad/materialdialogs/DialogInit.java @@ -304,12 +304,19 @@ class DialogInit { dialog.view.setButtonGravity(builder.buttonsGravity); dialog.view.setButtonStackedGravity(builder.btnStackedGravity); dialog.view.setStackingBehavior(builder.stackingBehavior); + boolean textAllCaps; textAllCaps = DialogUtils.resolveBoolean(builder.context, android.R.attr.textAllCaps, true); MDButton positiveTextView = dialog.positiveButton; dialog.setTypeface(positiveTextView, builder.mediumFont); - positiveTextView.setAllCapsCompat(textAllCaps); + if (builder.positiveTextAllCaps != null) { + positiveTextView.setAllCapsCompat(builder.positiveTextAllCaps); + } else if (builder.textAllCaps != null) { + positiveTextView.setAllCapsCompat(builder.textAllCaps); + } else { + positiveTextView.setAllCapsCompat(textAllCaps); + } positiveTextView.setText(builder.positiveText); positiveTextView.setTextColor(builder.positiveColor); dialog.positiveButton.setStackedSelector(dialog.getButtonSelector(DialogAction.POSITIVE, true)); @@ -320,7 +327,13 @@ class DialogInit { MDButton negativeTextView = dialog.negativeButton; dialog.setTypeface(negativeTextView, builder.mediumFont); - negativeTextView.setAllCapsCompat(textAllCaps); + if (builder.negativeTextAllCaps != null) { + negativeTextView.setAllCapsCompat(builder.negativeTextAllCaps); + } else if (builder.textAllCaps != null) { + negativeTextView.setAllCapsCompat(builder.textAllCaps); + } else { + negativeTextView.setAllCapsCompat(textAllCaps); + } negativeTextView.setText(builder.negativeText); negativeTextView.setTextColor(builder.negativeColor); dialog.negativeButton.setStackedSelector(dialog.getButtonSelector(DialogAction.NEGATIVE, true)); @@ -331,7 +344,13 @@ class DialogInit { MDButton neutralTextView = dialog.neutralButton; dialog.setTypeface(neutralTextView, builder.mediumFont); - neutralTextView.setAllCapsCompat(textAllCaps); + if (builder.neutralTextAllCaps != null) { + neutralTextView.setAllCapsCompat(builder.neutralTextAllCaps); + } else if (builder.textAllCaps != null) { + neutralTextView.setAllCapsCompat(builder.textAllCaps); + } else { + neutralTextView.setAllCapsCompat(textAllCaps); + } neutralTextView.setText(builder.neutralText); neutralTextView.setTextColor(builder.neutralColor); dialog.neutralButton.setStackedSelector(dialog.getButtonSelector(DialogAction.NEUTRAL, true)); diff --git a/modules/material-dialogs/src/main/java/com/afollestad/materialdialogs/MaterialDialog.java b/modules/material-dialogs/src/main/java/com/afollestad/materialdialogs/MaterialDialog.java index 78349f73..9836e162 100644 --- a/modules/material-dialogs/src/main/java/com/afollestad/materialdialogs/MaterialDialog.java +++ b/modules/material-dialogs/src/main/java/com/afollestad/materialdialogs/MaterialDialog.java @@ -14,7 +14,6 @@ import android.text.TextUtils; import android.text.TextWatcher; import android.util.Log; import android.view.LayoutInflater; -import android.view.Menu; import android.view.View; import android.view.ViewGroup; import android.view.ViewTreeObserver; @@ -57,7 +56,6 @@ import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.Locale; -import java.util.Map; /** @author Aidan Follestad (afollestad) */ public class MaterialDialog extends DialogBase implements View.OnClickListener, DefaultRvAdapter.InternalListCallback { @@ -1079,6 +1077,10 @@ public class MaterialDialog extends DialogBase implements View.OnClickListener, protected CharSequence positiveText; protected CharSequence neutralText; protected CharSequence negativeText; + protected Boolean positiveTextAllCaps = null; + protected Boolean negativeTextAllCaps = null; + protected Boolean neutralTextAllCaps = null; + protected Boolean textAllCaps = null; protected boolean positiveFocus; protected boolean neutralFocus; protected boolean negativeFocus; @@ -1634,6 +1636,11 @@ public class MaterialDialog extends DialogBase implements View.OnClickListener, return this; } + public Builder positiveTextAllCaps(boolean allCaps) { + this.positiveTextAllCaps = allCaps; + return this; + } + public Builder positiveColor(@ColorInt int color) { return positiveColor(DialogUtils.getActionTextStateList(context, color)); } @@ -1670,6 +1677,11 @@ public class MaterialDialog extends DialogBase implements View.OnClickListener, return this; } + public Builder neutralTextAllCaps(boolean allCaps) { + this.neutralTextAllCaps = allCaps; + return this; + } + public Builder negativeColor(@ColorInt int color) { return negativeColor(DialogUtils.getActionTextStateList(context, color)); } @@ -1701,6 +1713,11 @@ public class MaterialDialog extends DialogBase implements View.OnClickListener, return this; } + public Builder negativeTextAllCaps(boolean allCaps) { + this.negativeTextAllCaps = allCaps; + return this; + } + public Builder negativeFocus(boolean isFocusedDefault) { this.negativeFocus = isFocusedDefault; return this; @@ -2006,6 +2023,11 @@ public class MaterialDialog extends DialogBase implements View.OnClickListener, return this; } + public Builder textAllCaps(boolean allCaps) { + this.textAllCaps = allCaps; + return this; + } + /** * Sets a custom {@link androidx.recyclerview.widget.RecyclerView.Adapter} for the dialog's list * diff --git a/version.properties b/version.properties index 99d57296..c06df7a2 100644 --- a/version.properties +++ b/version.properties @@ -1,5 +1,5 @@ -#Mon Jan 12 23:37:01 CST 2026 -BUILD_TIME=1768232221256 +#Wed Jan 14 12:05:43 CST 2026 +BUILD_TIME=1768363543414 COMPILE_SDK_VERSION=36 IMAGE_QUANT_CMAKE_VERSION=3.22.1 IMAGE_QUANT_NDK_VERSION=26.1.10909125 @@ -27,6 +27,6 @@ RAPID_OCR_OPENCV_MOBILE_LABEL_VERSION=13 RAPID_OCR_OPENCV_MOBILE_VERSION=4.5.3 TARGET_SDK_VERSION=36 TARGET_SDK_VERSION_INRT=29 -VERSION_BUILD=3601 +VERSION_BUILD=3607 VERSION_NAME=6.7.0 Alpha14 VSCODE_EXT_REQUIRED_VERSION=1.0.13