-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathconfig_template_CN.yml
97 lines (82 loc) · 3.59 KB
/
config_template_CN.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Boot Animation Maker 配置文件模板
#
# Magisk Module 输出的文件名
'module_export_filename': 'BootAniMagiskModule.zip'
# 设备尺寸 [w x h],异形屏考虑使用最大外边框尺寸
'device_size': [1080, 1920]
# 对于某些机型,Bootanimation.zip 的路径可能会不同,比如 Google Pixel
# 清除注释以自定义路径
# 'media_dir_path': ['system', 'product', 'media']
# 指定播放动画的帧率,注意与 gif 相匹配,
# 对于单 part 的动画,如果不匹配则脚本运行过程中会提示是否以实际 FPS 代替指定的 FPS
# 对于多个 part 的动画,各个 gif 需要 FPS 数相同或相近(diff<=5),如果相近则会提示使用两者的平均值代替指定的 FPS,如果 FPS 相差过大则停止生成
'fps': 10
# ******************************************************
# 图层设定 'anime'
# - {part0}
# - {part1}
# - {...}
# ******************************************************
'anime':
- 'gif_path': './example/e1.gif' # gif 文件路径,建议使用绝对路径,若为相对路径则默认为相对于运行环境的路径
# 图像设定
'cpnt_conf':
# 背景部分,尺寸由设备尺寸决定
'bg_cpnt':
'bg_color': 'rgba(0,0,0,255)' # 背景色,'auto' 或 'rgba(r, g, b, a)' 格式,'auto' 暂未支持
# 动态部件部分,该部分只能有一张 gif
'dyn_cpnt':
'resize_mode': 'scale' # 放缩方法,支持等比缩放 'scale' 和中心剪裁 'trim'
'target_size': [1080, 1] # scale 或 trim 的目标尺寸 [w x h],scale 以 w 为准
'c_pos': [540, 756] # gif 的中心点坐标(相对于背景)
'on_top': True # 动态部件与静态部件的上下关系
# 静态部件部分,该部分可以有多张 png 图片
'sta_cpnt': # 静态部件的图层关系由顺序决定,在列表下方的图片图层靠上
- 'im_path': './example/e2.png' # png 图片文件路径
'resize_mode': 'scale' # 放缩方法,支持等比缩放 'scale' 和剪裁 'trim'
'target_size': [674, 1] # scale 或 trim 的目标尺寸 [w x h],scale 以 w 为准
'c_pos': [540, 956] # png 的中心点坐标(相对于背景)
- 'im_path': './example/e3.png'
'resize_mode': 'scale'
'target_size': [320, 1]
'c_pos': [540, 1700]
# desc 文件设定,说明见 https://android.googlesource.com/platform/frameworks/base/+/master/cmds/bootanimation/FORMAT.md
'desc_conf':
'type': 'p'
'count': '0'
'pause': '0'
- 'gif_path': './example/e3.gif'
'cpnt_conf':
'bg_cpnt':
'bg_color': 'rgba(0,0,0,255)'
'dyn_cpnt':
'resize_mode': 'scale'
'target_size': [1080, 1]
'c_pos': [540, 756]
'sta_cpnt':
- 'im_path': './example/e5.png'
'resize_mode': 'scale'
'target_size': [674, 1]
'c_pos': [540, 956]
- 'im_path': './example/e6.png'
'resize_mode': 'scale'
'target_size': [320, 1]
'c_pos': [540, 1700]
'desc_conf':
'type': 'c'
'count': '0'
'pause': '0'
# Magisk 包中 module.prop 文件设定
'module_prop_conf':
'mid': 'bootanimation-000'
'name': 'BootAnimation'
'version': '1.0'
'versionCode': '2018103101'
'author': 'Zarcher'
'description': 'A Boot Animation Magisk Module'
# Magisk 包中 install.sh 文件设定
'module_config_conf':
'ui_print': 'ui_print " Boot Animation "\n'
'REPLACE': 'REPLACE="\n\n"'
# FOR DEBUG, DO NOT MODIFY UNLESS YOU KNOW WHAT YOU ARE DOING
'check_gif': True # check the gif FPS setting