' A F . Posted April 11, 2015 Share Posted April 11, 2015 # سسلأمم ععليكم , كيف حالكم ابي استفسر اقدر اسوي موشر دي اكس ؟ Link to comment
#DRAGON!FIRE Posted April 11, 2015 Share Posted April 11, 2015 yub .. getCursorPosition setCursorAlpha dxDrawImage Link to comment
' A F . Posted April 11, 2015 Author Share Posted April 11, 2015 ابي مثال على dxDrawImage مع setCursorAlpha Link to comment
#DRAGON!FIRE Posted April 11, 2015 Share Posted April 11, 2015 مالهم دخل ببعض اللي تسويه انكـ تخلي الالفا حق المؤشر 0 وداخل الرندر تجيب احداثيات المؤشر وتسوي الصورهـ بـ هذي الاحداثيات . Link to comment
' A F . Posted April 11, 2015 Author Share Posted April 11, 2015 كذا ؟ addEventHandler("onClientRender", root, function() local screenx, screeny, worldx, worldy, worldz = getCursorPosition() dxDrawImage(screenx, screeny, worldx, worldy, "Cursor.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) setCursorAlpha(0) end ) Link to comment
#DRAGON!FIRE Posted April 11, 2015 Share Posted April 11, 2015 addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) setCursorAlpha ( 0 ) end ) addEventHandler( "onClientRender", root, function ( ) local screenx, screeny = getCursorPosition ( ) dxDrawImage ( screenx, screeny, 10, 10, "Cursor.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end ) Link to comment
' A F . Posted April 11, 2015 Author Share Posted April 11, 2015 اقدر احط الصوره رابط ؟ Link to comment
#DRAGON!FIRE Posted April 11, 2015 Share Posted April 11, 2015 الصورهـ راح تكون خفيفة .. ما لقيت الا هالشي تحط برابط . Link to comment
' A F . Posted April 11, 2015 Author Share Posted April 11, 2015 كفوو اشتغل لاكن لو م افتح اي لوحة يروح الباد و الماوس يجي فوق Link to comment
#DRAGON!FIRE Posted April 11, 2015 Share Posted April 11, 2015 addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) setCursorAlpha ( 0 ) end ) addEventHandler( "onClientRender", root, function ( ) if ( isCursorShowing ( ) ) then local screenx, screeny = getCursorPosition ( ) dxDrawImage ( screenx, screeny, 10, 10, "Cursor.png", 0, 0, 0, tocolor(255, 255, 255, 255), false ) end end ) Link to comment
#DRAGON!FIRE Posted April 11, 2015 Share Posted April 11, 2015 فهمني ايش اللي يصير بالضبط ؟ Link to comment
' A F . Posted April 11, 2015 Author Share Posted April 11, 2015 الماوس يجي فوق ع اليسار و مايتحرك Link to comment
shwaeki Posted April 12, 2015 Share Posted April 12, 2015 addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) setCursorAlpha ( 0 ) end ) addEventHandler( "onClientRender", root, function ( ) if ( isCursorShowing ( ) ) then local cW, cH = getCursorPosition ( ) local sW, sH = guiGetScreenSize ( ) dxDrawImage ( cW * sW, cH * sH, 10, 10, "Cursor.png", 0, 0, 0, tocolor(255, 255, 255, 255), true ) end end ) 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