Jump to content

dx problem


Master_MTA

Recommended Posts

if you want you can use this:

dxDrawButton("Your Text",1, 40, 30, 25, tocolor(0,0,0,135))

function dxDrawButton(text, startX, startY, width, height, color)
    dxDrawRectangle(startX - 1, startY, 1, height, tocolor(0,0,0,255)) --left
    dxDrawRectangle(startX + width, startY, 1, height, tocolor(0,0,0,255)) --right
    dxDrawRectangle(startX - 1, startY - 1, width + 2, 1, tocolor(0,0,0,255)) --top
    dxDrawRectangle(startX - 1, startY + height, width + 2, 1, tocolor(0,0,0,255)) --bottom
    dxDrawRectangle(startX, startY, width, height, color)
    dxDrawText(text, startX, startY, startX + width, startY + height, tocolor(255, 255, 255), 1, "default", "center", "center", false, false, false, true)
end

 

Link to comment
9 minutes ago, TheMOG said:

if you want you can use this:


dxDrawButton("Your Text",1, 40, 30, 25, tocolor(0,0,0,135))

function dxDrawButton(text, startX, startY, width, height, color)
    dxDrawRectangle(startX - 1, startY, 1, height, tocolor(0,0,0,255)) --left
    dxDrawRectangle(startX + width, startY, 1, height, tocolor(0,0,0,255)) --right
    dxDrawRectangle(startX - 1, startY - 1, width + 2, 1, tocolor(0,0,0,255)) --top
    dxDrawRectangle(startX - 1, startY + height, width + 2, 1, tocolor(0,0,0,255)) --bottom
    dxDrawRectangle(startX, startY, width, height, color)
    dxDrawText(text, startX, startY, startX + width, startY + height, tocolor(255, 255, 255), 1, "default", "center", "center", false, false, false, true)
end

 

thx solved it before thx any way that wasn't my mean 

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...