#StrOnG_,) Posted July 31, 2015 Share Posted July 31, 2015 السلام عليكم ورحمه الله وبركاته كيفكم شباب ان شاء الله بخير .. المهممم ابي كود لما أضغط على الزر أو أللمسه يصير لونه أحمر ولما أبعد ألمؤشر عنه يرجع للون الافتراضي وشكرا Link to comment
justboy Posted July 31, 2015 Share Posted July 31, 2015 onClientMouseEnter</p>\n<p>onClientMouseLeave او اذا كنت تقصد اكواد dx فإستخدم function isMouseInPosition(x, y, width, height) if ( not isCursorShowing( ) ) then return false end local sx, sy = guiGetScreenSize( ) local cx, cy = getCursorPosition( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end Link to comment
iMr.SFA7 Posted July 31, 2015 Share Posted July 31, 2015 (edited) addEventHandler ( "onClientMouseEnter", root, function ( ) if source == Button then guiSetProperty(Button, "NormalTextColour", "FFFF0000"); end end ) addEventHandler ( "onClientMouseLeave", root, function ( ) if source == Button then guiSetProperty(Button, "NormalTextColour", "FFFFFFFF"); end end ) Edited July 31, 2015 by Guest Link to comment
The moVer Posted July 31, 2015 Share Posted July 31, 2015 onClientMouseEnter<p>onClientMouseLeave او اذا كنت تقصد اكواد dx فإستخدم function isMouseInPosition(x, y, width, height) if ( not isCursorShowing( ) ) then return false end local sx, sy = guiGetScreenSize( ) local cx, cy = getCursorPosition( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end في طريقة اسهل للدي اكس يمديك تسوي زر عادي مو دي اكس وتخلي الشفافية 0 واعمل انه كل ما تدخل الماوس الزر يتغير الدي اكس الفنكشنات guiSetAlpha onClientMouseEnter onClientMouseLeave Link to comment
#Mr.Rajo~,< Posted July 31, 2015 Share Posted July 31, 2015 راعي الموضوع كاتب يصير لونه احمر وسفاح عطاه الكود وش دخل الشفافيه Link to comment
Mr Avira Posted July 31, 2015 Share Posted July 31, 2015 onClientMouseEnter<p>onClientMouseLeave او اذا كنت تقصد اكواد dx فإستخدم function isMouseInPosition(x, y, width, height) if ( not isCursorShowing( ) ) then return false end local sx, sy = guiGetScreenSize( ) local cx, cy = getCursorPosition( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end في طريقة اسهل للدي اكس يمديك تسوي زر عادي مو دي اكس وتخلي الشفافية 0 واعمل انه كل ما تدخل الماوس الزر يتغير الدي اكس الفنكشنات guiSetAlpha onClientMouseEnter onClientMouseLeave كلامك خطأ هو ما قال شئ عن الدي اكس وسفاح عطاه الكود خلاص Link to comment
The moVer Posted August 1, 2015 Share Posted August 1, 2015 انتم ما فهمتو قصدي #unknown عطاه كود للدي اكس اذا بسوي دي اكس انا اعرف طريقه اسهل وكتبتها 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