SolideRock Posted February 8, 2017 Share Posted February 8, 2017 السلام عليكم شباب عندي مشكله بالكود ذا مدري وش الحل if ( isMouseInPosition(screenW * 0.3675, screenH * 0.3958, screenW * 0.1589, screenH * 0.0469) ) then dxDrawRectangle(screenW * 0.3675, screenH * 0.3958, screenW * 0.1589, screenH * 0.0469, tocolor(0, 0, 0, 255), false) else dxDrawRectangle(screenW * 0.3675, screenH * 0.3958, screenW * 0.1589, screenH * 0.0469, tocolor(130, 127, 120, 255), false) end Link to comment
Abu-Solo Posted February 8, 2017 Share Posted February 8, 2017 حط الكود ذا قبل الاكواد حقتك 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
SolideRock Posted February 8, 2017 Author Share Posted February 8, 2017 معرفها !! local screenW, screenH = guiGetScreenSize() Link to comment
Abu-Solo Posted February 8, 2017 Share Posted February 8, 2017 Just now, SolideRock said: معرفها !! local screenW, screenH = guiGetScreenSize() شوف ردي اللي فوق راح يفيدك# Link to comment
SolideRock Posted February 8, 2017 Author Share Posted February 8, 2017 ابو سولو شكرا :] سكايبك ممكن ؟ Link to comment
Abu-Solo Posted February 8, 2017 Share Posted February 8, 2017 Just now, SolideRock said: ابو سولو شكرا :] سكايبك ممكن ؟ العفو ما استخدم سكايب اذا بغيت شئ كلمني هنا في الخاص وابشر 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