Karuzo Posted February 11, 2014 Posted February 11, 2014 Hey Guys, So i wanted to make my Panel look more beautiful, and so i setted the alpha of the Edit-Box to 0. So my Question is : The Text has also a alpha of 0 , can i make it to 100? So the players just can see the text hey write ? If not: Is there another way to create a edit-box ?
Bonsai Posted February 11, 2014 Posted February 11, 2014 Maybe you find some help here: http://web.archive.org/web/201207060814 ... ml#Editbox https://wiki.multitheftauto.com/wiki/GuiSetProperty
Karuzo Posted February 11, 2014 Author Posted February 11, 2014 I don't really know what i should do with that.
Bonsai Posted February 11, 2014 Posted February 11, 2014 Its some special attributes for gui objects. I thought there might be something helpful.
Karuzo Posted February 11, 2014 Author Posted February 11, 2014 Hmm, Not really :-/ Isn't there a way to make the text with an alpha of 100? Or a way to create custom editboxes?
Karuzo Posted March 3, 2014 Author Posted March 3, 2014 I still need help with this. What i actually want to make is : A login Panel with a editbox where the editbox' alpha is down to 0 but the text will be still visible.
WhoAmI Posted March 3, 2014 Posted March 3, 2014 I think it's impossible. You can create your own edit box using dx functions and event onClientKey.
Arnold-1 Posted March 3, 2014 Posted March 3, 2014 hmm, actually you can make it a label and make something like: Label = guiCreateLabel (...) bindKey("H","down",theFunction) function theFunction () text = guiGetText(Label) guiSetText(Label,text + "H") end
Castillo Posted March 3, 2014 Posted March 3, 2014 He can, but the cursor won't move like it does in a edit box.
Dealman Posted March 3, 2014 Posted March 3, 2014 You can't. You'd either have to make your own editbox or come up with some other workaround. One workaround I can think of would be to put a label at the same location as the editbox, but have the editbox's alpha set to 0. Then use the event onClientGUIChanged and make the label text the same as the editbox. You might have to fiddle around with guiBringToFront as well.
Castillo Posted March 3, 2014 Posted March 3, 2014 That idea still has the problem I mentioned above.
Karuzo Posted March 3, 2014 Author Posted March 3, 2014 So theres no way to do with GUIs ? If so , how would such an DX Editbox be created ?
Spajk Posted March 3, 2014 Posted March 3, 2014 Creating an editbox in dx should't be hard, but it gets a lot harder when you want to add stuff as selecting text.
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