Jump to content

DX editbox to front


Recommended Posts

Posted (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 by Guest
Posted

Try calling the exported function createEditBox after the dxDrawImage function.

Please do not PM me with scripting related question nor support, use the forums instead.

Posted

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

Posted

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 

If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.

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