Jump to content

ايش هو ال DX ?


Recommended Posts

السلام عليكم ورحمة الله تعالى وبركاته

كيف حالكم يا شباب ؟ كل عام وانتم بخير وصحة وسلامة

شباب اشوف بالكومنيتي مودات مكتوب انها مصممة بال DX

فحبيت اعرف وش هو الدي اكس

وشلون اقدر استخدمه

:mrgreen::mrgreen::mrgreen::mrgreen::mrgreen::mrgreen:

Link to comment
السلام عليكم ورحمة الله تعالى وبركاته

كيف حالكم يا شباب ؟ كل عام وانتم بخير وصحة وسلامة

شباب اشوف بالكومنيتي مودات مكتوب انها مصممة بال DX

فحبيت اعرف وش هو الدي اكس

وشلون اقدر استخدمه

:mrgreen::mrgreen::mrgreen::mrgreen::mrgreen::mrgreen:

الدي اكس تقدر تستخدمه بالguieditor

بس تعطي مضهر احلى للمودات و التصاميم

شوف ذي مثلا

3tzWGEX.png

بس راح تلقى فنكشاتها بالويكي

it's not mine

ماهي حقي

فنكشاتها هنا

Link to comment

النوافذ Dx

تعطيك شكل احلى من الـ Gui

لكن الـ Dx

يبي شغل كثير

تسويه بـ

dxDrawRectangle 
dxDrawText 
or  
dxDrawImage 

واذا تبيه يضغط سو له ليبل مخفي او زر

او اذا ماتبي سو ب ذا

'onClientClick' 

Link to comment
النوافذ Dx

تعطيك شكل احلى من الـ Gui

لكن الـ Dx

يبي شغل كثير

تسويه بـ

dxDrawRectangle 
dxDrawText 
or  
dxDrawImage 

واذا تبيه يضغط سو له ليبل مخفي او زر

او اذا ماتبي سو ب ذا

'onClientClick' 

ي فيسبوك

انا مسوي نفس الطريقة الي قلتها بس الـ

dx

لما اقفل اللوحه مايروح :/ تبقى الازرار والخطوط حق الـ

dx

موجوده في الشاشه

Link to comment
        addEventHandler("onClientRender", getRootElement(), drawText)    
    function drawText() 
        dxDrawRectangle(408, 347, 154, 41, tocolor(200, 212, 8, 83), true, wnd) 
        dxDrawRectangle(572, 347, 154, 41, tocolor(233, 0, 0, 83), true, wnd) 
        dxDrawLine(221, 15, 221, 541, tocolor(216, 0, 0, 254), 3, true, wnd) 
        dxDrawLine(219, 540, 1365, 540, tocolor(216, 0, 0, 254), 3, true, wnd) 
        removeEventHandler("onClientRender", getRootElement(), drawText) 
end  

تابل انا سويته كذا بس ماعاد تظهر :/

Link to comment
وريني الكود لما تظهر و تخفي النافذه

دوك

Client

  
local FTH = "0" ----- ذا الزر 0 
function Show () 
getVisible = guiGetVisible (wnd) 
if (getVisible == true) then 
    guiSetVisible (wnd, false) 
    showCursor (false) 
    guiSetInputEnabled(false) 
end 
if (getVisible == false) then    
    showCursor (true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0) ) 
        guiSetVisible (wnd, true) 
end,100,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0.1) ) 
end,200,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0.2) ) 
        end,300,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0.3) ) 
        end,400,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0.4) ) 
        end,500,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0.5) ) 
        end,600,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0.6) ) 
        end,700,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0.7) ) 
        end,800,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0.8 )) 
        end,900,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0.9) ) 
        end,1000,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(1) ) 
        end,1000,1,true) 
end 
end 
bindKey(FTH,"down",Show) --------- FTH = قيمة انا محددها لفتح اللوحه 

Link to comment
يعني مثلا

dxDrawRectangle

احط له احداثيات الزر وهو يتحول لزر ولا كيف ؟

والكتابة شلون اخليها عليه

نو , ذي اداة مالها علاقه بالزر

بس انت تضبطها واذا تبيها تكون زر

حط لها ليبل

Link to comment
وريني الكود لما تظهر و تخفي النافذه

دوك

Client

  
local FTH = "0" ----- ذا الزر 0 
function Show () 
getVisible = guiGetVisible (wnd) 
if (getVisible == true) then 
    guiSetVisible (wnd, false) 
    showCursor (false) 
    guiSetInputEnabled(false) 
end 
if (getVisible == false) then    
    showCursor (true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0) ) 
        guiSetVisible (wnd, true) 
end,100,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0.1) ) 
end,200,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0.2) ) 
        end,300,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0.3) ) 
        end,400,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0.4) ) 
        end,500,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0.5) ) 
        end,600,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0.6) ) 
        end,700,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0.7) ) 
        end,800,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0.8 )) 
        end,900,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0.9) ) 
        end,1000,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(1) ) 
        end,1000,1,true) 
end 
end 
bindKey(FTH,"down",Show) --------- FTH = قيمة انا محددها لفتح اللوحه 

خلاص صلحته 8)

وومشكور تابل + هذا الكود بعد التصليح ولحس المخ

function Show () 
getVisible = guiGetVisible (wnd) 
if (getVisible == true) then 
    guiSetVisible (wnd, false) 
    showCursor (false) 
    guiSetInputEnabled(false) 
    removeEventHandler( "onClientRender", root, dx )  ----- عند اغلاق اللوحه يحذف الدي اكس 
end 
if (getVisible == false) then    
    showCursor (true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0) ) 
        guiSetVisible (wnd, true) 
        addEventHandler( "onClientRender", root, dx ) ----- عند فتح اللوحه يفتح الدي اكس 
end,100,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0.1) ) 
end,200,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0.2) ) 
        end,300,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0.3) ) 
        end,400,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0.4) ) 
        end,500,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0.5) ) 
        end,600,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0.6) ) 
        end,700,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0.7) ) 
        end,800,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0.-- s8) --> ) 
        end,900,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(0.9) ) 
        end,1000,1,true) 
setTimer(function() 
        guiSetAlpha ( wnd, tonumber(1) ) 
        end,1000,1,true) 
end 
end 
bindKey(Key,"down",Show) 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...