Translations:Touhou Patch Center:Tutorial/25/zh-hant: Difference between revisions

From Touhou Patch Center
Jump to navigation Jump to search
No edit summary
No edit summary
Line 9: Line 9:
       "valign": "top" | "center" | "bottom", //在註解高度未能超出註解區域的高度時的垂直對齊方向。默認爲“Bottom”(底端)。
       "valign": "top" | "center" | "bottom", //在註解高度未能超出註解區域的高度時的垂直對齊方向。默認爲“Bottom”(底端)。
       "font": "'MS Gothic' 32 0 400 DEFAULT_QUALITY", //使用與字型策略相同的字型語法,可參考https://github.com/thpatch/thcrap/blob/23fd91a/thcrap/src/textdisp.h,同樣適用於那些相同的置換規則。
       "font": "'MS Gothic' 32 0 400 DEFAULT_QUALITY", //使用與字型策略相同的字型語法,可參考https://github.com/thpatch/thcrap/blob/23fd91a/thcrap/src/textdisp.h,同樣適用於那些相同的置換規則。
       "outline_radius": 2, // Capped at 15, because it's drawn on the CPU and actually not that fast, and everything larger just *really* looks bad.邊框寬度,最大值為15,這一制限是因為邊框由CPU繪製,不會很快,而且各個物件都很大的話真的很難看。
       "outline_radius": 2, //邊框寬度,最大值為15,這一制限是因為邊框由CPU繪製,不會很快,而且各個物件都很大的話真的很難看。
   }
   }
}</pre>
}</pre>

Revision as of 09:45, 21 December 2019

Message definition (Touhou Patch Center:Tutorial)
Advanced configuration either in global.js (for all games), <game ID> (for a specific game), or in your runconfig:
<pre>{
   "tlnotes": {
       "reference_resolution": [1280, 960], // Valid for all games, even the 640×480 ones. Font and region size are relative to this one. You typically don't need to change this.
       "region_topleft": [x, y],
       "region_size": [width, height],
       "read_speed": 35, // In UTF-8 bytes per second; determines the scrolling speed of longer TL notes that exceed the size of the region. Higher is faster.
       "fade_ms": 500, // Fade-in speed.
       "valign": "top" | "center" | "bottom", // Vertical alignment for notes that are shorter than the height of the TL note region. Default is "bottom".
       "font": "'MS Gothic' 32 0 400 DEFAULT_QUALITY", // Using the same font syntax used for fontrules, explained in https://github.com/thpatch/thcrap/blob/master/thcrap/src/textdisp.h. Also subject to those same replacement rules.
       "outline_radius": 2, // Capped at 15, because it's drawn on the CPU and actually not that fast, and everything larger just *really* looks bad.
   }
}</pre>

高級配置可以在global.js(用於所有遊戲),<game ID>(用於特定遊戲)或者你的運行配置中設定:

{
   "tlnotes": {
       "reference_resolution": [1280, 960], // 可用於所有遊戲,即使分辨率為640×480也可以使用。字型與渲染區域大小與此項設定有關,一般不必修改。
       "region_topleft": [x, y], //渲染區域到左端和頂端的距離
       "region_size": [width, height], //渲染區域的寬和高
       "read_speed": 35, //以每秒UTF-8格式下的字節為單位,決定了超出了渲染區域的較長翻譯註解的滾動速率,值越大速度越快。
       "fade_ms": 500, //漸變動畫速度。
       "valign": "top" | "center" | "bottom", //在註解高度未能超出註解區域的高度時的垂直對齊方向。默認爲“Bottom”(底端)。
       "font": "'MS Gothic' 32 0 400 DEFAULT_QUALITY", //使用與字型策略相同的字型語法,可參考https://github.com/thpatch/thcrap/blob/23fd91a/thcrap/src/textdisp.h,同樣適用於那些相同的置換規則。
       "outline_radius": 2, //邊框寬度,最大值為15,這一制限是因為邊框由CPU繪製,不會很快,而且各個物件都很大的話真的很難看。
   }
}