bandi94 Posted July 21, 2013 Share Posted July 21, 2013 So how the title say's , i am working on a custom textbox like guiEdit. All good until i finished the writing function. I hit a big problem , when you tipe in a normal guiEdit all binkey's are turned off , like t - chat , p - admin panel . I am stuck to imitate this , i just can't disable the "t" , "p" , and other key's and after to re-enable them. It is possible to make it or i am f**** up ? Link to comment
Vector Posted July 22, 2013 Share Posted July 22, 2013 Also, you can use guiSetInputMode https://wiki.multitheftauto.com/wiki/GuiSetInputMode guiSetInputMode ("no_binds_when_editing"); -- binds are disabled when editing a memo or editbox. guiSetInputMode ("allow_binds"); -- binds are enabled again. Link to comment
Castillo Posted July 22, 2013 Share Posted July 22, 2013 Yes, but the thing is, Vector, is not a default textbox, he's creating his own, so I doubt guiSetInputMode will work. Link to comment
Castillo Posted July 22, 2013 Share Posted July 22, 2013 Yes, but that will do the same job as guiSetInputEnabled. 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