From 7f3e6b001985f3f62f01cc453f731b5c70ce4f72 Mon Sep 17 00:00:00 2001 From: routersys Date: Wed, 1 Jul 2026 14:03:59 +0900 Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E8=A8=80=E8=AA=9E=E3=83=89=E3=82=AD?= =?UTF-8?q?=E3=83=A5=E3=83=A1=E3=83=B3=E3=83=88=E3=81=ABdrawtarget?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E8=A8=98=E3=81=97draw=5Fstate=E3=82=92?= =?UTF-8?q?=E4=B8=A1=E3=82=A8=E3=83=B3=E3=82=B8=E3=83=B3=E5=AF=BE=E5=BF=9C?= =?UTF-8?q?=E3=81=B8=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LuaScript/docs/LuaScript.ar-sa.txt | 8 ++++++++ LuaScript/docs/LuaScript.en-us.txt | 11 ++++++++++- LuaScript/docs/LuaScript.es-es.txt | 9 +++++++++ LuaScript/docs/LuaScript.id-id.txt | 12 ++++++++++-- LuaScript/docs/LuaScript.ja-jp.txt | 11 ++++++++++- LuaScript/docs/LuaScript.ko-kr.txt | 13 +++++++++++-- LuaScript/docs/LuaScript.zh-cn.txt | 10 ++++++++-- LuaScript/docs/LuaScript.zh-tw.txt | 10 ++++++++-- 8 files changed, 74 insertions(+), 10 deletions(-) diff --git a/LuaScript/docs/LuaScript.ar-sa.txt b/LuaScript/docs/LuaScript.ar-sa.txt index 586ca7f..d3c9ae4 100644 --- a/LuaScript/docs/LuaScript.ar-sa.txt +++ b/LuaScript/docs/LuaScript.ar-sa.txt @@ -503,6 +503,14 @@ "draw_state" : قيمة منطقية تحدد ما إذا كان هذا التأثير يُخرج صورة العمل. true تُخرج صورة العمل، وfalse تمرر الدخل كما هو. تُستخدم لإخراج صورة العمل دون obj.draw أو setpixel، أو لإيقاف الإخراج. + تعمل في المحركين معاً. + "drawtarget" : يبدّل وجهة رسم obj.draw / obj.drawpoly. + "framebuffer" (الافتراضي) يركّب في مخزن الإطار. "tempbuffer" + يركّب في مخزن العمل tmp مباشرة. في + obj.setoption("drawtarget", "tempbuffer", w, h) تُحدد w, h حجم + تهيئة مخزن tmp، وحذفهما يُبقيه كما هو. أعِد نتيجة tmp إلى صورة + العمل عبر obj.copybuffer("obj", "tmp"). التركيب في tempbuffer + عادي (source-over)، وblend يُطبَّق على الرسم في framebuffer. تنطبق على نصوص الرسم التي تعمل على محرك MoonSharp. ○ obj.pixeloption(name, value) diff --git a/LuaScript/docs/LuaScript.en-us.txt b/LuaScript/docs/LuaScript.en-us.txt index 7d5b12f..d3b7c3c 100644 --- a/LuaScript/docs/LuaScript.en-us.txt +++ b/LuaScript/docs/LuaScript.en-us.txt @@ -520,7 +520,16 @@ "draw_state" : a boolean that decides whether this effect emits its working image. true outputs the working image; false passes the input through unchanged. Use it to emit the working image - without obj.draw or setpixel, or to suppress the output. It + without obj.draw or setpixel, or to suppress the output. It works + in both engines. + "drawtarget" : switches the destination of obj.draw / obj.drawpoly. + "framebuffer" (default) composites into the frame buffer. + "tempbuffer" composites into the working tmp buffer in place. In + obj.setoption("drawtarget", "tempbuffer", w, h) the w, h give the + size to initialize the tmp buffer; omit them to keep it. Bring the + tmp result back to the working image with + obj.copybuffer("obj", "tmp"). Compositing into tempbuffer is + normal (source-over); blend applies to framebuffer drawing. It applies to drawing scripts that run on the MoonSharp engine. o obj.pixeloption(name, value) diff --git a/LuaScript/docs/LuaScript.es-es.txt b/LuaScript/docs/LuaScript.es-es.txt index 0ad30f6..536ff89 100644 --- a/LuaScript/docs/LuaScript.es-es.txt +++ b/LuaScript/docs/LuaScript.es-es.txt @@ -524,6 +524,15 @@ imagen de trabajo. true emite la imagen de trabajo; false deja pasar la entrada sin cambios. Sirve para emitir la imagen de trabajo sin obj.draw ni setpixel, o para suprimir la salida. + Funciona en ambos motores. + "drawtarget" : cambia el destino de obj.draw / obj.drawpoly. + "framebuffer" (por defecto) compone en el búfer de fotograma. + "tempbuffer" compone en el búfer de trabajo tmp en el momento. En + obj.setoption("drawtarget", "tempbuffer", w, h) los valores w, h + dan el tamaño con que se inicializa el búfer tmp; omítelos para + conservarlo. Recupera el resultado de tmp a la imagen de trabajo + con obj.copybuffer("obj", "tmp"). La composición en tempbuffer es + normal (source-over); blend se aplica al dibujo en framebuffer. Se aplica a los scripts de dibujo que corren en el motor MoonSharp. diff --git a/LuaScript/docs/LuaScript.id-id.txt b/LuaScript/docs/LuaScript.id-id.txt index c5cac44..a597bdd 100644 --- a/LuaScript/docs/LuaScript.id-id.txt +++ b/LuaScript/docs/LuaScript.id-id.txt @@ -519,8 +519,16 @@ mengeluarkan citra kerjanya. true mengeluarkan citra kerja; false meneruskan input apa adanya. Berguna untuk mengeluarkan citra kerja tanpa obj.draw atau setpixel, atau untuk menekan - keluaran. Berlaku untuk skrip gambar yang berjalan pada mesin - MoonSharp. + keluaran. Bekerja pada kedua mesin. + "drawtarget" : mengganti tujuan gambar obj.draw / obj.drawpoly. + "framebuffer" (bawaan) mengomposit ke frame buffer. "tempbuffer" + mengomposit ke buffer kerja tmp secara langsung. Pada + obj.setoption("drawtarget", "tempbuffer", w, h), w, h adalah + ukuran untuk menginisialisasi buffer tmp; hilangkan untuk + mempertahankannya. Kembalikan hasil tmp ke citra kerja dengan + obj.copybuffer("obj", "tmp"). Komposit ke tempbuffer bersifat + normal (source-over); blend berlaku untuk gambar ke framebuffer. + Berlaku untuk skrip gambar yang berjalan pada mesin MoonSharp. o obj.pixeloption(name, value) Menyimpan opsi untuk operasi piksel sebagai status. diff --git a/LuaScript/docs/LuaScript.ja-jp.txt b/LuaScript/docs/LuaScript.ja-jp.txt index a1905bf..e401523 100644 --- a/LuaScript/docs/LuaScript.ja-jp.txt +++ b/LuaScript/docs/LuaScript.ja-jp.txt @@ -506,7 +506,16 @@ 真偽値で決めます。true で作業画像を出力し、false で入力を そのまま通します。obj.draw や setpixel を使わずに作業画像を そのまま出力させたいときや、逆に出力を止めたいときに使います。 - MoonSharp エンジンで動く描画系スクリプトが対象です。 + 両エンジンで動きます。 + "drawtarget" : obj.draw / obj.drawpoly の描画先を切り替えます。 + "framebuffer"(既定)ではフレームバッファへ合成します。 + "tempbuffer" では作業用の tmp バッファへその場で合成します。 + obj.setoption("drawtarget", "tempbuffer", w, h) の w, h は + tmp バッファを初期化するサイズで、省略すると初期化しません。 + tmp へ描いた結果は obj.copybuffer("obj", "tmp") で作業画像へ + 戻せます。tempbuffer への合成は通常(ソースオーバー)で、blend は + framebuffer への描画に適用されます。MoonSharp エンジンで動く + 描画系スクリプトが対象です。 ○obj.pixeloption(名前, 値) ピクセル操作のオプションを状態として保持します。 diff --git a/LuaScript/docs/LuaScript.ko-kr.txt b/LuaScript/docs/LuaScript.ko-kr.txt index 0f9e24b..6209ed0 100644 --- a/LuaScript/docs/LuaScript.ko-kr.txt +++ b/LuaScript/docs/LuaScript.ko-kr.txt @@ -498,8 +498,17 @@ "draw_state" : 이 이펙트가 작업 이미지를 출력할지를 불리언으로 정합니다. true는 작업 이미지를 출력하고, false는 입력을 그대로 통과시킵니다. obj.draw나 setpixel을 쓰지 않고 작업 이미지를 - 출력하거나, 반대로 출력을 막을 때 사용합니다. MoonSharp - 엔진에서 동작하는 그리기 스크립트가 대상입니다. + 출력하거나, 반대로 출력을 막을 때 사용합니다. 두 엔진 모두에서 + 동작합니다. + "drawtarget" : obj.draw / obj.drawpoly의 그리기 대상을 바꿉니다. + "framebuffer"(기본)는 프레임 버퍼에 합성합니다. "tempbuffer"는 + 작업용 tmp 버퍼에 즉시 합성합니다. + obj.setoption("drawtarget", "tempbuffer", w, h)의 w, h는 tmp + 버퍼를 초기화하는 크기이며, 생략하면 초기화하지 않습니다. tmp에 + 그린 결과는 obj.copybuffer("obj", "tmp")로 작업 이미지에 되돌릴 + 수 있습니다. tempbuffer로의 합성은 보통(소스 오버)이며, blend는 + framebuffer 그리기에 적용됩니다. MoonSharp 엔진에서 동작하는 + 그리기 스크립트가 대상입니다. ○ obj.pixeloption(이름, 값) 픽셀 조작 옵션을 상태로 보존합니다. diff --git a/LuaScript/docs/LuaScript.zh-cn.txt b/LuaScript/docs/LuaScript.zh-cn.txt index a915fdb..efac6cd 100644 --- a/LuaScript/docs/LuaScript.zh-cn.txt +++ b/LuaScript/docs/LuaScript.zh-cn.txt @@ -488,8 +488,14 @@ 将按 0(普通)处理。 "draw_state" : 用布尔值决定该效果是否输出工作图像。true 输出 工作图像,false 则原样传递输入。可用于不使用 obj.draw 或 - setpixel 也输出工作图像,或反过来抑制输出。适用于在 MoonSharp - 引擎上运行的绘制类脚本。 + setpixel 也输出工作图像,或反过来抑制输出。两个引擎都可用。 + "drawtarget" : 切换 obj.draw / obj.drawpoly 的绘制目标。 + "framebuffer"(默认)合成到帧缓冲。"tempbuffer" 则就地合成到 + 工作用 tmp 缓冲。obj.setoption("drawtarget", "tempbuffer", w, h) + 中的 w, h 是初始化 tmp 缓冲的尺寸,省略则不初始化。画到 tmp 的 + 结果可用 obj.copybuffer("obj", "tmp") 取回工作图像。合成到 + tempbuffer 使用普通(源覆盖),blend 应用于 framebuffer 的绘制。 + 适用于在 MoonSharp 引擎上运行的绘制类脚本。 ○ obj.pixeloption(名称, 值) 将像素操作的选项作为状态保存。 diff --git a/LuaScript/docs/LuaScript.zh-tw.txt b/LuaScript/docs/LuaScript.zh-tw.txt index 64d1df1..4aedfe8 100644 --- a/LuaScript/docs/LuaScript.zh-tw.txt +++ b/LuaScript/docs/LuaScript.zh-tw.txt @@ -489,8 +489,14 @@ 超出範圍或無效的值將視為 0(一般)。 "draw_state" : 以布林值決定此效果是否輸出工作影像。true 輸出 工作影像,false 則原樣傳遞輸入。可用於不使用 obj.draw 或 - setpixel 也輸出工作影像,或反過來抑制輸出。適用於在 MoonSharp - 引擎上執行的繪製類腳本。 + setpixel 也輸出工作影像,或反過來抑制輸出。兩個引擎都可用。 + "drawtarget" : 切換 obj.draw / obj.drawpoly 的繪製目標。 + "framebuffer"(預設)合成到影格緩衝。"tempbuffer" 則就地合成到 + 工作用 tmp 緩衝。obj.setoption("drawtarget", "tempbuffer", w, h) + 中的 w, h 是初始化 tmp 緩衝的尺寸,省略則不初始化。畫到 tmp 的 + 結果可用 obj.copybuffer("obj", "tmp") 取回工作影像。合成到 + tempbuffer 使用一般(來源覆蓋),blend 套用於 framebuffer 的繪製。 + 適用於在 MoonSharp 引擎上執行的繪製類腳本。 ○ obj.pixeloption(名稱, 值) 將像素操作的選項作為狀態保存。