Jump to content

Rockyz

Members
  • Posts

    1,862
  • Joined

  • Days Won

    8

Everything posted by Rockyz

  1. انت تبي تسوي اكثر من زر و كل زر اذا ضغطت عليه يطلع لك كلام مختلف صح ؟ جرب المثال الي عطيتك اياه
  2. سويت لك مثال بسيط local sx, sy = guiGetScreenSize() local list = { buttons = { {coordinates = {(sx/2)-155, (sy/2), 100, 30}, text = "Button 1", label = "Label 1"}, {coordinates = {(sx/2)-50, (sy/2), 100, 30}, text = "Button 2", label = "Label 2"}, {coordinates = {(sx/2)+55, (sy/2), 100, 30}, text = "Button 3", label = "Label 3"}, }, selected = 1 } showCursor(true) addEventHandler("onClientRender", root, function() for key, value in ipairs(list.buttons) do local data = value.coordinates local alpha = 255-(isMouseInPosition(unpack(value.coordinates)) and 100 or 0) dxDrawRectangle(data[1], data[2], data[3], data[4], tocolor(255, 0, 0, alpha)) dxDrawText(list.buttons[key].text, data[1], data[2], data[1]+data[3], data[2]+data[4], tocolor(255, 255, 255, alpha), 1, "default-bold", "center", "center", true) end if list.buttons[list.selected] then dxDrawText(list.buttons[list.selected].label, (sx/2)-10, (sy/2)+35) end end) addEventHandler("onClientClick", root, function(button, state) if button == "left" and state == "down" then for key, value in ipairs(list.buttons) do if isMouseInPosition(unpack(value.coordinates)) then list.selected = key break end end end end) 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 return (cx >= x and cx <= x+width) and (cy >= y and cy <= y+height) end تقدر تضيف ازرار زيادة من الجدول
  3. الاسم زرفته و الافتار زرفته وش باقي ؟ ?
  4. يتفعل فقط في حالة ان الفنكشن من اللعبة نفسها
  5. مايحتاج يفعل ال oop لانه بس حق اللعبة وانا ماستخدمته على فنكشنات من اللعبة
  6. هو اخذ الفنكشن بس بدون الجداول و الفنكشنات المفيدة الثانية
  7. صحح معلوماتك، source تستخدم في الجهتين
  8. اهم شي في الألعاب كرت الشاشة لكن اذا تبي تعرف اذا لعبة تشتغل على جهازك او لا جرب اول
  9. https://wiki.multitheftauto.com/wiki/Element/Shader https://wiki.multitheftauto.com/wiki/Shader_examples http://rbwhitaker.wikidot.com/intro-to-shaders https://digitalerr0r.wordpress.com/tutorials/ http://www.catalinzima.com/xna/tutorials/crash-course-in-hlsl/
  10. بدل كل هذا استخدم getDistanceBetweenPoints3D
  11. قال لك اسم انمي مو اسم شخصية
  12. وعليكم السلام اطرح الي سويته..
×
×
  • Create New...