ikvindmooi Posted June 26, 2015 Share Posted June 26, 2015 (edited) Hello, I am trying to make an login panel with DX, so i wanted to put an DX editbox, but the editbox is behind the DX panel instead of at the front of it. how can I get the editbox to the front of the panel? I've looked around at wiki etc, I found something like postGUI which was for that i guess. I changed that to true but it didn't work editbox syntax createEditBox( string/int id, float( 0 - 1 ) x, float( 0 - 1 ) y, float( 0 - 1 ) width, float( 0 - 1 ) height, bool visible, string text, bool mask, int maxLength, string font text, bool space, int type, function color( r, g, b, a ), bool rectangle, function rectangleColor ( r, g, b, a ), float scaleText, bool clip, int ms ( how many miliseconds have to pass to delete text with backspace), bool helpText , string helpText, function helpTextColor( r, g, b, a ), bool helpTextOff, float helpTextScale, string helpTextFont, bool postGUI, bool carret, function carretColor( r, g, b ), bool specialCharacters, bool clickable ) nvm fixed it. it was the dxDrawRectangle at the other function its postGUI was true Edited June 26, 2015 by Guest Link to comment
DNL291 Posted June 26, 2015 Share Posted June 26, 2015 Try calling the exported function createEditBox after the dxDrawImage function. Link to comment
ikvindmooi Posted June 26, 2015 Author Share Posted June 26, 2015 That login is just an button, i have another functiom which draws the panel itself. This one draws the the panel for when i click on the login button Link to comment
Dealman Posted June 26, 2015 Share Posted June 26, 2015 They're drawn in order, either enable Post GUI or move it down towards the end of the function. function drawStuff() dxDrawText() dxDrawImage() -- As this is drawn AFTER the text, it would be drawn ON TOP of the text. end Link to comment
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