Skip to content

Commit

Permalink
modified: C Gradient.lua
Browse files Browse the repository at this point in the history
	renamed:    beta/C Scaling Rotating Conflict Solution.lua -> C Scaling Rotating Conflict Solution.lua
	renamed:    beta/C Smooth.lua -> C Smooth.lua
	modified:   README.md
  • Loading branch information
zhang-changwei committed Feb 24, 2021
1 parent 092e896 commit 86f106a
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 12 deletions.
34 changes: 31 additions & 3 deletions C Gradient.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
File renamed without changes.
File renamed without changes.
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -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 |
Expand All @@ -24,6 +25,7 @@
* __使用方法__
+ 将LUA脚本复制到`C:\Program Files (x86)\Aegisub\automation\autoload`路径下,或你的Aegisub安装位置
+ 在Aegisub Automation项中可以发现添加的脚本
* __该仓库本人长期维护,欢迎star与fork。__

-------------------------------------------
## __1. C Font Resize__
Expand Down

0 comments on commit 86f106a

Please sign in to comment.