修复字幕过大问题
This commit is contained in:
parent
f3f7988de5
commit
cf8d0a6c07
@ -55,15 +55,15 @@ public class AssTools {
|
|||||||
addBuilder("Original Script: 本字幕由@yutou生成");
|
addBuilder("Original Script: 本字幕由@yutou生成");
|
||||||
addBuilder("ScriptType: v4.00+");
|
addBuilder("ScriptType: v4.00+");
|
||||||
addBuilder("Collisions: Normal");
|
addBuilder("Collisions: Normal");
|
||||||
addBuilder("PlayResX: 560");
|
addBuilder("PlayResX: 1920");
|
||||||
addBuilder("PlayResY: 420");
|
addBuilder("PlayResY: 1080");
|
||||||
addBuilder("Timer: 10.0000");
|
addBuilder("Timer: 10.0000");
|
||||||
addBuilder("");
|
addBuilder("");
|
||||||
addBuilder("[V4+ Styles]");
|
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("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("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: 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,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,45,&H66FFFFFF,&H66FFFFFF,&H66000000,&H66000000,1,0,0,0,100,100,0,0,1,2,0,2,20,20,2,0");
|
||||||
addBuilder("");
|
addBuilder("");
|
||||||
addBuilder("[Events]");
|
addBuilder("[Events]");
|
||||||
addBuilder("Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text");
|
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(m),
|
||||||
new DecimalFormat("00").format(s));
|
new DecimalFormat("00").format(s));
|
||||||
float x1, x2;
|
float x1, x2;
|
||||||
x1 = 560 + (danmuData.getDanmu().length() * 12.5f);
|
x1 = 1920 + (danmuData.getDanmu().length() * 12.5f);
|
||||||
x2 = 0 - (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",
|
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() {
|
private void addY() {
|
||||||
y += 25;
|
y += 30;
|
||||||
if (y >= 420) {
|
if (y >= 1080) {
|
||||||
y = 25;
|
y = 30;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user