- 主题
- 回帖
- 0
- 精华
- 注册时间
- 2004-8-2
- 最后登录
- 1970-1-1
- 在线时间
- 小时
- 爆棚声望
-
- PGB
-
|
Linclude原创,首发于PlayCM
---------------------
2008.12.04
应要求,上传了我自己修改的menubar.xml,下载后覆盖到panels文件夹下面。
不过仅限于原版风格的皮肤(就是菜单在中间的这种,比如dDs09, Flex09等)
有两个补丁。
如果已经有global panels.xml,则只需要下载menubar即可。
如果两个都有,还是用下面的方法吧,否则可能会影响皮肤的其他功能。
---------------------
发现cjmtl发的几个新皮肤增加了动态换背景的功能。
如图:
选择后会直接更换背景,即时的。
虽然不是自动,不过已经非常方便了。
我去研究了一下文件,顺便做了一些简化。
简化后的效果如下,直接下拉选择就比较方便了。
使用方法:
【背景放置】
backgrounds下面,一张名为default的,对应默认。
其余5张分别命名为1、2、3、4、5。例如1.jpg,2.png等。图象格式无所谓,似乎都认。
【代码修改】
打开PANELS/menubar.xml,找到下面的部分:
<widget class="header_popup" text="Options[COMMENT: top menu title]" appearance="menu/options" size="9" font="fonts/trebuc" colour="white" style="light_bold, outlined" outline_colour="outline" alignment="centre">
<record id="items" file="menus/game"/>
</widget>
把下面这一段拷贝到上面这段话的下面。之后请重新载入皮肤(强制刷新)(记着先放好图片!)
(如果菜单上面的名字想自己命名,请自行修改下面的WP_01, WP_02等为自己喜欢的名字。
<widget class="header_popup" text="WPs" appearance="menu/options" size="9" font="fonts/trebuc" colour="white" style="light_bold, outlined" outline_colour="outline" alignment="centre">
<list id="items">
<record id="sbg0">
<string id="text" value="Default" />
<flags id="event_id" value="bgs0"/>
<flags id="event_target" value="bgs0"/>
</record>
<record id="sbg1">
<string id="text" value="WP_01" />
<flags id="event_id" value="bgs1"/>
<flags id="event_target" value="bgs1"/>
</record>
<record id="sbg2">
<string id="text" value="WP_02" />
<flags id="event_id" value="bgs2"/>
<flags id="event_target" value="bgs2"/>
</record>
<record id="sbg3">
<string id="text" value="WP_03" />
<flags id="event_id" value="bgs3"/>
<flags id="event_target" value="bgs3"/>
</record>
<record id="sbg4">
<string id="text" value="WP_04" />
<flags id="event_id" value="bgs4"/>
<flags id="event_target" value="bgs4"/>
</record>
<record id="sbg5">
<string id="text" value="WP_05" />
<flags id="event_id" value="bgs5"/>
<flags id="event_target" value="bgs5"/>
</record>
</list>
<attachment class="event_relay_attachment" event_id="bgs0">
<record id="action_event">
<flags id="event_id" value="hide"/>
<flags id="event_target" value="bgd1"/>
</record>
</attachment>
<attachment class="event_relay_attachment" event_id="bgs0">
<record id="action_event">
<flags id="event_id" value="hide"/>
<flags id="event_target" value="bgd2"/>
</record>
</attachment>
<attachment class="event_relay_attachment" event_id="bgs0">
<record id="action_event">
<flags id="event_id" value="hide"/>
<flags id="event_target" value="bgd3"/>
</record>
</attachment>
<attachment class="event_relay_attachment" event_id="bgs0">
<record id="action_event">
<flags id="event_id" value="hide"/>
<flags id="event_target" value="bgd4"/>
</record>
</attachment>
<attachment class="event_relay_attachment" event_id="bgs0">
<record id="action_event">
<flags id="event_id" value="hide"/>
<flags id="event_target" value="bgd5"/>
</record>
</attachment>
<!-- ******* -->
<attachment class="event_relay_attachment" event_id="bgs1">
<record id="action_event">
<flags id="event_id" value="show"/>
<flags id="event_target" value="bgd1"/>
</record>
</attachment>
<attachment class="event_relay_attachment" event_id="bgs1">
<record id="action_event">
<flags id="event_id" value="hide"/>
<flags id="event_target" value="bgd2"/>
</record>
</attachment>
<attachment class="event_relay_attachment" event_id="bgs1">
<record id="action_event">
<flags id="event_id" value="hide"/>
<flags id="event_target" value="bgd3"/>
</record>
</attachment>
<attachment class="event_relay_attachment" event_id="bgs1">
<record id="action_event">
<flags id="event_id" value="hide"/>
<flags id="event_target" value="bgd4"/>
</record>
</attachment>
<attachment class="event_relay_attachment" event_id="bgs1">
<record id="action_event">
<flags id="event_id" value="hide"/>
<flags id="event_target" value="bgd5"/>
</record>
</attachment>
<!-- ******* -->
<attachment class="event_relay_attachment" event_id="bgs2">
<record id="action_event">
<flags id="event_id" value="show"/>
<flags id="event_target" value="bgd2"/>
</record>
</attachment>
<attachment class="event_relay_attachment" event_id="bgs2">
<record id="action_event">
<flags id="event_id" value="hide"/>
<flags id="event_target" value="bgd3"/>
</record>
</attachment>
<attachment class="event_relay_attachment" event_id="bgs2">
<record id="action_event">
<flags id="event_id" value="hide"/>
<flags id="event_target" value="bgd4"/>
</record>
</attachment>
<attachment class="event_relay_attachment" event_id="bgs2">
<record id="action_event">
<flags id="event_id" value="hide"/>
<flags id="event_target" value="bgd5"/>
</record>
</attachment>
<!-- ******* -->
<attachment class="event_relay_attachment" event_id="bgs3">
<record id="action_event">
<flags id="event_id" value="show"/>
<flags id="event_target" value="bgd3"/>
</record>
</attachment>
<attachment class="event_relay_attachment" event_id="bgs3">
<record id="action_event">
<flags id="event_id" value="hide"/>
<flags id="event_target" value="bgd4"/>
</record>
</attachment>
<attachment class="event_relay_attachment" event_id="bgs3">
<record id="action_event">
<flags id="event_id" value="hide"/>
<flags id="event_target" value="bgd5"/>
</record>
</attachment>
<!-- ******* -->
<attachment class="event_relay_attachment" event_id="bgs4">
<record id="action_event">
<flags id="event_id" value="show"/>
<flags id="event_target" value="bgd4"/>
</record>
</attachment>
<attachment class="event_relay_attachment" event_id="bgs4">
<record id="action_event">
<flags id="event_id" value="hide"/>
<flags id="event_target" value="bgd5"/>
</record>
</attachment>
<!-- ******* -->
<attachment class="event_relay_attachment" event_id="bgs5">
<record id="action_event">
<flags id="event_id" value="show"/>
<flags id="event_target" value="bgd5"/>
</record>
</attachment>
<!-- ****END OF DEFINITIONS*** -->
<attachment class="event_relay_attachment" event_id="mbs0">
<record id="action_event">
<flags id="event_id" value="show"/>
<flags id="event_target" value="mbdf"/>
</record>
</attachment>
<attachment class="event_relay_attachment" event_id="mbs0">
<record id="action_event">
<flags id="event_id" value="hide"/>
<flags id="event_target" value="mbbs"/>
</record>
</attachment>
<attachment class="event_relay_attachment" event_id="mbs0">
<record id="action_event">
<flags id="event_id" value="hide"/>
<flags id="event_target" value="mbrd"/>
</record>
</attachment>
<attachment class="event_relay_attachment" event_id="mbs0">
<record id="action_event">
<flags id="event_id" value="hide"/>
<flags id="event_target" value="mbyr"/>
</record>
</attachment>
<attachment class="event_relay_attachment" event_id="mbs1">
<record id="action_event">
<flags id="event_id" value="hide"/>
<flags id="event_target" value="mbdf"/>
</record>
</attachment>
<attachment class="event_relay_attachment" event_id="mbs1">
<record id="action_event">
<flags id="event_id" value="show"/>
<flags id="event_target" value="mbbs"/>
</record>
</attachment>
<attachment class="event_relay_attachment" event_id="mbs1">
<record id="action_event">
<flags id="event_id" value="hide"/>
<flags id="event_target" value="mbyr"/>
</record>
</attachment>
<attachment class="event_relay_attachment" event_id="mbs1">
<record id="action_event">
<flags id="event_id" value="hide"/>
<flags id="event_target" value="mbrd"/>
</record>
</attachment>
<attachment class="event_relay_attachment" event_id="mbs2">
<record id="action_event">
<flags id="event_id" value="hide"/>
<flags id="event_target" value="mbdf"/>
</record>
</attachment>
<attachment class="event_relay_attachment" event_id="mbs2">
<record id="action_event">
<flags id="event_id" value="hide"/>
<flags id="event_target" value="mbbs"/>
</record>
</attachment>
<attachment class="event_relay_attachment" event_id="mbs2">
<record id="action_event">
<flags id="event_id" value="show"/>
<flags id="event_target" value="mbyr"/>
</record>
</attachment>
<attachment class="event_relay_attachment" event_id="mbs2">
<record id="action_event">
<flags id="event_id" value="hide"/>
<flags id="event_target" value="mbrd"/>
</record>
</attachment>
<attachment class="event_relay_attachment" event_id="mbs3">
<record id="action_event">
<flags id="event_id" value="hide"/>
<flags id="event_target" value="mbdf"/>
</record>
</attachment>
<attachment class="event_relay_attachment" event_id="mbs3">
<record id="action_event">
<flags id="event_id" value="hide"/>
<flags id="event_target" value="mbbs"/>
</record>
</attachment>
<attachment class="event_relay_attachment" event_id="mbs3">
<record id="action_event">
<flags id="event_id" value="hide"/>
<flags id="event_target" value="mbyr"/>
</record>
</attachment>
<attachment class="event_relay_attachment" event_id="mbs3">
<record id="action_event">
<flags id="event_id" value="show"/>
<flags id="event_target" value="mbrd"/>
</record>
</attachment>
</widget>
【说明】
关于换背景,比如原来的的2.jpg换成新的。经过我测试,需要重新强制刷新皮肤才能实现。
也就是1-5这5个文件是被保存在缓存中,而不是和default一样每次载入。
因此不建议机器配置较低的人使用。
[ 本帖最后由 Linclude 于 2008-12-5 13:43 编辑 ] |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
x
评分
-
查看全部评分
|