发布于 2012-02-07 19:36:10
3楼
你先随便用直接连接一个bool,根据它的不同值选择不同的颜色,然后把我写的这个脚本写到里面就可以了。
if GetTagDWord("tag")& 0x1 then
return 颜色1对应的代码
else return 颜色2对应的代码
如果你有多个状态需要表示,你可以用这样的格式多写几个
if GetTagDWord("tag")& 0x1 then
return 颜色1对应的代码
else if GetTagDWord("tag")& 0x2 then
return 颜色3对应的代码
else if GetTagDWord("tag")& 0x4 then
return 颜色4对应的代码
else return 颜色5对应的代码
活到老,学到老!为了生活学习吧!