forked from kaienfr/Font
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildfont.bat
56 lines (47 loc) · 1.35 KB
/
buildfont.bat
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
@ECHO OFF
ECHO ************************************
ECHO * 操作选单 *
ECHO ************************************
ECHO (1) 编译ui_atlas
ECHO (2) 编译ui_atlas_lowmem
ECHO (3) 编译ppge_atlas
ECHO (4) 编译全部
CHOICE /C 1234 /M " 请选择: "
IF ERRORLEVEL 4 GOTO runall
IF ERRORLEVEL 3 GOTO run3
IF ERRORLEVEL 2 GOTO run2
IF ERRORLEVEL 1 GOTO run1
:runall
:: 清理
start /B cleandir.bat
:: 第四个参数不给则编译为RGBA4444 否则为 RGBA8888
:: build ui_atlas (RGBA8888 系统菜单)
atlastool atlasscript.txt ui 8888
:: build ui_atlas_lowmem (RGBA8888)
atlastool atlasscript_lowmem.txt ui_l 8888
copy /Y ui_l_atlas.cpp ui_atlas_lowmem.cpp
copy /Y ui_l_atlas.h ui_atlas_lowmem.h
copy /Y ui_l_atlas.zim ui_atlas_lowmem.zim
copy /Y ui_l_atlas.zim.png ui_atlas_lowmem.zim.png
del ui_l_atlas*
:: build ppge_atlas (RGBA4444, 游戏存档等文字)
atlastool ppge_atlasscript.txt ppge
goto END
:run1
:: build ui_atlas (RGBA8888 系统菜单)
atlastool atlasscript.txt ui 8888
goto END
:run2
:: build ui_atlas_lowmem (RGBA8888)
atlastool atlasscript_lowmem.txt ui_l 8888
copy /Y ui_l_atlas.cpp ui_atlas_lowmem.cpp
copy /Y ui_l_atlas.h ui_atlas_lowmem.h
copy /Y ui_l_atlas.zim ui_atlas_lowmem.zim
copy /Y ui_l_atlas.zim.png ui_atlas_lowmem.zim.png
del ui_l_atlas*
goto END
:run3
:: build ppge_atlas (RGBA4444, 游戏存档等文字)
atlastool ppge_atlasscript.txt ppge
:END
@echo Build finished!