|
本帖最后由 ugopen 于 2014-3-28 09:08 编辑 h0 u$ A/ z3 P: D$ o
& h6 h$ ]0 W+ |2 z o! ^
- t' E; F$ x5 h! u& f( F UF_OBJ_translucency_t translucency;
9 y+ q7 v: ^/ F: A% q& ] UF_OBJ_ask_translucency(object,&translucency); //获得所选的透明值
6 w4 x9 B z# W- b + p, _+ I; Y. o! G4 M7 i
if(translucency>=50){
4 \, Q9 e# N+ G+ J) t UF_OBJ_set_translucency(object,0); # v: V1 d O7 z, \% ?- t; T
$ W' p' r. ^8 a3 Y3 ] }
+ H# e8 X) t9 u. ?$ Z else{
& ?( q2 P/ ?7 ~6 P9 ^ L% { UF_OBJ_set_translucency(object,100); ' s# |8 `- l D' p( x
}
0 R T7 a/ }5 u7 P
?+ D+ U+ k8 y! z+ r6 C( {/ j0 {; C* m2 T3 u' t
这个函数的帮助为% N& j( m" a' }
& {$ z, o" B3 `' u
int UF_OBJ_ask_translucency
" z5 f3 C; M/ C5 B+ S H1 w(
# M: F8 @/ f1 E- \& ctag_t object, 1 T; ~5 B* I& F4 C" {5 Q
UF_OBJ_translucency_p_t translucency
- E' }( l! v4 L2 V* ?)
5 x0 Z6 Q2 K; f1 g* C: E* _参考资料来源: nx78.com/sheown.asp?id=65
8 }0 O; Q9 f* N( |" v8 I. _1 F& W0 L4 z% k3 B7 H$ O m8 ]
6 h# A9 i; G% \1 ^ O- J; R& Z2 d) `
- W' n3 z# A. P" \4 y
' K$ E8 a+ |" V
! E' W0 B0 n" @9 l |
|