Jump to content

#Major .

Members
  • Posts

    861
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by #Major .

  1. هههههههههههههههههههههههههههه كود نكست شغال على كل شي عكس كودك الي يمنع ضرر الزومبي فقط ع البيد
  2. #Major .

    مساعدة

    Draws a string of text on the screen for one frame. In order for the text to stay visible continuously, you need to call this function with the same parameters on each frame update (see onClientRender).
  3. انا كنت متعيجزه بس طلع سهل الحمد لله
  4. م سويت قريد ليست سويت سكرول بار حياك الله حبيبي
  5. كيفو زبطت شكرا لك
  6. حقررب ورد ليكوو خبر
  7. السلام عليكم حبيت اشارك ياض ولا ي ورع والسلام عليكم انتهى
  8. لازم تسوي تراقر من الكلانت للسيرفر وبعدين من السيرفر للكلانت
  9. حبيبي ابي اقدر اتحكم بالسكرول بارل بماوس 1 يعني اضغط عليه واسحب لتحت او فوق
  10. شكرا لك لكن كيف لو ابي استخدمه خخ ابي اخليها سكرول بار زي حق الجيو انت فاهمني ؟
  11. تشوف سكرول ؟ زي م قال روك هو مستخدمها للماوس بالماوس3 لما تحركه if dxGrid.items[cursorOn].r > dxGrid.items[cursorOn].mi then -- Define some variables local index = cursorOn; local currentValue = dxGrid.items[index].s; local newValue = math.max ( 1, button == "mouse_wheel_down" and currentValue + 2 or currentValue -1 ); -- Check if we have spent the row's limit with the new value if ( ( newValue + dxGrid.items[index].mi ) > dxGrid.items[index].r ) then newValue = ( dxGrid.items[index].r - dxGrid.items[index].mi ) + 1; end -- Set the new scroll level dxGrid.items[index].s = newValue;
  12. اي دونت نو ._. حاطها بلا فايدة م اشوف اي سكرول
  13. se = -1; -- Selected item s = 1; -- Scroll Level mi = __calcMaxItems ( FIT_MODE and ( height * Y ) or height ); -- Max items
  14. addEventHandler ( "onClientRender", root, function ( ) -- Is there any GridList to render? if #dxGrid.items > 0 then -- Loop through all grid lists for index, data in ipairs ( dxGrid.items ) do -- Is the GridList visible? if data.vis then -- Draw the 'GridList' itself dxDrawRectangle ( data.x, data.y, data.w, data.h, tocolor ( 0, 0, 0, 200 ), data.pg ); -- Draw the column bar dxDrawRectangle ( data.x, data.y, data.w, 30 % data.h, tocolor ( 0, 0, 0, 220 ), data.pg ); -- Set cursorOn variable to the current GridList, if it's selected cursorOn = nil if __isMouseInPosition ( data.x, data.y, data.w, data.h ) then cursorOn = index; end -- Check if there's any selected item local seeFrom = data.s; local seeTo = ( data.s + data.mi ) - 1; if data.se and data.se <= data.r and data.se >= seeFrom and data.se <= seeTo then local index = data.se - ( data.s - 1 ); local y2 = data.y + ( ( index - 1 ) * 25 ); -- Draw a rectangle to make it looks like selected dxDrawRectangle ( data.x, ( 30 % data.h ) + y2, data.w, 20, tocolor ( 0, 0, 0, 100 ), data.pg ); end -- Is there any column? if #data.i > 0 then local cWidth = 0 -- Loop through all columns for cIndex, cData in ipairs ( data.i ) do -- we'll go beyond the GridList width with this column ? if ( ( cWidth + cData.info.width ) <= data.w ) then local x = data.x + cWidth; -- Draw the column title dxDrawText ( cData.info.title, x, data.y, cData.info.width + x, ( 30 % data.h ) + data.y, tocolor ( 255, 255, 255 ), FIT_MODE and ( 1 * SCALE ) or 1, "default-bold", "center", "center", true, true, data.pg, true, true ); -- Reset the selected item cData.info.selected = -1; -- Is there any item ? if #cData > 0 then local seeFrom = data.s; local seeTo = ( data.s + data.mi ) - 1; -- Loop the items for iIndex = seeFrom, seeTo do -- There's a row with this index in the current column? if cData[iIndex] then local index = iIndex - ( data.s - 1 ); local y = data.y + ( index * 25 ); local y2 = data.y + ( ( index - 1 ) * 25 ); -- Check if cursor is on item position if __isMouseInPosition ( data.x, ( 30 % data.h ) + y2, data.w, 20 ) then -- Define the mouse-on variable data.mo = iIndex; end -- Draw the item text dxDrawText ( cData[iIndex]["text"], x, y, cData.info.width + x, ( 30 % data.h ) + y, tocolor ( unpack ( cData[iIndex]["color"] ) ), FIT_MODE and ( 1 * SCALE ) or 1, "default-bold", "center", "center", true, true, data.pg, true, true ); end end end -- Increase cWidth variable (to draw the columns correctly) cWidth = cWidth + cData.info.width; end end end end end end end , true, "low-5")
  15. حبيبي ابي اسوي السكور بار م ابي اسوي القريد
  16. انا جيت اطلب هنا عن الفنكشنات الا عشان م ابي اسويه من ال0
  17. السلام عليكم ابي فنكشنات قريد ليست لقيت هذhttps://forum.multitheftauto.com/topic/80117-rel-dxgridlists-framework/ لكن مشكلتة بدون سكور بار
  18. ادري بس قروشه وانا كنت مستعجل شكرا لك
  19. شكرا ع كل حال لكن المشكلة ان الوحة فيها مليون شي مشوار اصمم كلشي من جديد
  20. السلام عليكم ابي اوزن الدي اكس والجيو مع بعض بنفس الوزنيه م عرفت ّ addEventHandler("onClientRender", root, function( ) if ( Open == true ) then dxDrawLine((screenW * 0.2365) - 1, (screenH * 0.0794) - 1, (screenW * 0.2365) - 1, screenH * 0.1185, tocolor(255, 254, 254, 255), 1, true) dxDrawLine(screenW * 0.7635, (screenH * 0.0794) - 1, (screenW * 0.2365) - 1, (screenH * 0.0794) - 1, tocolor(255, 254, 254, 255), 1, true) dxDrawLine((screenW * 0.2365) - 1, screenH * 0.1185, screenW * 0.7635, screenH * 0.1185, tocolor(255, 254, 254, 255), 1, true) dxDrawLine(screenW * 0.7635, screenH * 0.1185, screenW * 0.7635, (screenH * 0.0794) - 1, tocolor(255, 254, 254, 255), 1, true) dxDrawLine((screenW * 0.2365) - 1, (screenH * 0.0794) - 1, (screenW * 0.2365) - 1, screenH * 0.9219, tocolor(255, 254, 254, 255), 1, true) dxDrawLine(screenW * 0.7635, (screenH * 0.0794) - 1, (screenW * 0.2365) - 1, (screenH * 0.0794) - 1, tocolor(255, 254, 254, 255), 1, true) dxDrawLine((screenW * 0.2365) - 1, screenH * 0.9219, screenW * 0.7635, screenH * 0.9219, tocolor(255, 254, 254, 255), 1, true) dxDrawLine(screenW * 0.7635, screenH * 0.9219, screenW * 0.7635, (screenH * 0.0794) - 1, tocolor(255, 254, 254, 255), 1, true) dxDrawLine((screenW * 0.5454) - 1, (screenH * 0.2917) - 1, (screenW * 0.5454) - 1, screenH * 0.3229, tocolor(255, 254, 254, 255), 1, true) dxDrawLine(screenW * 0.7094, (screenH * 0.2917) - 1, (screenW * 0.5454) - 1, (screenH * 0.2917) - 1, tocolor(255, 254, 254, 255), 1, true) dxDrawLine((screenW * 0.5454) - 1, screenH * 0.3229, screenW * 0.7094, screenH * 0.3229, tocolor(255, 254, 254, 255), 1, true) dxDrawLine(screenW * 0.7094, screenH * 0.3229, screenW * 0.7094, (screenH * 0.2917) - 1, tocolor(255, 254, 254, 255), 1, true) dxDrawLine((screenW * 0.2482) - 1, (screenH * 0.1198) - 1, (screenW * 0.2482) - 1, screenH * 0.7852, tocolor(255, 255, 255, 255), 1, true) dxDrawLine(screenW * 0.5022, (screenH * 0.1198) - 1, (screenW * 0.2482) - 1, (screenH * 0.1198) - 1, tocolor(255, 255, 255, 255), 1, true) dxDrawLine((screenW * 0.2482) - 1, screenH * 0.7852, screenW * 0.5022, screenH * 0.7852, tocolor(255, 255, 255, 255), 1, true) dxDrawLine(screenW * 0.5022, screenH * 0.7852, screenW * 0.5022, (screenH * 0.1198) - 1, tocolor(255, 255, 255, 255), 1, true) dxDrawText(playerSTATS, screenW * 0.5110, screenH * 0.1315, screenW * 0.8770, screenH * 0.1576, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, true, true, false) dxDrawProgressBar ( D ) end end ) GUIEditor.window[1] = guiCreateStaticImage(screenW/2-(720/2), screenW/2-(647/2), 720, 647, "wnd.jpg", false) الدي اكس يجي بمكان والوحة بمكان ثاني
  21. ششكرا لكم @#َxLysandeR @Trefeor
  22. السلام عليكم احد عنده مكتبة او فنكشنات بروقرس بار دي اكس ؟ شكرا
×
×
  • Create New...