Skip to content

Commit

Permalink
modified: C Utilities.lua
Browse files Browse the repository at this point in the history
	modified:   README.md
  • Loading branch information
zhang-changwei committed Jul 13, 2021
1 parent 52f1371 commit 9d70a4a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
11 changes: 8 additions & 3 deletions C Utilities.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ goto my repository https://github.com/zhang-changwei/Automation-scripts-for-Aegi
]]

script_name="C Utilities"
script_description="Utilities v1.5"
script_description="Utilities v1.5.1"
script_author="chaaaaang"
script_version="1.5"
script_version="1.5.1"

include('karaskel.lua')
re = require 'aegisub.re'
Expand Down Expand Up @@ -76,7 +76,7 @@ local dialog_config = {
{class="label",label="mode",x=6,y=10},--47
{class="dropdown",name="data_mode",items={"x-t","t-x"},value="x-t",x=7,y=10,width=2},--48
{class="label",label="object",x=6,y=11},--49
{class="dropdown",name="data_obj",items={"x","y","fscx","fscy"},x=7,y=11,width=2},--50
{class="dropdown",name="data_obj",items={"x","y","fscx","fscy","frz"},x=7,y=11,width=2},--50
{class="checkbox",name="data_num",label="show line index",value=true,x=7,y=12,width=2},--51
-- Shift Multiline
{class="label",label="■ Shift Multiline",x=0,y=10,width=2},--52
Expand Down Expand Up @@ -452,6 +452,9 @@ function main(subtitle, selected, active)
elseif result.data_obj=="fscy" then
temp = tonumber(linetext:match("\\fscy([%d%.]+)"))
table.insert(data,temp)
elseif result.data_obj=="frz" then
temp = tonumber(linetext:match("\\frz([%d%.%-]+)"))
table.insert(data,temp)
end
if si==1 then
data_min,data_max = temp,temp
Expand Down Expand Up @@ -637,6 +640,7 @@ function main(subtitle, selected, active)

if result.data_obj=="x" or result.data_obj=="fscx" then table.insert(data_visual,{class="label",label="X",x=visualization_max_width+2,y=0})
elseif result.data_obj=="y" or result.data_obj=="fscy" then table.insert(data_visual,{class="label",label="Y",x=visualization_max_width+2,y=0})
elseif result.data_obj=="frz" then table.insert(data_visual,{class="label",label="Z",x=visualization_max_width+2,y=0})
end
table.insert(data_visual,{class="label",label="T",x=0,y=N})
elseif result.data_mode=="t-x" then
Expand All @@ -661,6 +665,7 @@ function main(subtitle, selected, active)

if result.data_obj=="x" or result.data_obj=="fscx" then table.insert(data_visual,{class="label",label="X",x=0,y=visualization_max_height+2})
elseif result.data_obj=="y" or result.data_obj=="fscy" then table.insert(data_visual,{class="label",label="Y",x=0,y=visualization_max_height+2})
elseif result.data_obj=="frz" then table.insert(data_visual,{class="label",label="Z",x=0,y=visualization_max_height+2})
end
table.insert(data_visual,{class="label",label="T",x=N,y=0})
end
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
| C Smooth | v1.0 |
| * C Scaling Rotation Conflict Solution | v1.1 |
| * C Change SUB resolution to match video PATCH | v1.0 |
| C Utilities | v1.5 |
| C Utilities | v1.5.1 |
> 在Automation Manager Description栏中查看脚本版本信息
> 若你的脚本在上述表格中且无版本信息 可能需要考虑更新脚本
> *表示“非主线”脚本,未列出的脚本为测试性或实验性的
Expand Down Expand Up @@ -163,6 +163,7 @@
## __INF. 更新日志__
| Date | Script | Version | Detail |
|------|--------|---------|--------|
|2021.7.13|C Utilities|1.5.1|摩卡可视化补上了对frz的支持|
|2021.7.10|C Utilities|1.5|加入一大堆新功能|
|2021.7.8|C Utilities|1.4|增添AE序列图导入功能|
|2021.7.8|C Utilities|1.3|增加进度条显示,进一步细分双语checker,改变部分逻辑,加快运行速度,修正了一些bug|
Expand Down

0 comments on commit 9d70a4a

Please sign in to comment.