KID123KID 发表于 2013-9-1 19:49:17

可会念我 发表于 2013-9-1 19:47
当然能问额。。。但是我不一定可以答出来。。。。。

嗯   好   朋友   

可会念我 发表于 2013-9-1 19:49:58

KID123KID 发表于 2013-9-1 19:49
嗯   好   朋友

{:10_451:}恩~

zhonghh0528 发表于 2013-9-2 20:35:24

{:10_443:}我是来打酱油的

suixin812 发表于 2013-9-3 15:05:22

本帖最后由 suixin812 于 2013-9-3 15:20 编辑

我来晚了。。。。

上面的回复好像顺序有点乱。所以我就直接解释这个问题了,也不知道你会不会已经明白怎么做了。
如果只是颜色不一样的话,用一个变量来设置不就好了?
比如在所有用到颜色的地方写上#CurrentColor#,后面跟上不透明度;
然后在单击按钮的时候把#CurrentColor#改成白色或者黑色不就可以了?
举个栗子:
CurrentColor=255


Meter=Image
SolidColor=#CurrentColor#,#CurrentColor#,#CurrentColor#,255
DynamicVariables=1


Meter=String
FontColor=#CurrentColor#,#CurrentColor#,#CurrentColor#,125
DynamicVariables=1


Meter=Button
ButtonCommand=[!SetVariable CurrentColor (255*(#CurrentColor#/255+1)%2)][!Update]
DynamicVariables=1
或者你做成两个皮肤保存在同一个皮肤,然后用[!ActivateConfig #CurrentConfig#]来切换

或者你用MeterStyle来切换
white=1


SolidColor=0,0,0,255
FontColor=0,0,0,125


SolidColor=255,255,255,255
FontColor=255,255,255,125


Meter=Image
MeterStyle=ColorStyle_#white#
DynamicVariables=1


Meter=String
MeterStyle=ColorStyle_#white#
SolidColor=0,0,0,0
DynamicVariables=1


Meter=Button
ButtonCommand=[!SetVariable white ((#white#+1)%2)][!Update]
DynamicVariables=1再或者你可以用@include来解决
color=white
@include=style_#color#.inc


Meter=Image


Meter=String


Meter=Buttonstyle_white.inc :

SolidColor=255,255,255,255


FontColor=255,255,255,125


ButtonCommand=[!WriteKeyValue Variables color black][!Refresh]style_black.inc :

SolidColor=0,0,0,255


FontColor=0,0,0,125


ButtonCommand=[!WriteKeyValue Variables color white][!Refresh]

zxc99 发表于 2013-9-3 23:50:19

KID123KID 发表于 2013-9-4 17:46:12

suixin812 发表于 2013-9-3 15:05
我来晚了。。。。

上面的回复好像顺序有点乱。所以我就直接解释这个问题了,也不知道你会不会已经明白怎 ...

谢谢   我知道了    大神果然是大神

昔日记忆 发表于 2013-9-5 07:19:53

   看教程好像要加一个bang
页: 1 2 [3]
查看完整版本: 求大神 帮助我实现这种效果。