Jump to content

طلب كــود --- تنوير الصورة


Recommended Posts

Alpha السلأم عليكم .. ي اخوان ابغى كود لو دخلت المؤشر ع الصورة الصورة تنور اعتقد شي بـ

لاكن انا اعرف الحدث بس صراحة ما اعرف كيف استخدمه مع الكود وكيف اسوي الكود .. onClientMouseEnter

Edited by Guest
Link to comment
  Mr.Pres[T]ege said:
مثآل /

addEventHandler("onClientMouseEnter",root, 
    function ( ) 
        if ( source == Image ) then 
            guiSetAlpha(Image,1); 
    end; 
end 
); 

يقدر يسوي صور فوق صور,,

يعني عنده مثلا صوره آسمها Image1 and Image2

addEventHandler("onClientMouseLeave",root, 
    function ( ) 
        if ( source == Image2 ) then 
            guiSetVisible(Window, true) 
    end 
end 
) 

Link to comment
  ZA7F said:
مشكوووووورين + مشكور برستيج

خخخخخخخخخخخخخخخ

برستيج

خخخ وربي ضحكتني

Hopeless Forum Addict

خخخخ شكلك فاضي

العفوو,,

  The Best said:
يقدر يسوي صور فوق صور,,

يعني عنده مثلا صوره آسمها Image1 and Image2

addEventHandler("onClientMouseLeave",root, 
    function ( ) 
        if ( source == Image2 ) then 
            guiSetVisible(Window, true) 
    end 
end 
) 

!!!ليش اللحسة ذي كلها :o ؟؟

Link to comment
  Mr.Pres[T]ege said:
مافهمت ولا شيء :lol:?

يعني في صوره مثلا الصور لونها ابيض,

ويسوي صوره ثاني بنفس الاحداثيات ويخلي لون الكلام احمر مثلا,

ويسوي الايفنت اذا مر على الصوره الاولى تظهر الثانيه,, وكأنهآ تغيرت -_-

Link to comment
  The Best said:
  Mr.Pres[T]ege said:
مافهمت ولا شيء :lol:?

يعني في صوره مثلا الصور لونها ابيض,

ويسوي صوره ثاني بنفس الاحداثيات ويخلي لون الكلام احمر مثلا,

ويسوي الايفنت اذا مر على الصوره الاولى تظهر الثانيه,, وكأنهآ تغيرت -_-

طيب انت تقول اذا مر على الصورة وكاتب

onClientMouseLeave 

عدل

Link to comment
  The Best said:
  Mr.Pres[T]ege said:
مافهمت ولا شيء :lol:?

يعني في صوره مثلا الصور لونها ابيض,

ويسوي صوره ثاني بنفس الاحداثيات ويخلي لون الكلام احمر مثلا,

ويسوي الايفنت اذا مر على الصوره الاولى تظهر الثانيه,, وكأنهآ تغيرت -_-

لية ؟ فية وظائف تسويهـا مثل اللي سويتها لة وعن اذنكم طالع #

Link to comment
addEventHandler ( "onClientMouseEnter", root, 
    function ( ) 
        if source == Image then 
            guiSetVisible ( Image2, true ) 
        end 
    end 
) 
  
addEventHandler ( "onClientMouseLeave", root, 
    function ( ) 
        if source == Image then 
            guiSetVisible ( Image2, false ) 
        end 
    end 
) 

onClientMouseLeave بخصوص,

كان خطأ مطبعيي ,,

onClientMuseEnter المفروض آحطهآ

^ المهم تمت الافاده , آكتب تمت الافادهه,,

Link to comment

هو يقصد يخليها شفافه مخفيه شوي لحطيت السهم عليها تصير واضحه

انت جبت له يشيلها كلها ويرجعها

  
    function enter() 
        if source == Image then 
            guiSetAlpha(Image,255) 
        end 
    end 
addEventHandler( "onClientMouseEnter", root,enter) 
  
  
    function leave() 
        if source == Image then 
            guiSetAlpha(Image,2) 
        end 
    end 
addEventHandler("onClientMouseLeave", root,leave) 

Link to comment
  xXDawiXx said:
هو يقصد يخليها شفافه مخفيه شوي لحطيت السهم عليها تصير واضحه

انت جبت له يشيلها كلها ويرجعها

  
    function enter() 
        if  source == Image   then 
            guiSetAlpha(Image,255) 
        end 
    end 
addEventHandler( "onClientMouseEnter", root,enter) 
  
  
    function leave() 
        if  source == Image  then 
            guiSetAlpha(Image,2) 
        end 
    end 
addEventHandler("onClientMouseLeave", root,leave) 

آهآ ما حسبته يبيها كذآ,,

+ رتبها احسن,,

addEventHandler("onClientMouseEnter", root, 
function() 
if ( source == Image ) then 
guiSetAlpha(Image,255) 
     end 
end 
) 
      
addEventHandler("onClientMouseLeave", root, 
function() 
if ( source == Image ) then 
guiSetAlpha(Image,2) 
     end 
end 
) 

Link to comment
GUIEditor_Image[1] = guiCreateStaticImage(29,63,366,472,"11/1.png",false) 
guiSetAlpha(GUIEditor_Image[1],0.2) 
 addEventHandler("onClientMouseEnter",GUIEditor_Image[1], 
function ( ) 
guiSetAlpha(GUIEditor_Image[1],1) 
end,false) 
  
 addEventHandler("onClientMouseLeave",GUIEditor_Image[1], 
function ( ) 
guiSetAlpha(GUIEditor_Image[1],0.2) 
end,false) 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...