Ranous Posted April 26, 2015 Posted April 26, 2015 Hello everybody! I want to DxEditbox code. Thank you in advance.
WhoAmI Posted April 26, 2015 Posted April 26, 2015 Create gui edit, set alpha to 0 and property "AlwaysOnTop" to true. Then, create dxDrawText in same position as gui edit and set it's text from guiGetText function.
Ranous Posted April 26, 2015 Author Posted April 26, 2015 Thank you. I'm not a professional. I'm doing easy scripts.
WhoAmI Posted April 28, 2015 Posted April 28, 2015 We won't make code for you. Show your code and we'll try to help you.
Mr.unpredictable. Posted April 28, 2015 Posted April 28, 2015 viewtopic.php?f=91&t=47897 read this 1st before creating topic in scripting board.
-ffn-python Posted September 5, 2015 Posted September 5, 2015 Hi Bro. Example; local theInput local textColor = tocolor(0, 0, 0, 255) local editBoxColor = tocolor(255, 255, 255, 255) addEventHandler("onClientRender", root, function() if theInput then dxDrawRectangle(395, 395, 100, 55, editBoxColor) dxDrawText(theInput, 400, 400, 90, 45, textColor) end end ) addEventHandler("onClientCharacter", root, function(theChar) theInput = theInput .. theChar end ) -- handling the backspace key: addEventHandler("onClientKey", root, function(theButton, state) if theButton == "backspace" and state == "down" then theInput = theInput:sub(1, theInput:len()-1) end end )
Ranous Posted September 5, 2015 Author Posted September 5, 2015 This problem solved but i need new techniques. Thank you Python.
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