K4stic Posted April 24, 2014 Posted April 24, 2014 Hello MTAsa Community. Can anyone help me to make editbox with Dx? i know how to make the EditBox but i need how to add the charter and with backward remove the charter
Saml1er Posted April 24, 2014 Posted April 24, 2014 Make an edit box and use guiSetAlpha and render your dx rectangle there or you've already tried it?
zocken212 Posted April 24, 2014 Posted April 24, 2014 Make an edit box and use guiSetAlpha and render your dx rectangle there or you've already tried it? cheater solution I have a class for creating a dxEditBox, if you want it you can send me a PM.
WASSIm. Posted April 24, 2014 Posted April 24, 2014 check this: viewtopic.php?f=91&t=48128&p=475863&hilit=Dx+Edit+Box#p475963
K4stic Posted April 24, 2014 Author Posted April 24, 2014 check this: viewtopic.php?f=91&t=48128&p=475863&hilit=Dx+Edit+Box#p475963 -.-" i know how make the editBox but!!!!! i reapeat who no read it BUT! i don't know how put Text on it! like then i type on keyboard to add charter or do backspace to remove charter
myonlake Posted April 24, 2014 Posted April 24, 2014 Don't use onClientKey, use onClientCharacter That is also an option. Pretty much depends on the usage and needs - but he will need onClientKey eventually since if he wants to be able to delete characters.
K4stic Posted April 24, 2014 Author Posted April 24, 2014 i need know how the functions and events i know i need know how i can't just locate the algorithm in my head of how they must work D;
myonlake Posted April 24, 2014 Posted April 24, 2014 Maybe look at WASSIM's link above then..? That has all the functions listed in it.
K4stic Posted April 24, 2014 Author Posted April 24, 2014 they have all function and etc just to make the Dx custom Edit Box without the Text part to Correct understund you know the Gui EditBox? if yes theni want make that but with Dx the Problem is how to make the Text part
myonlake Posted April 25, 2014 Posted April 25, 2014 Look at the Wiki. Search for dxDrawText. Problem solved.
kevenvz Posted April 25, 2014 Posted April 25, 2014 Don't use onClientKey, use onClientCharacter That is also an option. Pretty much depends on the usage and needs - but he will need onClientKey eventually since if he wants to be able to delete characters. You can also use getKeyState in a onClientRender
Karuzo Posted April 25, 2014 Posted April 25, 2014 text = {} function getCharacter(character) for i,ebox in ipairs(youreditbox) do table.insert(text[i], character) end end addEventHandler("onClientCharacter", getRootElement(), getCharacter) addEventHandler("onClientRender",root,function() dxDrawText(table.concat(text[i],""),.......) end) --and to remove it just use bindKey("backspace", "down", function () table.remove(....) end) Like that? It's just an example. 1
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