From cf8d0a6c0752c17cca2e51af47eb8cac70bd25b8 Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Mon, 16 May 2022 01:07:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AD=97=E5=B9=95=E8=BF=87?= =?UTF-8?q?=E5=A4=A7=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yutou/bilibili/Tools/AssTools.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/yutou/bilibili/Tools/AssTools.java b/src/main/java/com/yutou/bilibili/Tools/AssTools.java index e476661..653326f 100644 --- a/src/main/java/com/yutou/bilibili/Tools/AssTools.java +++ b/src/main/java/com/yutou/bilibili/Tools/AssTools.java @@ -55,15 +55,15 @@ public class AssTools { addBuilder("Original Script: 本字幕由@yutou生成"); addBuilder("ScriptType: v4.00+"); addBuilder("Collisions: Normal"); - addBuilder("PlayResX: 560"); - addBuilder("PlayResY: 420"); + addBuilder("PlayResX: 1920"); + addBuilder("PlayResY: 1080"); addBuilder("Timer: 10.0000"); addBuilder(""); addBuilder("[V4+ Styles]"); addBuilder("Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, "); addBuilder("MarginL, MarginR, MarginV, Encoding"); - addBuilder("Style: Fix,Microsoft YaHei UI,25,&H66FFFFFF,&H66FFFFFF,&H66000000,&H66000000,1,0,0,0,100,100,0,0,1,2,0,2,20,20,2,0"); - addBuilder("Style: R2L,Microsoft YaHei UI,25,&H66FFFFFF,&H66FFFFFF,&H66000000,&H66000000,1,0,0,0,100,100,0,0,1,2,0,2,20,20,2,0"); + addBuilder("Style: Fix,Microsoft YaHei UI,45,&H66FFFFFF,&H66FFFFFF,&H66000000,&H66000000,1,0,0,0,100,100,0,0,1,2,0,2,20,20,2,0"); + addBuilder("Style: R2L,Microsoft YaHei UI,45,&H66FFFFFF,&H66FFFFFF,&H66000000,&H66000000,1,0,0,0,100,100,0,0,1,2,0,2,20,20,2,0"); addBuilder(""); addBuilder("[Events]"); addBuilder("Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text"); @@ -130,7 +130,7 @@ public class AssTools { new DecimalFormat("00").format(m), new DecimalFormat("00").format(s)); float x1, x2; - x1 = 560 + (danmuData.getDanmu().length() * 12.5f); + x1 = 1920 + (danmuData.getDanmu().length() * 12.5f); x2 = 0 - (danmuData.getDanmu().length() * 12.5f); String ass = String.format("Dialogue: 0,%s,%s,R2L,,20,20,2,,{\\move(%.1f,%d,%.1f,%d)\\c&%s\\alpha&H%s}%s", @@ -149,9 +149,9 @@ public class AssTools { private void addY() { - y += 25; - if (y >= 420) { - y = 25; + y += 30; + if (y >= 1080) { + y = 30; } }