|
本帖最后由 ugopen 于 2014-3-28 09:08 编辑
. f; N) W8 t0 \/ M; ?" V$ j% R" p+ w8 k
" ] ?5 P8 z5 N7 y& N( w( u
UF_OBJ_translucency_t translucency;
+ G% _* x$ r& @9 y8 @4 M UF_OBJ_ask_translucency(object,&translucency); //获得所选的透明值- o. _+ D) }) e* q
% Q. }0 w, U+ Q if(translucency>=50){" X8 g, F2 r, S, X1 p* w
UF_OBJ_set_translucency(object,0);
& h& ?7 C a+ W) _0 O* O! J6 x
}
* Q. }, {7 Y3 w0 k9 T else{
6 z% i. [: Z* W; L9 m1 k& C UF_OBJ_set_translucency(object,100); 7 S& s1 s7 @9 |0 C' O
}( `; ]" x! } U! a3 l& I
# L' q2 q1 f. q$ f0 |- w5 ]
, c6 G# e; H6 Z这个函数的帮助为
, G w) s. g; Z5 B; f4 q/ C: `( B) R' g, V8 f
int UF_OBJ_ask_translucency/ e' |6 _8 Y7 M% P" m4 V- p- E
(
v; ~0 m0 f" m% r# u& Ctag_t object,
- Z5 r8 e8 a1 w1 ]! l# k, YUF_OBJ_translucency_p_t translucency
8 c* O. S* R+ V4 C! Z! P)
) M. M5 R* j6 B7 s参考资料来源: nx78.com/sheown.asp?id=65. X' }- ?- e4 k5 u0 f. u1 S2 a
. o0 p/ K$ E+ t' U% e: p
2 j/ f8 g# f! }" v! V! a0 l6 [& i0 `# _( C
# X( @# O' f% d! c
1 R/ K6 t" S) x$ M4 I4 D |
|