Jump to content

dx problem


Master_MTA

Recommended Posts

Posted (edited)

what is the wrong here

dxDrawRectangle(1, 40, 30, 25,tocolor(255,255,255,255),false)
        dxDrawText(1, 40, 30, 25,tocolor(255,255,255,255), 1.4,'default-bold', "center", "center")

not in the same position why?

Edited by Master_MTA

Skype 01100001 01101100 01101001 01011111 01101101 01110100 00110001 00111001 00111001 00111001

every thing is gonna be alright

every thing is gonna be okay

it's gonna be a good good life

that's what my therapist say

Posted

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

 

Posted
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 

Skype 01100001 01101100 01101001 01011111 01101101 01110100 00110001 00111001 00111001 00111001

every thing is gonna be alright

every thing is gonna be okay

it's gonna be a good good life

that's what my therapist say

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