Xlabel在LS当中很重要,但是在我使用的过程中出现一些问题(论坛怎么没人提过,如果只是我一个人问题,那下面的讨论多少意义就不大了)
以下以msold和reverence两个主题(DA主题站一搜就有,LS新手很容易上手的主题)图片为例来阐述问题:
讨论点一:在加载别人做好的主题时,如果该主题中XLabel使用有透明度的图片时,均无法实现透明度效果,而自动转化成实体图片。(theme.rc中xlabel遵循了其版本的read me中的语法。还有step.rc,config,image两个文件夹设置也没问题,但是加载个别主题时,如Gaia10等,就无此问题)。
图1(reverence):
图2(Msold):
图3(Gaia10):
上面主题均符合其Xlabel其版本的规则,并且更改了下面一些数据也无效。
(label-name)AlphaMap(AlphaMap已设置为 True)
(label-name)AlphaTransparency
(label-name)AlphaFade
(label-name)CustomAlphaFade
(label-name)Ghosted
以下的bang commands
!LabelSetAlpha
!LabelGhosted
同样这些实体颜色我也没有在rc中设置过。
(label-name)AlphaMap true
(label-name)usesolidcolors
(label-name)solidcolors
附部分文档:
xLabel Docs Version
LSbox (总感觉透明度图片失效和他有关)
*ModuleHook !LabelLSBoxHook (label-name)
有没有人对这两个熟悉一点的,稍微介绍下,阿卜牧看到下面几段话才想了解下。
Using Labels Inside Labels/LSBoxes
xLabel supports the *ModuleHook feature of LSBox. To create a label inside of an LSBox, place the following command in the .box file:
*ModuleHook !LabelLSBoxHook (label-name)
All the settings for the label will still be in the step.rc. Make sure that you do not put the same name in both a *ModuleHook and a *Label command. Note that xLabel must be loaded before LSBox in order for this to work.
The following bang commands/features do not work for labels inside of a LSBox:
this command enables transparency support. if a bitmap is
also specified (ChronosBitmap) the areas of that bitmap that
are pink (RGB 255 0 255) will be transparent (will let the
desktop wallpaper show through). if no bitmap is given, the
entire background will be transparent. currently, this will
not work if loaded as a wharf module.
ChronosBitmap <bitmap-file>
specifies a bitmap file to use to paint the background. if
this command is not present a default background based on
system colors is used.
# FF00FF这个颜色在ls中是透明的,没有为什么,这是个很重要的特性。见原文:
Magic Pink Yes! LiteStep is magic. Magic Pink refers to the color #FF00FF, which can be used to create a transparent effect in bitmap graphics. Any part of the bitmap that is the color #FF00FF will be transparent through to the desktop and cannot be clicked upon. Most modules support transparency through the use of Magic Pink.
-================================================-=