找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2277|回复: 2

How to : Skin CM4 - Part III

[复制链接]
发表于 2003-3-15 10:03:48 | 显示全部楼层 |阅读模式
Inheritence from another skin

In your skin settings file (eg. ter.xml) you can specify a skin to 'inherit' from.

What this basically means is that you can use all the graphics from another skin, and only change the layout. This way, if you want to have a menubar on the right instead of the left, all you need to do is edit global panels.xml

So if you want a version of the 'Ter' skin with the menubar on the right, then all you need to do is create a new directory (call it ter_right) and create a file called ter_right.xml

All you need to put in this file is the following...

<?xml version="1.0" encoding="UTF-8"?>
< !DOCTYPE propertylist SYSTEM "http://www.sigames.com/dtds/propertylist.dtd">

<properties version="1.0">
< !-- skin details -->
<string id="name" value="Ter [Right)"/> < !-- the skin name -->
<string id="auth" value="Craig Hunter"/> < !-- the author name -->
<string id="desc" value="Ter skin, with menubar on the right"/> < !-- description -->
<double id="vers" value="1.0"/> < !-- version -->

<flags id="prnt" value="ter"/> < !-- parent command, to inherit from the 'ter' skin -->

</properties>
发表于 2003-4-5 22:17:45 | 显示全部楼层

Re: How to : Skin CM4 - Part III

So if you want a version of the 'Ter' skin with the menubar on the right, then all you need to do is create a new directory (call it ter_right) and create a file called ter_right.xml

All you need to put in this file is the following...

<?xml version="1.0" encoding="UTF-8"?>
< !DOCTYPE propertylist SYSTEM "http://www.sigames.com/dtds/propertylist.dtd">

<properties version="1.0">
< !-- skin details -->
<string id="name" value="Ter [Right)"/> < !-- the skin name -->
<string id="auth" value="Craig Hunter"/> < !-- the author name -->
<string id="desc" value="Ter skin, with menubar on the right"/> < !-- description -->
<double id="vers" value="1.0"/> < !-- version -->

<flags id="prnt" value="ter"/> < !-- parent command, to inherit from the 'ter' skin -->

</properties>

笑话!这样就能使menubar移到右边去了吗???
这就好比俺叫你一声猪,你就变成猪了吗? :lol:  :lol:  :lol:
发表于 2003-4-6 13:14:04 | 显示全部楼层
经过俺的观察,发现一个办法倒是能使menubar移去右边:
打开global panels.xml,找到comment标注为menubar的那一段,把一个value值由"left,top,bottom"改为"right,top,bottom"就OK了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|FMFans ( 京ICP备07501235号 )

GMT+8, 2024-4-20 00:33 , Processed in 0.036857 second(s), 18 queries , Gzip On, APCu On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表