max-mohammed Posted May 24, 2014 Share Posted May 24, 2014 السلام عليكم انا سويت لوحة ترحيبية بشرح لكم كيف ابيها اولا من يوم مايدخل سويت فنكشن عشان يخلي fadeCamera(false) ويطلع صورة ترحيب وبعد ثانيتين تختفي واتجي صورتين ثانية بعدها بس يمكن تعطوني كود يخلي صورة الترحيب يوم تختفي تختفي تدرجيا والصورتين الي بعدها تظهر تدرجيا وكمان الكود فيه اخطاء addEventHandler("onClientResourceStart",getElementRoot(), function () loc = getLocalPlayer() win = guiCreateStaticImage(84, 86, 831, 604, "imgs/wel.png", false) ha = guiCreateStaticImage(580, 187, 279, 359, "imgs/ha.png", false) guiSetVisible(ha, false) wa = guiCreateStaticImage(153, 187, 279, 359, "imgs/wa.png", false) guiSetVisible(wa, false) showCursor (true) fadeCamera(loc,false) setTimer(guiSetVisible,2000,1,win,false) setTimer(guiSetVisible,3000,1,ha,true) setTimer(guiSetVisible,3000,1,wa,true) end ) والسلام خير الختام Link to comment
K1NG Posted May 24, 2014 Share Posted May 24, 2014 guiSetAlpha guiGetAlpha + setTimer killTimer -- (إختياري (مستحسن Link to comment
TAPL Posted May 24, 2014 Share Posted May 24, 2014 addEventHandler("onClientResourceStart", resourceRoot, function() win = guiCreateStaticImage(84, 86, 831, 604, "imgs/wel.png", false) ha = guiCreateStaticImage(580, 187, 279, 359, "imgs/ha.png", false) guiSetVisible(ha, false) wa = guiCreateStaticImage(153, 187, 279, 359, "imgs/wa.png", false) guiSetVisible(wa, false) showCursor(true) fadeCamera(false) setTimer(guiSetVisible, 2000, 1, win, false) setTimer(guiSetVisible, 3000, 1, ha, true) setTimer(guiSetVisible, 3000, 1, wa, true) end) Link to comment
shwaeki Posted May 24, 2014 Share Posted May 24, 2014 addEventHandler("onClientResourceStart", resourceRoot, function() win = guiCreateStaticImage(84, 86, 831, 604, "imgs/wel.png", false) ha = guiCreateStaticImage(580, 187, 279, 359, "imgs/ha.png", false) guiSetVisible(ha, false) wa = guiCreateStaticImage(153, 187, 279, 359, "imgs/wa.png", false) guiSetVisible(wa, false) showCursor(true) fadeCamera(false) setTimer(guiSetVisible, 2000, 1, win, false) setTimer(guiSetVisible, 3000, 1, ha, true) setTimer(guiSetVisible, 3000, 1, wa, true) end) قال الصورة تختفي تدريجيا Link to comment
TAPL Posted May 24, 2014 Share Posted May 24, 2014 addEventHandler("onClientResourceStart", resourceRoot, function() win = guiCreateStaticImage(84, 86, 831, 604, "imgs/wel.png", false) ha = guiCreateStaticImage(580, 187, 279, 359, "imgs/ha.png", false) guiSetVisible(ha, false) wa = guiCreateStaticImage(153, 187, 279, 359, "imgs/wa.png", false) guiSetVisible(wa, false) showCursor(true) fadeCamera(false) setTimer(guiSetVisible, 2000, 1, win, false) setTimer(guiSetVisible, 3000, 1, ha, true) setTimer(guiSetVisible, 3000, 1, wa, true) end) قال الصورة تختفي تدريجيا قل قسم انا صلحت الأخطاء الي بالكود ما لي شغل بالباقي الردود الي فوق وضحو المطلوب Link to comment
max-mohammed Posted May 24, 2014 Author Share Posted May 24, 2014 guiSetAlpha guiGetAlpha + setTimer killTimer -- (إختياري (مستحسن ممكن تعطوني مثال لو سمحتو +مشكور يا تابل على تصحيح الاخطاء Link to comment
K1NG Posted May 24, 2014 Share Posted May 24, 2014 guiSetAlpha guiGetAlpha + setTimer killTimer -- (إختياري (مستحسن ممكن تعطوني مثال لو سمحتو +مشكور يا تابل على تصحيح الاخطاء -- Client Side ! bindKey ( "الزر", "down", function ( ) if ( guiGetVisible ( Wnd ) == true ) then if ( isTimer ( TheFadeTimer ) ) then return end showCursor ( false ) guiSetInputEnabled ( false ) guiSetAlpha ( Wnd, 1 ) TheFadeTimer = setTimer ( function ( ) Alpha = guiGetAlpha ( Wnd ) guiSetAlpha ( Wnd, Alpha - 0.05 ) end, 50, 20) setTimer ( guiSetVisible, 1000, 1, Wnd, false ) else guiSetVisible ( Wnd, true ) guiSetAlpha ( Wnd, 1 ) showCursor ( true ) guiSetInputEnabled ( true ) end end ) الإستبدآل , السطر الثالث + السابع + التاسع + العاشر + الثاني عشر ( 12 ) + الرابع عشر ( 14 ) + الخامس عشر ( 15 ) ذذ , Wnd = اسم النافذة # Link to comment
max-mohammed Posted May 24, 2014 Author Share Posted May 24, 2014 الله يعطيك الف عافية بس متى الكود يخفي النافذة تدرجيا ومتى يظهرها تدرجيا؟ وش اعدل في وكيف؟ Link to comment
#DRAGON!FIRE Posted May 24, 2014 Share Posted May 24, 2014 الله يعطيك الف عافية بس متى الكود يخفي النافذة تدرجيا ومتى يظهرها تدرجيا؟وش اعدل في وكيف؟ شف اخر الرد وتعرف .. ووظيفة الكود اخفاء النافذة تدريجيا فقط 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