How to Make A Visual Novel_4 Make a CG Gallery
cg.xml
<name_of_CG name="some text will display on the top the imagine" show= "true or false while true means the CG is collected" img="path of the imagine file"/>
The
path of the imagine file is under the ui directory. the attributes “show” will
become “true” on the script [getCG], all the setting in cg.xml will not change
with the save/load operation.
The
CG gallery will display on the script [showCG], all the CG can be opened while
the attributes “show” is “true”.
The cg files you defined will show in the gallery ,8 pictures in one page. click the picture to open it, the name or some other information will show at the top left.
In the gallery , use the page up and down buttons to turn the page ,use the exit button to back to the game.
the CG defined in the cg.xml will show up in the CG gallery.
The pictures with the attributes “show” is “true” can be click to see the detail.
the look of the buttons was defined in the init file.
when click a collected CG in the gallery, the picture show up with some text on the top.click anywhere to close this picture.
in the cg.xml file
<cg> <cgpanel> <CG1 name="A red picture" show="true" img="red.jpg"/> <CG2 name="A black picture" show="false" img="black.jpg"/> <CG3 name="A white picture" show="false" img="white.jpg"/> <CG4 name="The street" show="true" img="DMstreet1.jpg"/> <CG5 name="A notebook" show="false" img="DLnote.jpg"/> <CG6 name="Moon on the roof" show="false" img="DLroof.jpg"/> </cgpanel></cg>
these node with a false such as CG3 also in the gallery but can not be clicked.
in games, you can use a script [showCG] to open the CG gallery.
Use a [getCG somename] to collect a CG file with the name you defined.
if the script [initsavefile] is used, the
cg.xml and staticvar.xml will roll back to the first status.
0 条评论:
发表评论
订阅 博文评论 [Atom]
<< 主页