diff --git a/C Gradient.lua b/C Gradient.lua index ad101cd..57f5226 100644 --- a/C Gradient.lua +++ b/C Gradient.lua @@ -7,9 +7,9 @@ Updated on Fre.8th, 2021 --Script properties script_name="C Gradient" -script_description="Gradient v2.0" +script_description="Gradient v2.0.1" script_author="chaaaaang" -script_version="1.0" +script_version="2.0.1" include("karaskel.lua") util = require 'aegisub.util' @@ -30,7 +30,7 @@ dialog_config={ {class="checkbox",name="alpha_cb",label="alpha",value=false,x=2,y=3}, {class="dropdown",name="alpha",items={"alpha","1a","2a","3a","4a"},value="alpha",x=2,y=4}, {class="checkbox",name="other_cb",label="others",value=false,x=3,y=3}, - {class="dropdown",name="other",items={"pos","fscx","fscy","fsc","fsvp","frz","frx","fry","fax","fay","clip"},value="pos",x=3,y=4,hint="clip not available"}, + {class="dropdown",name="other",items={"pos","fscx","fscy","fsc","fsvp","frz","frx","fry","fax","fay","bord","shad","xshad","yshad","clip"},value="pos",x=3,y=4,hint="clip not available"}, {class="checkbox",name="t_cb",label="\\t",value=false,x=0,y=3,hint="not available"}, --note {class="label",width=6,height=8,x=0,y=5, @@ -209,6 +209,18 @@ function main(subtitle, selected) -- \fay elseif (result["other"]=="fay") then get_information_other(text1,textn,rule_table,"\\fay([%-%d%.]+)") + -- \bord + elseif (result["other"]=="bord") then + get_information_other(text1,textn,rule_table,"\\bord([%-%d%.]+)") + -- \shad + elseif (result["other"]=="shad") then + get_information_other(text1,textn,rule_table,"\\shad([%-%d%.]+)") + -- \xshad + elseif (result["other"]=="xshad") then + get_information_other(text1,textn,rule_table,"\\xshad([%-%d%.]+)") + -- \yshad + elseif (result["other"]=="yshad") then + get_information_other(text1,textn,rule_table,"\\yshad([%-%d%.]+)") else end end @@ -380,6 +392,22 @@ function main(subtitle, selected) elseif (result["other"]=="fay") then ltext = rewrite_other(tt_table,rule_table,result["mode"],bias, "\\fay([%-%d%.]+)","\\fay","WWW\\fay0","([^W]*)WWW\\fay([%-%d%.]+)","\\fay0$") + -- \bord + elseif (result["other"]=="bord") then + ltext = rewrite_other(tt_table,rule_table,result["mode"],bias, + "\\bord([%-%d%.]+)","\\bord","WWW\\bord0","([^W]*)WWW\\bord([%-%d%.]+)","\\bord0$") + -- \shad + elseif (result["other"]=="shad") then + ltext = rewrite_other(tt_table,rule_table,result["mode"],bias, + "\\shad([%-%d%.]+)","\\shad","WWW\\shad0","([^W]*)WWW\\shad([%-%d%.]+)","\\shad0$") + -- \xshad + elseif (result["other"]=="xshad") then + ltext = rewrite_other(tt_table,rule_table,result["mode"],bias, + "\\xshad([%-%d%.]+)","\\xshad","WWW\\xshad0","([^W]*)WWW\\xshad([%-%d%.]+)","\\xshad0$") + -- \yshad + elseif (result["other"]=="yshad") then + ltext = rewrite_other(tt_table,rule_table,result["mode"],bias, + "\\yshad([%-%d%.]+)","\\yshad","WWW\\yshad0","([^W]*)WWW\\yshad([%-%d%.]+)","\\yshad0$") else end else diff --git a/beta/C Scaling Rotating Conflict Solution.lua b/C Scaling Rotating Conflict Solution.lua similarity index 100% rename from beta/C Scaling Rotating Conflict Solution.lua rename to C Scaling Rotating Conflict Solution.lua diff --git a/beta/C Smooth.lua b/C Smooth.lua similarity index 100% rename from beta/C Smooth.lua rename to C Smooth.lua diff --git a/README.md b/README.md index 349b1aa..166d981 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,21 @@ # Automation-scripts-for-Aegisub ## __目录__ -0. [__前言__](#0-前言) -1. [__C Font Resize__](#1-c-font-resize) -2. [__C Gradient__](#2-c-gradient) -3. [__C Translation__](#3-c-translation) -4. [__C Smooth__](#4-c-smooth) -5. [__C Scaling Rotation Conflict Solution__](#5-C-Scaling-Rotation-Conflict-Solution) -6. [__C Change SUB resolution to match video PATCH__](#6-C-Change-SUB-resolution-to-match-video-PATCH) -7. [__更新日志__](#7-更新日志) +- [Automation-scripts-for-Aegisub](#automation-scripts-for-aegisub) + - [__目录__](#目录) + - [__0. 前言__](#0-前言) + - [__1. C Font Resize__](#1-c-font-resize) + - [__2. C Gradient__](#2-c-gradient) + - [__3. C Translation__](#3-c-translation) + - [__4. C Smooth__](#4-c-smooth) + - [__5. C Scaling Rotation Conflict Solution__](#5-c-scaling-rotation-conflict-solution) + - [__7. 更新日志__](#7-更新日志) ## __0. 前言__ * __当前各脚本版本信息__ | Name | Version | |---------------------------------|---------| | C Font Resize (Mocha Deshaking) | v1.1 | - | C Gradient | v2.0 | + | C Gradient | v2.0.1 | | C Translation | v3.0 | | C Smooth | v1.0 | | C Scaling Rotation Conflict Solution | v1.0 | @@ -24,6 +25,7 @@ * __使用方法__ + 将LUA脚本复制到`C:\Program Files (x86)\Aegisub\automation\autoload`路径下,或你的Aegisub安装位置 + 在Aegisub Automation项中可以发现添加的脚本 +* __该仓库本人长期维护,欢迎star与fork。__ ------------------------------------------- ## __1. C Font Resize__