The moVer Posted June 10, 2015 Posted June 10, 2015 السلام عليكم شباب ابي احد يعلمني كيف اسوي زر DX وشكرا BACK! هؤلاء الواقفون على قمة الجبل لم يهبطوا من السماء هناك
joubouti Posted June 10, 2015 Posted June 10, 2015 بدك تعمل مثل الأزرار ذي ؟ http://store2.up-00.com/2015-06/1433938666421.png
The moVer Posted June 10, 2015 Author Posted June 10, 2015 يب BACK! هؤلاء الواقفون على قمة الجبل لم يهبطوا من السماء هناك
joubouti Posted June 10, 2015 Posted June 10, 2015 gui في المود ذا انا عمل ازرار لكن شفافة يعني ماتستطيع انا تراها زي كذا Button = guiCreateButton(0.3936, 0.5833, 0.1182, 0.0586, "", true) guiSetAlpha(Button , 0.00)
The moVer Posted June 10, 2015 Author Posted June 10, 2015 طيب سؤال ثاني لو سمحت اذا ابي اغير لون يDX يمدي؟ BACK! هؤلاء الواقفون على قمة الجبل لم يهبطوا من السماء هناك
[iMr]-W[i]Fi,.! Posted June 10, 2015 Posted June 10, 2015 dxDrawRectangle -- مربع guiCreateButton -- ضع الزر امام المربع guiSetAlpha -- اخف الزر -- مثال button = guiCreateButton( 0.7, 0.1, 0.2, 0.1, "", true ) -- ماخوذ من الويكي اي انه ليس بشغال بل لفهم guiSetAlpha (button , 0.00 ) local x,y = guiGetScreenSize() function DX() dxDrawRectangle ( x/3.8, y/3.8, x/2.02, y/2, tocolor ( 0, 0, 0, 150 ) ) addEventHandler("onClientRender", root, DX) المثال مهو مرتب بس افهم منه Dx وبنسبه لسؤالك يمدي تغير اللون بس وش تبي تغير الزر No Thing &*
</Mr.Tn6eL> Posted June 10, 2015 Posted June 10, 2015 اذ كنت مسوي زر مخفي بـgui استعمل "onClientMouseEnter" "onClientMouseLeave" skype : 011101000110111000110110011001010110110000110000001110010011000000111001
The moVer Posted June 11, 2015 Author Posted June 11, 2015 شكرا شباب ما قصرتم جزاكم الله خير BACK! هؤلاء الواقفون على قمة الجبل لم يهبطوا من السماء هناك
M7MD# Posted June 11, 2015 Posted June 11, 2015 GUi اذا تبي الزر دي اكس كامل من دون 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 (isMouseInPosition ذا كود اساسي حطه في كل سكربت ( لــ فنكشن تسوي زر بــ dxDrawRectangle مثلآ dxDrawRectangle(770, 133, 315, 95, tocolor(255, 255, 255, 150), false) اذا تبي تسوي وظيفه لــ زر معين مثلا اخفاء الشات يوم يضغط الزر addEventHandler("onClientClick",getRootElement() , function (button , state) if (button == "left" and state == "up") then if (isMouseInPosition (770, 133, 315, 95)) then ---- هنا تحط موقع الزر showChat(false) end end end ) اتمنى اني افدتك بشكل افضل ..
Mr.R Posted June 11, 2015 Posted June 11, 2015 (edited) GUi اذا تبي الزر دي اكس كامل من دون 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 (isMouseInPosition ذا كود اساسي حطه في كل سكربت ( لــ فنكشن تسوي زر بــ dxDrawRectangle مثلآ dxDrawRectangle(770, 133, 315, 95, tocolor(255, 255, 255, 150), false) اذا تبي تسوي وظيفه لــ زر معين مثلا اخفاء الشات يوم يضغط الزر addEventHandler("onClientClick",getRootElement() , function (button , state) if (button == "left" and state == "up") then if (isMouseInPosition (770, 133, 315, 95)) then ---- هنا تحط موقع الزر showChat(false) end end end ) اتمنى اني افدتك بشكل افضل .. هذي اكواد شرحها @ProGamer في قناته , يشوف الشرح ويفهم كل شيء Edited June 11, 2015 by Guest * There is no God but Allah, Mohammed is the Messenger Of Allah
ALw7sH Posted June 11, 2015 Posted June 11, 2015 X عندكـ غلط addEventHandler ( "onClient[color=#000000][size=6]GUI[/size][/color]Click", root, function ( button, state ) -- يصير كذا بعدين هذي اكواد شرحها @ProGamer في قناته , يشوف الشرح ويفهم كل شيء الشرح حقه بدون زر gui يعني الايفنت onClientClick not onClientGUIClick
Mr.R Posted June 11, 2015 Posted June 11, 2015 X عندكـ غلط addEventHandler ( "onClient[color=#000000][size=6]GUI[/size][/color]Click", root, function ( button, state ) -- يصير كذا بعدين هذي اكواد شرحها @ProGamer في قناته , يشوف الشرح ويفهم كل شيء الشرح حقه بدون زر gui يعني الايفنت onClientClick not onClientGUIClick اها , مشكور على المعلومه ثابت "onClientGUIClick" كنت احسب ايفنت وعدلت كلامي الي فوق * There is no God but Allah, Mohammed is the Messenger Of Allah
The moVer Posted June 12, 2015 Author Posted June 12, 2015 شكرا شباب ما قصرتوا BACK! هؤلاء الواقفون على قمة الجبل لم يهبطوا من السماء هناك
Mr.R Posted June 12, 2015 Posted June 12, 2015 شكرا شباب ما قصرتوا .. حياك الله * There is no God but Allah, Mohammed is the Messenger Of Allah
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