Jump to content

guiCreateEdit Alpha down but Text 100 Alpha ?


Karuzo

Recommended Posts

Posted

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 ?

  • 3 weeks later...
Posted

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.

Posted

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 
  

Ingame Name: Arnold

If you need my help, contact me on Skype @bshr.ara

NOTE:DO NOT ASK ME FOR SCRIPTS, ASK ME FOR HELP

Posted

He can, but the cursor won't move like it does in a edit box.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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.

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.

Posted

That idea still has the problem I mentioned above.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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