Jump to content

عن Dx في gui


ميدوح

Recommended Posts

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

كيفكم؟

ابي اسوي من داخل gui dx

كود


GUIEditor = {
    window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        GUIEditor.window[1] = guiCreateWindow(234, 258, 270, 200, "WIN", false)
        guiWindowSetSizable(GUIEditor.window[1], false)    
    end
)

addEventHandler("onClientRender", root,
    function()
        dxDrawText("NAME :", 280, 300, 448, 427, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
    end
)

 

Edited by medo7
Link to comment

اذا تقصد انك تضع محتويات الدي اكس في اللوحة

استخدم حسابات

local x, y = windowX+dxX, windowY+dxY

نطبق على  اكوادك

تصير

GUIEditor = {
    window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        GUIEditor.window[1] = guiCreateWindow(234, 258, 270, 200, "WIN", false)
        guiWindowSetSizable(GUIEditor.window[1], false)    
    end
)

addEventHandler("onClientRender", root,
    function()
        dxDrawText("NAME :", 234+280, 258+300, 448, 427, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
    end
)

 

  • Like 1
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...