abu5lf Posted January 2, 2013 Share Posted January 2, 2013 شنو استخدم اذا خليت الزر يطلع+يختفي وبعدين تختفي النافذه الكود معك فوق وانت عارف وش الي يخفي النافذة حطه بالزر وجرب . Link to comment
AL-SAYED Posted January 4, 2013 Author Share Posted January 4, 2013 addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == HB1 ) then Animation.createAndPlay(HB1, Animation.presets.guiFadeIn(2000)) Animation.createAndPlay( HB1, Animation.presets.guiFadeOut( 2000 ) ) Animation.createAndPlay(HB1, Animation.presets.guiFadeIn(2000)) Animation.createAndPlay( HB1, Animation.presets.guiFadeOut( 2000 ) ) Animation.createAndPlay(HB1, Animation.presets.guiFadeIn(2000)) Animation.createAndPlay( HB1, Animation.presets.guiFadeOut( 2000 ) ) end end ) كذا؟ Link to comment
Tete omar Posted January 4, 2013 Share Posted January 4, 2013 انا جربت هالمكتبة في مرات لاكن مشكلتها ان اذا سويت اختفاء/اظهار تدريجي , عند الاظهار التدريجي اذا ركزت راح تلاقي ان الشي الي انت مسوي عليه الاظهار ما ظهر كاملاً وعند الاختفاء راح تلاحظ ان الشي الي سويت عليه اختفاء لسة باقي منه ما اختفى كاملاً عشان كذا انا افضل انك تسوي كل شي بنفسك مثل ما انا مسوي استخدم setTimer او onClientRender - بس هذا الافضل و guiGetAlpha و guiSetAlpha وزود كل شوي مثلاً 0.1 + واذا وصلت الحد في الاظهار كاملاً باستخدام if( guiGetAlpha == 1.00 )then وقف التايمر او الرندر الي مسويه باستخدام : killTimer() او اذا مسويه بـ رندر استخدم removeEventHandler .. Link to comment
abu5lf Posted January 4, 2013 Share Posted January 4, 2013 كلام تيتي صحيح المكتبة فيها بقات . Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now