Master_MTA Posted September 28, 2017 Posted September 28, 2017 (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 September 28, 2017 by Master_MTA
itHyperoX Posted September 28, 2017 Posted September 28, 2017 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
Master_MTA Posted September 28, 2017 Author Posted September 28, 2017 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now