bandi94 Posted July 21, 2013 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 ? Ingame Name : |DGT|Puma DGT Clan Server 24/7 Owner/Scripter MultiGameMode in progress :
Castillo Posted July 21, 2013 Posted July 21, 2013 guiSetInputEnabled San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Vector Posted July 22, 2013 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. there are two kinds of people: those who know C++ and those who don´t. .)
Castillo Posted July 22, 2013 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. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Vector Posted July 22, 2013 Posted July 22, 2013 guiSetInputMode ("no_binds"); there are two kinds of people: those who know C++ and those who don´t. .)
Castillo Posted July 22, 2013 Posted July 22, 2013 Yes, but that will do the same job as guiSetInputEnabled. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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