首页 > 正文

MESSAGE时间进度条的制作
天意U盘维护系统 发布时间:2013-06-07 17:03:35

打包MESSAGE的工具 http://bbs.winpe.cc/thread-17646-1-1.html1.打开工具包里data目录

打包MESSAGE的工具 http://bbs.winpe.cc/thread-17646-1-1.html
1.打开工具包里data目录

 

 
图片忘记标出核心文件是“init”

2.字体文件、背景图片根据个人需要而换

3.重点说下配置文件gfxboot.cfg,用记事本打开

penguin=0
welcome=0
[config]
boot_show=0
penguin=0
welcome=1
xmenu_hide_current=1
menu_start_x=210
menu_start_y=116
menu_max_entries=20
menu_bar_min_width=300
menu_text_normal=0xFFFFFF
menu_text_select=0x00008B
boot_text_options=0x0000ff
boot_text_normal=0xff0000
infobox_bg=0xd8deed
infobox_text_normal=0
menu_bar_color=0xFFFFFF
loading_color=0x295202
title_bg=0xff0000
hide_reboot=0
hide_poweroff=0
disable_num_key=0
hide_help=0
hide_lang=1
custom_width=800
custom_height=600
custom_depth=16
panel_normal=0xFFF143
panel_title=0x00ff00
panel_high=0x000000
panel_bg=0xff0000
panel_border=0xff0000


前面这一大部分就是普通版没有时间进度条的MESSAGE配置,熟悉的人可直接在记事本里修改,不大熟悉的人用MsgDiyer.exe做好后复制这部分代码到gfxboot.cfg里
附上MsgDiyer.exe 

MsgDiyer.part1.rar (1.8 MB, 下载次数: 45)

  MsgDiyer.part2.rar (1.48 MB, 下载次数: 38)

 
当然也可用工具包里的GfxMenu.exe修改

接下来后面部分是配置时间数字、进度条等等
# --- System related ---
disable_ESC_key=1   # default:0 - enabled
# --- Digital Progress indicator
#timeout_digit_enable=0   # default:1 - enabled; value else - disable;
timeout_digit_x=400   # default:upper right corner minus (25 + half max str width); text is center aligned
timeout_digit_y=554   # default:upper right corner plus 10
#timeout_digit_color=0xb0e0e6  # default:white
timeout_digit_bg_color=0xb03060  # default:black
#timeout_digit_bg_alpha=48  # default:0 - means transparent background (backround color not applied)
timeout_digit_margin=3   # default:2
#timeout_digit_s_enable=0  # default:1 - enabled
# --- Progress Bar indicator
timeout_bar_enable=1   # default:disabled; 1 - enable;
timeout_bar_width=300   # default:200
#timeout_bar_height=20   # default:10; use the height of image if either bar.jpg or bar_a.jpg exist
#timeout_bar_x=50   # default:center
#timeout_bar_y=100   # default:panel text vertical align
timeout_bar_bg_color=0x8aa37b  # default:green
timeout_bar_progress_color=0x63ab62 # default:red
timeout_bar_bg_alpha=112  # default:192; 0~255
#timeout_bar_progress_alpha=208  # default:192
#timeout_bar_step_size=09  # default:1 - continuous
# --- Clock indicator
timeout_clock_enable=0   # default:disabled; 1 - enable;
clock_image_x=690   # default:center
clock_image_y=10   # default:10
#clock_image_alpha=64   # default:255
clock_secondhand_color=0xe03030  # default:red
clock_secondhand_end_length=10  # default:10
clock_secondhand_tip_fix=15  # default:20
clock_secondhand_center_fix_x=-1 # default:0
clock_secondhand_center_fix_y=-1 # default:0
# --- Circular Dot indicator
timeout_circulardot_enable=0  # default:disabled; 1 - enable;
#circulardot_image_x=680  # default:center
#circulardot_image_y=20   # default:10
#circulardot_image_clear=1  # default:0 - not clear
#circulardot_image_alpha=128  # default:255
[config]
boot_show=0
hide_reboot=0
hide_poweroff=0
disable_num_key=0
hide_help=0
hide_lang=0
penguin=0
menu_start_x=
menu_start_y=
menu_max_entries=
menu_bar_min_width=


4.有关时间数字、进度条等等这些的配置请照这里:http://bbs.wuyou.com/viewthread.php?tid=206857
本文下端简单描述这方面 

5.配置文件做好后打开打包工具GfxMenu.exe,如图:

 

 

 打包,OK!
 

list.txt这个记事本文件,里面记载着所有要打包的文件,没有记载就打包不进去,如果要加新文件必须在里面加上文件名

  一.数字倒计时
timeout_digit_enable
缺省值为1,显示数字倒计时。
timeout_digit_x
文本框中心横坐标,缺省值为靠屏幕右沿。
timeout_digit_y
文本框上沿纵坐标,缺省值为靠屏幕上沿。
timeout_digit_color
文本颜色,缺省值为白色。
timeout_digit_bg_color
文本框颜色,缺省值为黑色。
timeout_digit_bg_alpha
文本框透明度,取值范围:0~255。缺省值为0,完全透明,即不显示文本框。
timeout_digit_margin
文本边距,缺省值为2像素。
timeout_digit_s_enable
控制文本是否显示小写字母s;缺省值为1。
提示:文本字体是单独定义的,程序会查找message是否包含16x16.timer.fnt文件,如果字体存在则使用之,否则会使用不同于主字体16x16.fnt的内置字体。定制见后面字体制作及资源包部分。

二.水平进度条
timeout_bar_enable
缺省值为0,不显示水平进度条。
timeout_bar_width
进度条宽度,缺省值为200像素。
timeout_bar_height
色彩进度条高度,缺省值为10像素。如果message包含图片进度文件bar.jpg或bar_a.jpg,此值被忽略,使用图片高度。
timeout_bar_x
进度条左上角横坐标,缺省值由程序计算,进度条屏幕居中。
#timeout_bar_y
进度条左上角纵坐标,缺省值由程序计算,进度条与Fx热键位置纵向对齐。
timeout_bar_bg_color
色彩进度条背景色,缺省值绿色。如果文件bar_a.jpg存在,此值被忽略。
timeout_bar_progress_color
色彩进度条颜色,缺省值红色。如果文件bar.jpg存在,此值被忽略。
timeout_bar_bg_alpha
进度条背景透明度,取值范围:0~255。缺省值为192。
timeout_bar_progress_alpha
进度条透明度,取值范围:0~255。缺省值为192。
timeout_bar_step_size
进度条步长。缺省值为1像素,即进度条是连续的,非间断式。
解释:进度条分为色彩或图片,或两者的组合共四种,取决于文件bar.jpg和bar_a.jpg的存在与否:两者都存在为图片进度条,两者都不存在为色彩进度条,其中之一存在为色彩图片组合进度条。两文件必须为1像素宽,高度应相同。定制见后面图片处理及资源包部分。

三.时钟
timeout_clock_enable
缺省值为0,不显示时钟。
clock_image_x
时钟图片左上角横坐标,缺省值由程序计算,图片屏幕居中。
clock_image_y
时钟图片左上角纵坐标,缺省值10像素。
clock_image_alpha
时钟图片透明度,取值范围:0~255。缺省值为255。
clock_secondhand_color
时钟秒针颜色,缺省值为红色。
clock_secondhand_end_length
时钟秒针尾部长度,缺省值为10像素。
clock_secondhand_tip_fix
时钟秒针针尖修正值,缺省值为20像素。此值控制秒针的长度,以与图片相匹配。
clock_secondhand_center_fix_x
时钟秒针中心横坐标修正值,缺省值为0。可为负数,用于修正秒针旋转中心与时钟图片中心重合。
clock_secondhand_center_fix_y
时钟秒针中心纵坐标修正值,缺省值为0。可为负数,用于修正秒针旋转中心与时钟图片中心重合。
说明:时钟图片clock.jpg必须存在,否则无论timeout_clock_enable的取值如何都不会显示。定制时图片应尽量制作成正方形;一个可选的、与之大小相同的clock_a.jpg将作为蒙板使用。

四.环形点倒计时
timeout_circulardot_enable
缺省值为0,不显示环形点倒计时。
circulardot_image_x
图片左上角横坐标,缺省值由程序计算,图片屏幕居中。
circulardot_image_y
图片左上角纵坐标,缺省值10像素。
circulardot_image_clear
控制终止计时后是否保留图片,缺省值为0,即保留图片,适合图片作为Logo的情形。
circulardot_image_alpha
图片透明度,取值范围:0~255。缺省值为255。
说明:由于程序计算能力的限制,使用此功能有严格的要求。首先两个图片head.jpg和head_a.jpg必须存在,缺一不可。其次,图片宽和高不能更改。head.jpg的内容可定制,head_a.jpg中心部分的形状可结合head.jpg作相应修改,但不可破坏图片周边的环形点。

关于我们 | 免责声明 | 版权声明 | 联系我们 | 商务合作
版权所有 © 2024 天意U盘维护系统 保留所有权利 鄂ICP备2020017155号
0.5984s