naoki 发表于 2003-3-15 10:03:48

How to : Skin CM4 - Part III

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了
页: [1]
查看完整版本: How to : Skin CM4 - Part III