发信人: shipping (小平~~~~繁华落尽), 信区: ANSI
标 题: menu.ini的整体结构初探
发信站: 日月光华 (2002年06月03日05:15:39 星期一), 站内信件
menu.ini整体结构:
menu.ini的内容是由多个块构成,每个块的都是以%开始,以%结束的一段字符。
同时每个块都有自己的名字,可以在其他块当中调用。这很类似编程语言的过程or子程序
下面具体介绍块的结构。
一个很典型的块:
%S_MAIN
*[42m *[m
*[11;29H*[m┭┴┬┶┳*[1m┵┰┴┰┶┳*[1
*[12;29H*[m┴┬*[0;47m
*[13;29H*[m┭┴*[0;34;47m *[3I*[13;3
*[14;29H*[m┴┮*[0;34;47m *[3I*[14;3
*[15;29H*[m┭┴*[0;34;47m *[3I*[15;3
*[16;29H*[m┴┬*[0;34;47m *[3I*[16;3
*[17;29H*[m┬┴*[0;34;47m *[3I*[17;3
*[18;29H*[m┴┮*[0;34;47m *[3I*[18;3
*[19;29H*[m┬┴*[0;47m *[1;31m▓*[0;34;4
*[20;29H*[m┴┬*[0;30;47m
*[21;29H┭┭┴┬┶┳┵*[1m┰┴┰┶┳┵*[
%
这个块定义了一个背景图案,块的名字叫 S_MAIN。
现在大家明白了,开头的%之后紧跟的字符串就是这个块的名字。
这个块的内容就是从下一行开始到%结束所有的东西。
有什么东西呢? 我们根据内容的性质不同,把所有的块分成两种——菜单块和背景块。
首先需要明白我们所看到的BBS的界面,都是由菜单+背景构成的。那么
顾名思义,菜单块和背景块的含义就不用说明了。
--
◢//ハミ◣
〃へ へ”
大家好我是阿饼,右边那个是免冠近照,请点击放大 C--●-●-O
っ
◥ ~ ◤
※ 来源:·日月光华 bbs.fudan.edu.cn·[FROM: 10.83.0.81]
Sender: shipping Xiaoping bustling, letter area: ANSI
Title: A preliminary study on the overall structure of menu.ini
Sending site: Sun and Moon Guanghua Monday, June 3, 2002 05:15:39, site mail
menu.ini overall structure
The content of menu.ini is composed of multiple blocks. Each block is a period of characters starting with % and ending with %.
At the same time, each block has its own name and can be called in other blocks. This is very similar to a procedure or subroutine in a programming language.
The structure of the block is introduced in detail below.
A very typical block
%S MAIN
*[42m *[m
*[11;29H*[m *[1m *[1
*[12;29H*[m *[0;47m
*[13;29H*[m *[0;34;47m *[3I*[13;3
*[14;29H*[m *[0;34;47m *[3I*[14;3
*[15;29H*[m *[0;34;47m *[3I*[15;3
*[16;29H*[m *[0;34;47m *[3I*[16;3
*[17;29H*[m *[0;34;47m *[3I*[17;3
*[18;29H*[m *[0;34;47m *[3I*[18;3
*[19;29H*[m *[0;47m *[1;31m *[0;34;4
*[20;29H*[m *[0;30;47m
*[21;29H *[1m *[
%
This block defines a background pattern. The name of the block is S MAIN
Now everyone understands that the string immediately following the initial % is the name of this block.
The content of this block is everything from the next line to the end of %
What is there? We divide all blocks into two types according to the nature of the content: menu blocks and background blocks.
First of all, we need to understand that the BBS interface we see is composed of menus and backgrounds.
As the name suggests, the meaning of the menu block and background block does not need to be explained.
ハミ
へ へ
Hello everyone, my name is Abing. The one on the right is a recent photo without a hat. Please click to enlarge. C O
っ
Source: Sun and Moon Guanghua bbs.fudan.edu.cn [FROM: 10.83.0.81]